Create a customer
Create a customer
POST
/v1/customers/authorization<token>
Use device JWT token
In: header
typestring
Value in
"person" | "company"comment?string|null
email?string|null
phoneNumber?string|null
firstName?string|null
lastName?string|null
birthDate?string|null
companyName?string|null
siretCode?string|null
nafCode?string|null
vatCode?string|null
creditLimit?integer|null
lastActivityAt?unknown
status?string
Default
"active"Value in
"active" | "suspended" | "inactive"Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:4012/v1/customers/" \ -H "Content-Type: application/json" \ -d '{ "type": "person", "firstName": "Jensen", "lastName": "Daniel", "email": "Lera_Huels77@yahoo.com", "phoneNumber": "1-629-884-3787 x11713", "birthDate": "1966-06-07T02:13:04.522Z", "comment": "Lorem ipsum dolor sit" }'{
"id": "9f8e7d6c-5b4a-4c2d-8e0f-9a8b7c6d5e4f",
"type": "person",
"createdAt": "2023-10-01T12:00:00.000Z",
"updatedAt": "2023-10-01T12:00:00.000Z",
"birthDate": "1996-06-07T02:13:04.522Z",
"phoneNumber": "+33123456789",
"comment": "Lorem ipsum dolor sit",
"firstName": "Jensen",
"lastName": "Daniel",
"email": "",
"addresses": [
{
"id": "e7d6c5b4-3a2f-4e0d-9c8b-7a6f5e4d3c2b",
"address1": "12 Avenue des Champs-Élysées",
"address2": "3ème étage",
"city": "Paris",
"country": "France",
"zipCode": "75008",
"regionCode": "IDF",
"isPrimary": true,
"type": "shipping",
"createdAt": "2023-10-01T12:00:00.000Z",
"updatedAt": "2023-10-01T12:00:00.000Z"
}
],
"balances": []
}{
"message": "string",
"code": "INSUFFICIENT_BALANCE",
"meta": {
"property1": null,
"property2": null
}
}{
"message": "string",
"code": "INSUFFICIENT_BALANCE",
"meta": {
"property1": null,
"property2": null
}
}