Basic information
PATCH /{shopId}/customers/{customerId}
Updates information for a single customer with partial data according to RFC 6902. You can either add or remove certain attributes.
Supported JSON-PATCH operations
- add (sets or replaces an attribute)
- remove (unsets an attribute)
Attribute paths that allow updates via PATCH ( ¹ supports add only)
- /customerNumber¹
- /billingAddress
- /internalNote
Authorisation
OAuth 2.0 Token required with scopes:
customers_write
URI parameters
Name | Type | Description |
---|---|---|
shopId |
string |
The unique identifier of the shop. Required:
true
Example:
DemoShop
|
customerId |
string |
Required:
true
|
Request attributes
Name | Type | Description |
---|---|---|
|
array of jsonPatch |
Request body
Media type application/json-patch+json
[ { "op": "add", "path": "/customerNumber", "value": "0812" } ]
Response attributes
Name | Type | Description |
---|---|---|
|
object of customer |
Response
HTTP 200
Media type application/json
{ "customerId": "563874DA-7AE7-9876-9E59-D5809AB38A25", "customerNumber": "0812", "creationDate": "2015-11-03T08:48:26Z", "billingAddress": { "company": "Schneiderei", "salutation": "Mrs", "firstName": "Tanja", "lastName": "Schneider", "street": "Schneiderstraße 10", "streetDetails": null, "zipCode": "12345", "city": "Berlin", "state": null, "country": "DE", "title": null, "vatId": null, "birthday": null, "emailAddress": "schneider@schneiderei.de", "addressExtension": "1.Etage", "bankAccountHolder": "Tanja Schneider", "bankAccountNumber": "DE1567379838510", "bankName": "Nadel Bank", "bankSortCode": "XXSCSBB", "businessEmailAddress": "schneider@schneiderei.de", "businessPhoneNumber": "0049099906543", "department": null, "displayName": null, "doorCode": null, "faxNumber": "0049099906542", "fiscalCode": null, "gender": "female", "jobTitle": "Schneiderin", "middleName": null, "mobilePhoneNumber": "0049099906543", "phoneNumber": "0049099906543", "privateEmailAddress": null, "privatePhoneNumber": null, "websiteUrl": "http://schneiderei.de" }, "internalNote": "Long-standing customer", "links": [ { "rel": "self", "href": "https://pm.epages.com/rs/shops/apidocu/customers/563874DA-7AE7-9876-9E59-D5809AB38A25" }, { "rel": "orders", "href": "https://pm.epages.com/rs/shops/apidocu/orders?customerId=563874DA-7AE7-9876-9E59-D5809AB38A25" } ] }