customers
Update Customer
Changed onpatch/v2/customers/{id}
Request
- Base URLhttps://docs.stancer.com (the document declares no server; this is the origin it was published from)
- URLhttps://docs.stancer.com/v2/customers/{id}
- Auth
- HTTP basic
- or HTTP bearer
Path parameters
idstring required
Example:cust_yWYfCSzsUUhr9KwMv7vuLZHX
Request body
Example request
{
"email": "arthur.martin@example.com",
"name": "Arthur Martin",
"mobile": "+33100000000",
"date_birth": "1953-01-19",
"legal_id": "AA732A82C93V20",
"country": "FR",
"external_id": "UniqueId123",
"billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
}Response
Successful Response
Example response
{
"id": "cust_yWYfCSzsUUhr9KwMv7vuLZHX",
"country": "FR",
"created": "UniqueId123",
"date_birth": "1950-05-04",
"email": "test@test.com",
"external_id": "UniqueId123",
"legal_id": "AA732A82C93V20",
"mobile": "+33100000000",
"name": "Arthur Martin",
"billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
}Changes
- breaking
the
request property's minLength was increased from0to3 - breaking
the
response property's maxLength was unset from64for the response status
- breaking