Body
application/json
Response
Company created
curl --request POST \
--url https://app.pennylane.com/api/external/v2/companies \
--header 'Content-Type: application/json' \
--data '{
"user_ids": [
12345,
14534
],
"company": {
"name": "Acme Inc.",
"reg_no": "123456789",
"country_alpha2": "FR",
"number_of_employees": "1_5",
"saas_plan": "v1_basic",
"activity_code": "46.90Z",
"address": "1, rue de la Paix",
"city": "Paris",
"postal_code": "75002"
},
"force_pro_account_creation": true
}'
{
"company": {
"id": 1
}
}
This endpoint is used to create a new company. In order to authenticate the request, a valid OAuth2 token must be provided. The token must have the companies:all
scope and be generated with client_credentials
grant type.
curl --request POST \
--url https://app.pennylane.com/api/external/v2/companies \
--header 'Content-Type: application/json' \
--data '{
"user_ids": [
12345,
14534
],
"company": {
"name": "Acme Inc.",
"reg_no": "123456789",
"country_alpha2": "FR",
"number_of_employees": "1_5",
"saas_plan": "v1_basic",
"activity_code": "46.90Z",
"address": "1, rue de la Paix",
"city": "Paris",
"postal_code": "75002"
},
"force_pro_account_creation": true
}'
{
"company": {
"id": 1
}
}
Company created
Show child attributes
Was this page helpful?