cURL
curl --request POST \ --url https://{primary_domain}/api/public/v2.0/customers \ --header 'Content-Type: application/json' \ --header 'X-Access-Key-Id: <api-key>' \ --header 'X-Access-Key-Secret: <api-key>' \ --data '{ "first_name": "<string>", "middle_name": "<string>", "last_name": "<string>", "email": "jsmith@example.com", "contact_number": "<string>", "address": { "line_1": "<string>", "line_2": "<string>", "city": "<string>", "region": "<string>", "region_code": "<string>", "country": "<string>", "country_code": "<string>", "postal_code": "<string>" } }'
{ "message": "<string>", "data": { "id": 123, "first_name": "<string>", "middle_name": "<string>", "last_name": "<string>", "email": "jsmith@example.com", "contact_number": "<string>", "address": { "line_1": "<string>", "line_2": "<string>", "city": "<string>", "region": "<string>", "region_code": "<string>", "country": "<string>", "country_code": "<string>", "postal_code": "<string>" }, "name": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "deleted_at": "2023-11-07T05:31:56Z" } }
Required permissions: customers.create.*
customers.create.*
255
In E.164 format.
Show child attributes
A Customer resource object.