Customers
Update a customer
Changed onpatch/v1/customers
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"customer_id": "cust_abc123",
"name": "John Doe",
"email": "john@example.com",
"metadata": {
"key": "value"
},
"external_id": "user-42"
}Response
Successfully updated the customer
Example response
{
"email": "user@example.com",
"name": "John Doe",
"metadata": {
"key": "value"
},
"country": "US",
"external_id": "user-42",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}Changes
- info
added the new optional request property
- info
- breaking
the
request property type changed fromobjecttostring - breaking
the
response's property type changed fromobjecttostringfor status
- breaking