v1

latestOpenAPI 3.0.32026-07-248257161.1 KB
Customers

Update customer details

Use this endpoint to update customer details

put/customers/{customerId}

Path parameters

customerIdstring uuid required

Unique identifier of the customer.

Request body

idstring uuid

unique uuid of the customer

namestring

customer's full name

phonestring

customer's mobile phone number.

emailstring

the email of the customer

addressstring

Full street address, which MAY include house number, street name, Post Office Box, etc

citystring

City or locality component.

postalCodestring

Zip code or postal code component.

countrystring required

ISO3166-1 alpha-2 two letter, uppercase.

localestring

User locale, language is lower case. Country in upper case

createdAtstring

The date time that record was created in our system.

updatedAtstring

The date time that record was updated in our system.

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 updated successfully