curl --request POST \
--url https://api.getenso.ai/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp",
"entity": {
"legalName": "Acme Corporation Private Limited",
"alias": "Acme",
"email": [
"billing@acme.com"
],
"phoneNumber": "9876543210",
"Addresses": [
{
"address1": "123 Business Park Road",
"city": "Bengaluru",
"zip": "560001",
"State": {
"name": "Karnataka",
"Country": {
"name": "India",
"iso2": "IN",
"iso3": "IND"
},
"code": "KA"
},
"address2": "Floor 5, Tower B",
"taxId": "29ABCDE1234F1Z5"
}
]
}
}
'{
"status": "error",
"message": "Forbidden",
"errors": [
{}
]
}Create a new customer
curl --request POST \
--url https://api.getenso.ai/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp",
"entity": {
"legalName": "Acme Corporation Private Limited",
"alias": "Acme",
"email": [
"billing@acme.com"
],
"phoneNumber": "9876543210",
"Addresses": [
{
"address1": "123 Business Park Road",
"city": "Bengaluru",
"zip": "560001",
"State": {
"name": "Karnataka",
"Country": {
"name": "India",
"iso2": "IN",
"iso3": "IND"
},
"code": "KA"
},
"address2": "Floor 5, Tower B",
"taxId": "29ABCDE1234F1Z5"
}
]
}
}
'{
"status": "error",
"message": "Forbidden",
"errors": [
{}
]
}CustomerService:createCustomer, EntityService:createEntityJWT bearer token obtained from POST /auth/system-login using your client credentials.
Customer object that needs to be created