This endpoint allows creating a new customer.
cURL
curl --request POST \ --url https://api.useaira.com/v1/customers/ \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "externalId": "cust_1234567890abcdef", "name": "Acme Inc.", "customFields": { "custom_field_1": "value1", "custom_field_2": "value2" } }'
{ "id": "<string>", "externalId": "cust_1234567890abcdef", "name": "Acme Inc.", "customFields": { "custom_field_1": "value1", "custom_field_2": "value2" } }
API Key Authentication.
Schema representing a customer.
The request was successfully processed, and the customer has been created. The response contains the details of the newly created customer.