v1
latestOpenAPI 3.0.32026-07-248257161.1 KBCustomers
Create a new customer
Create a new customer for a merchant
post/customers
Query parameters
createOrUpdateboolean
Optional. If set to true, customer will be created if it does not exist otherwise updated. If omitted or set to false, an error will be returned if the customer already exist.
Request body
Example request
{
"id": "fbd2053b-638d-4133-957e-3caf63e6b79c",
"name": "John Dao",
"email": "john.dao@example.com",
"address": "23, avenue de la liberté",
"city": "Dakar",
"country": "SN",
"locale": "fr-FR",
"createdAt": "2022-06-20T17:17:11Z",
"updatedAt": "2022-06-20T17:17:11Z"
}Response
The customer is added successfully