PUT Customer Account Update

​

This endpoint will do a customer account update for the given customer account UUID

Path Parameters

  • Customer Account UUID

Headers

  • Accept header

  • Authorization header

  • Content-Type header

  • API version

  • Application key

  • Unique request identifier

  • Punchh customer token, on a brand integrated with Punchh. Authorization carries the PAR Ordering customer token and does not authenticate you to Punchh. Omitting this header falls back to the Punchh token stored for that customer at sign-in, which may be stale.

    Declared optional because it is conditional, not because it is safe to leave out. It applies only to a Punchh brand, so marking it required would be wrong for every brand without the integration. Where it is needed, see Use Rewards, Offers, Customer Credits, and Promo Codes.

Body

application/json
  • Properties: 2

Responses

  • application/json
  • application/json
  • Unauthorized

  • Forbidden

  • Not Found

Request Example for put/customer-accounts/{customer_account_id}
curl https://api-public-demo.menu.app/api/customer-accounts/f16a8522-662f-4393-a026-0076abea8517 \
  --request PUT \
  --header 'Accept: application/json' \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'Application: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --data '{
  "first_name": "Ivan",
  "last_name": "Djordjevic",
  "email": "ivan.djordjevic@partech.com",
  "demographics": [
    {
      "demographic_id": "6cf7ea5e-c58e-42f3-9a4a-7e93e67761d9",
      "value": "2000-01-13"
    }
  ]
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "customer_account": {
      "id": "6b49f310-3f23-11ed-936c-1a67b454859d",
      "type_id": 1,
      "reference_type": "CustomerAccount",
      "first_name": "Ivan",
      "last_name": "Djordjevic",
      "email": "ivan.djordjevic@partech.com",
      "confirmed": true,
      "phone_number": "+381601111111",
      "locale": "en",
      "state": 1,
      "demographics": [
        {
          "demographic_id": "6cf7ea5e-c58e-42f3-9a4a-7e93e67761d9",
          "value": "2000-01-13"
        }
      ],
      "optin_status_email": 3,
      "optin_status_pn": 3,
      "has_pending_email_change": false,
      "has_pending_phone_number_change": false,
      "is_social": false,
      "updated_at": "2023-04-13 06:36:22",
      "created_at": "2023-04-12 13:06:13"
    }
  }
}