customers
Create a customer
Changed onCreate a customer
post/customers
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/customers
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"email": "john@example.com",
"password": "secret",
"shopper_reference": "xxx-yyy-zzz",
"profile_id": "xxx-yyy-zzz",
"tax_exemption_code": "xxx-yyy-zzz",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"customer_group": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created customer object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the
request property default valuecustomerswas removed - info
added the new
customersenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking