curl --request POST \
--url https://api.cadanapay.com/v1/entities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "Acme Corp Ghana",
"country": "GH",
"currency": "GHS",
"entityType": "corporation",
"address": {
"countryCode": "US",
"line1": "Street 1",
"line2": "Apt 1",
"city": "Gotham",
"postalCode": "10001",
"state": "NY"
},
"phoneNumber": {
"countryCode": "1",
"number": "2345678901"
},
"registrationNumber": "BN-123456",
"taxId": "TIN-789012",
"incorporationDate": "2020-01-15"
}
'{
"id": "37ad8c1e-0187-4e10-8c54-395e3385b4d2"
}Create a new legal entity under the current business
curl --request POST \
--url https://api.cadanapay.com/v1/entities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "Acme Corp Ghana",
"country": "GH",
"currency": "GHS",
"entityType": "corporation",
"address": {
"countryCode": "US",
"line1": "Street 1",
"line2": "Apt 1",
"city": "Gotham",
"postalCode": "10001",
"state": "NY"
},
"phoneNumber": {
"countryCode": "1",
"number": "2345678901"
},
"registrationNumber": "BN-123456",
"taxId": "TIN-789012",
"incorporationDate": "2020-01-15"
}
'{
"id": "37ad8c1e-0187-4e10-8c54-395e3385b4d2"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Required when using a Platform API token. The tenant key identifying which business to operate on.
Create entity request payload
Legal name of the entity
"Acme Corp Ghana"
ISO 3166-1 alpha-2 country code
"GH"
ISO 4217 currency code
"GHS"
Legal structure type
corporation, c-corporation, s-corporation, partnership, sole proprietorship, limited liability company, non profit, other "corporation"
Address
Show child attributes
Person's phone number
Show child attributes
Business registration number
"BN-123456"
Tax identification number
"TIN-789012"
Date of incorporation (YYYY-MM-DD)
"2020-01-15"
Entity created
Create entity response
The unique identifier of the created entity
"37ad8c1e-0187-4e10-8c54-395e3385b4d2"