Update Customer
PUT/commerce/customers/:customerId
Update customer for a specified connection
Request
Path Parameters
customerId stringrequired
The item id of the customer record
Query Parameters
credentialId stringrequired
The ID of the credential.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
- application/json
Body
firstName stringrequired
First Name of the customer
lastName stringrequired
Last Name of the customer
email stringrequired
Email of the customer
phone string
Phone of the customer. Must include the country code. Example: for USA, the following would work: "+12345678273"
remoteFields json
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Result
Schema
any
{
"customer": {
"remoteId": "1122334455667",
"firstName": "Alex",
"lastName": "Johnson",
"email": "alex.johnson@example.com",
"phone": null,
"id": "00000000-0000-0000-0000-000000000000"
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
object
{}
{}
Loading...