curl --request PATCH \
--url https://api.cadanapay.com/v1/entities/{entityId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "Acme Corp Ghana Updated",
"entityType": "limited liability company",
"address": {
"countryCode": "US",
"line1": "Street 1",
"line2": "Apt 1",
"city": "Gotham",
"postalCode": "10001",
"state": "NY"
},
"phoneNumber": {
"countryCode": "1",
"number": "2345678901"
},
"registrationNumber": "BN-654321",
"taxId": "TIN-210987",
"incorporationDate": "2019-06-01"
}
'{
"code": "invalid_request_body",
"message": "The request body provided is not valid",
"params": {
"field": "Value is invalid."
}
}Update an existing legal entity
curl --request PATCH \
--url https://api.cadanapay.com/v1/entities/{entityId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "Acme Corp Ghana Updated",
"entityType": "limited liability company",
"address": {
"countryCode": "US",
"line1": "Street 1",
"line2": "Apt 1",
"city": "Gotham",
"postalCode": "10001",
"state": "NY"
},
"phoneNumber": {
"countryCode": "1",
"number": "2345678901"
},
"registrationNumber": "BN-654321",
"taxId": "TIN-210987",
"incorporationDate": "2019-06-01"
}
'{
"code": "invalid_request_body",
"message": "The request body provided is not valid",
"params": {
"field": "Value is invalid."
}
}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.
The unique identifier of the entity
Update entity request payload (partial update)
Legal name of the entity
"Acme Corp Ghana Updated"
Legal structure type
corporation, c-corporation, s-corporation, partnership, sole proprietorship, limited liability company, non profit, other "limited liability company"
Address
Show child attributes
Person's phone number
Show child attributes
Business registration number
"BN-654321"
Tax identification number
"TIN-210987"
Date of incorporation (YYYY-MM-DD)
"2019-06-01"
Successful operation