Booking Customer

Update customer details of a specific Booking

patch/v3/administrations/{administration_id}/bookings/{booking_id}/customer

Request

Path parameters

administration_idstring required

Administration ID

booking_idstring required

Booking ID

Query parameters

fields[customer]string

Fieldset. Specify a comma separated list of attributes to return

includestring

Includes list. Specify a comma separated list of resources to include.

Headers

Accept-Languagestring

Supported languages. A comma separated list with one or more of the following locales: cs, da-DK, de, de-AT, de-CH, en-US, en-GB, es, fr, fr-BE, fr-LU, it, nb, nl, nl-BE, pl, pt, tr, en, da. Default: 'en'.

Request body

Example request

{
  "data": {
    "id": "1",
    "type": "customer",
    "attributes": {
      "title": "mr",
      "country_code": "NL",
      "locale": "cs"
    },
    "relationships": {
      "labels": {
        "data": [
          {
            "type": "label"
          }
        ]
      }
    }
  }
}

Response

CustomerResponse

Example response

{
  "data": {
    "id": "1",
    "type": "customer",
    "attributes": {
      "title": "mr",
      "country_code": "NL",
      "locale": "cs"
    },
    "relationships": {
      "labels": {
        "data": [
          {
            "type": "label"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "1",
      "type": "label"
    }
  ]
}

Changes

    • warning

      added the new da-DK enum value to the // response property for the response status

    • warning

      added the new en-GB enum value to the // response property for the response status

    • warning

      added the new en-US enum value to the // response property for the response status

    • info

      added the new da-DK enum value to the request property //

    • info

      added the new en-GB enum value to the request property //

    • info

      added the new en-US enum value to the request property //

    • info

      added the optional property // to the response with the status

    • info

      response property data/attributes/debtor_code deprecated