Skip to content

Update of customer

Request

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
guidstringrequired
Example:443cad54-73bc-11e8-8216-002590dad85e
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobject, non-emptyrequired
curl -i -X PATCH \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/customers/443cad54-73bc-11e8-8216-002590dad85e \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "remark": "remark",
      "priceRatio": "0.7800",
      "birthDate": "1974-03-14",
      "disabledOrders": true,
      "customerGroupCode": "retail",
      "pricelistId": 1,
      "billingAddress": {
        "company": "Lard shop",
        "fullName": "John Lard",
        "street": "Lard street",
        "houseNumber": "123",
        "city": "Lard city",
        "district": "Prague-East",
        "additional": "4. floor",
        "zip": "120 00",
        "countryCode": "CZ",
        "regionName": "Capital city",
        "companyId": "12345678",
        "vatId": "CZ123456",
        "taxId": "CZ123456"
      }
    }
  }'

Responses

OK

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "customer": {} }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }