---
title: "Edit a booking made elsewhere"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit a booking made elsewhere

Path: Nicer API › Commerce

`PUT /commerce/external-bookings/{externalBookingId}`

URL: `https://api.nicer.travel/commerce/external-bookings/{externalBookingId}`

Edits the facts of a booking made elsewhere (supplier, confirmation, client, dates, quantity, identifier, advisor, trip) with the `bookingVersion` read and a reason. Every item of the booking follows in the same transaction, writing a revision; due dates move with the travel end unless they were set by hand. Money changes go through the item actions. A newer edit answers 409 COMMISSION_RECORD_CHANGED; a new identifier once money arrived 409 COMMISSION_IDENTIFIER_LOCKED.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Path parameters

- `externalBookingId` (`commerce.externalBookings.update.path.externalBookingId`; string, required)

## Header parameters

- `Idempotency-Key` (`commerce.externalBookings.update.header.Idempotency-Key`; string, required) — Unique key (8–255 chars) per request; replays return the original result.
- `x-nicer-company` (`commerce.externalBookings.update.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Request body

_Required._

- `category` (`commerce.externalBookings.update.category`; string, required)
  - one of `"HOTEL"`, `"CRUISE"`, `"TOUR"`, `"DMC"`, `"FLIGHT"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"CONCIERGE"`, `"FEE"`, `"OTHER"`
- `clientName` (`commerce.externalBookings.update.clientName`; string, required)
  - maxLength: `200` · minLength: `1`
- `confirmationNumber` (`commerce.externalBookings.update.confirmationNumber`; any of, required)
  - any of the following: `string`, `null`
- `travelEnd` (`commerce.externalBookings.update.travelEnd`; string, required)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `travelStart` (`commerce.externalBookings.update.travelStart`; string, required)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `bookingVersion` (`commerce.externalBookings.update.bookingVersion`; integer, required)
  - maximum: `9007199254740991`
- `reason` (`commerce.externalBookings.update.reason`; string, required)
  - maxLength: `500` · minLength: `1`
- `advisorUserId` (`commerce.externalBookings.update.advisorUserId`; any of, optional)
  - any of the following: `string`, `null`
- `bookedOn` (`commerce.externalBookings.update.bookedOn`; string, optional)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `clientUserId` (`commerce.externalBookings.update.clientUserId`; any of, optional)
  - any of the following: `string`, `null`
- `identifierId` (`commerce.externalBookings.update.identifierId`; any of, optional)
  - any of the following: `string`, `null`
- `providerLocator` (`commerce.externalBookings.update.providerLocator`; any of, optional)
  - any of the following: `string`, `null`
- `quantity` (`commerce.externalBookings.update.quantity`; integer, optional)
  - maximum: `999` · minimum: `1`
- `supplierId` (`commerce.externalBookings.update.supplierId`; any of, optional)
  - any of the following: `string`, `null`
- `supplierName` (`commerce.externalBookings.update.supplierName`; any of, optional)
  - any of the following: `string`, `null`
- `travelersTripId` (`commerce.externalBookings.update.travelersTripId`; any of, optional)
  - any of the following: `string`, `null`

## Example request

```json
{
  "advisorUserId": "string",
  "bookedOn": "2019-08-24",
  "category": "HOTEL",
  "clientName": "string",
  "clientUserId": "string",
  "confirmationNumber": "string",
  "identifierId": "string",
  "providerLocator": "string",
  "quantity": 1,
  "supplierId": "string",
  "supplierName": "string",
  "travelEnd": "2019-08-24",
  "travelersTripId": "string",
  "travelStart": "2019-08-24",
  "bookingVersion": 9007199254740991,
  "reason": "string"
}
```

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "Idempotency-Key": process.env.NICER_IDEMPOTENCY_KEY, "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.commerce.externalBookings.update({
  "externalBookingId": "string",
  "category": "HOTEL",
  "clientName": "string",
  "confirmationNumber": "string",
  "travelEnd": "2019-08-24",
  "travelStart": "2019-08-24",
  "bookingVersion": 9007199254740991,
  "reason": "string"
});
```

### Nicer CLI

```bash
nicer commerce external-bookings update --external-booking-id 'string' --company "$NICER_COMPANY" --input - <<'JSON'
{
  "category": "HOTEL",
  "clientName": "string",
  "confirmationNumber": "string",
  "travelEnd": "2019-08-24",
  "travelStart": "2019-08-24",
  "bookingVersion": 9007199254740991,
  "reason": "string"
}
JSON
```

### cURL

```bash
curl --request PUT \
  --url 'https://api.nicer.travel/commerce/external-bookings/<externalBookingId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --header 'x-nicer-company: string' \
  --data '
{
  "advisorUserId": "string",
  "bookedOn": "2019-08-24",
  "category": "HOTEL",
  "clientName": "string",
  "clientUserId": "string",
  "confirmationNumber": "string",
  "identifierId": "string",
  "providerLocator": "string",
  "quantity": 1,
  "supplierId": "string",
  "supplierName": "string",
  "travelEnd": "2019-08-24",
  "travelersTripId": "string",
  "travelStart": "2019-08-24",
  "bookingVersion": 9007199254740991,
  "reason": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/external-bookings/<externalBookingId>';
const options = {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    'x-nicer-company': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    advisorUserId: 'string',
    bookedOn: '2019-08-24',
    category: 'HOTEL',
    clientName: 'string',
    clientUserId: 'string',
    confirmationNumber: 'string',
    identifierId: 'string',
    providerLocator: 'string',
    quantity: 1,
    supplierId: 'string',
    supplierName: 'string',
    travelEnd: '2019-08-24',
    travelersTripId: 'string',
    travelStart: '2019-08-24',
    bookingVersion: 9007199254740991,
    reason: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/commerce/external-bookings/<externalBookingId>"

payload = {
    "advisorUserId": "string",
    "bookedOn": "2019-08-24",
    "category": "HOTEL",
    "clientName": "string",
    "clientUserId": "string",
    "confirmationNumber": "string",
    "identifierId": "string",
    "providerLocator": "string",
    "quantity": 1,
    "supplierId": "string",
    "supplierName": "string",
    "travelEnd": "2019-08-24",
    "travelersTripId": "string",
    "travelStart": "2019-08-24",
    "bookingVersion": 9007199254740991,
    "reason": "string"
}
headers = {
    "Content-Type": "application/json",
    "Idempotency-Key": "string",
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "advisorUserId": "string",
  "bookedOn": "2019-08-24",
  "bookingVersion": 9007199254740991,
  "category": "HOTEL",
  "clientName": "string",
  "clientUserId": "string",
  "companyName": "string",
  "confirmationNumber": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "createdByUserId": "string",
  "currency": "string",
  "externalBookingId": "string",
  "externalReference": "string",
  "grossMinor": 9007199254740991,
  "identifier": {
    "identifierId": "string",
    "kind": "string",
    "number": "string"
  },
  "importId": "string",
  "items": [
    {
      "advisorUserId": "string",
      "agingBucket": "NOT_TRAVELED",
      "balanceMinor": 9007199254740991,
      "bookedOn": "2019-08-24",
      "category": "HOTEL",
      "clientName": "string",
      "collectedByNicer": true,
      "commissionItemId": "string",
      "companyName": "string",
      "confirmationNumber": "string",
      "currency": "string",
      "daysPastDue": 9007199254740991,
      "dueOn": "2019-08-24",
      "expectedMinor": 9007199254740991,
      "externalBookingId": "string",
      "grossMinor": 9007199254740991,
      "isCommissionable": true,
      "isFlagged": true,
      "isOverdue": true,
      "kind": "SUPPLIER_COMMISSION",
      "lastReceivedOn": "2019-08-24",
      "needsReview": true,
      "number": "string",
      "orderId": "string",
      "paymentStatus": "UPCOMING",
      "percentPaid": 0,
      "providerLocator": "string",
      "receivedMinor": -9007199254740991,
      "receivingCompanyName": "string",
      "source": "CHECKOUT",
      "supplier": {
        "name": "string",
        "supplierId": "string",
        "verified": true
      },
      "tags": [
        "string"
      ],
      "travelEnd": "2019-08-24",
      "travelStart": "2019-08-24",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "providerLocator": "string",
  "quantity": 9007199254740991,
  "receivingCompanyName": "string",
  "source": "MANUAL",
  "supplier": {
    "name": "string",
    "supplierId": "string",
    "verified": true
  },
  "travelEnd": "2019-08-24",
  "travelersTripId": "string",
  "travelStart": "2019-08-24",
  "updatedAt": "2019-08-24T14:15:22Z"
}
```

- `advisorUserId` (`commerce.externalBookings.update.response.200.advisorUserId`; any of, required)
  - any of the following: `string`, `null`
- `bookedOn` (`commerce.externalBookings.update.response.200.bookedOn`; string, required)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `bookingVersion` (`commerce.externalBookings.update.response.200.bookingVersion`; integer, required)
  - maximum: `9007199254740991`
- `category` (`commerce.externalBookings.update.response.200.category`; string, required)
  - one of `"HOTEL"`, `"CRUISE"`, `"TOUR"`, `"DMC"`, `"FLIGHT"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"CONCIERGE"`, `"FEE"`, `"OTHER"`
- `clientName` (`commerce.externalBookings.update.response.200.clientName`; string, required)
  - minLength: `1`
- `clientUserId` (`commerce.externalBookings.update.response.200.clientUserId`; any of, required)
  - any of the following: `string`, `null`
- `companyName` (`commerce.externalBookings.update.response.200.companyName`; string, required)
  - minLength: `1`
- `confirmationNumber` (`commerce.externalBookings.update.response.200.confirmationNumber`; any of, required)
  - any of the following: `string`, `null`
- `createdAt` (`commerce.externalBookings.update.response.200.createdAt`; string, required)
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
- `createdByUserId` (`commerce.externalBookings.update.response.200.createdByUserId`; any of, required)
  - any of the following: `string`, `null`
- `currency` (`commerce.externalBookings.update.response.200.currency`; string, required)
  - pattern: `^[A-Z]{3}$`
- `externalBookingId` (`commerce.externalBookings.update.response.200.externalBookingId`; string, required)
  - minLength: `1`
- `externalReference` (`commerce.externalBookings.update.response.200.externalReference`; any of, required)
  - any of the following: `string`, `null`
- `grossMinor` (`commerce.externalBookings.update.response.200.grossMinor`; integer, required)
  - maximum: `9007199254740991` · minimum: `0`
- `identifier` (`commerce.externalBookings.update.response.200.identifier`; any of, required)
  - any of the following:
    - `CommissionIdentifierRef`
      - `identifierId` (`CommissionIdentifierRef.identifierId`; string, required)
        - minLength: `1`
      - `kind` (`CommissionIdentifierRef.kind`; string, required)
        - minLength: `1`
      - `number` (`CommissionIdentifierRef.number`; string, required)
        - minLength: `1`
    - `null`
- `importId` (`commerce.externalBookings.update.response.200.importId`; any of, required)
  - any of the following: `string`, `null`
- `items` (`commerce.externalBookings.update.response.200.items`; array of object, required)
  - `advisorUserId` (`commerce.externalBookings.update.response.200.items.advisorUserId`; any of, required)
    - any of the following: `string`, `null`
  - `agingBucket` (`commerce.externalBookings.update.response.200.items.agingBucket`; string, required)
    - one of `"NOT_TRAVELED"`, `"0_30"`, `"31_60"`, `"61_90"`, `"91_180"`, `"180_PLUS"`
  - `balanceMinor` (`commerce.externalBookings.update.response.200.items.balanceMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `bookedOn` (`commerce.externalBookings.update.response.200.items.bookedOn`; string, required)
    - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
  - `category` (`commerce.externalBookings.update.response.200.items.category`; string, required)
    - one of `"HOTEL"`, `"CRUISE"`, `"TOUR"`, `"DMC"`, `"FLIGHT"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"CONCIERGE"`, `"FEE"`, `"OTHER"`
  - `clientName` (`commerce.externalBookings.update.response.200.items.clientName`; string, required)
    - minLength: `1`
  - `collectedByNicer` (`commerce.externalBookings.update.response.200.items.collectedByNicer`; boolean, required)
  - `commissionItemId` (`commerce.externalBookings.update.response.200.items.commissionItemId`; string, required)
    - minLength: `1`
  - `companyName` (`commerce.externalBookings.update.response.200.items.companyName`; string, required)
    - minLength: `1`
  - `confirmationNumber` (`commerce.externalBookings.update.response.200.items.confirmationNumber`; any of, required)
    - any of the following: `string`, `null`
  - `currency` (`commerce.externalBookings.update.response.200.items.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
  - `daysPastDue` (`commerce.externalBookings.update.response.200.items.daysPastDue`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `dueOn` (`commerce.externalBookings.update.response.200.items.dueOn`; string, required)
    - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
  - `expectedMinor` (`commerce.externalBookings.update.response.200.items.expectedMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `externalBookingId` (`commerce.externalBookings.update.response.200.items.externalBookingId`; any of, required)
    - any of the following: `string`, `null`
  - `grossMinor` (`commerce.externalBookings.update.response.200.items.grossMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `isCommissionable` (`commerce.externalBookings.update.response.200.items.isCommissionable`; boolean, required)
  - `isFlagged` (`commerce.externalBookings.update.response.200.items.isFlagged`; boolean, required)
  - `isOverdue` (`commerce.externalBookings.update.response.200.items.isOverdue`; boolean, required)
  - `kind` (`commerce.externalBookings.update.response.200.items.kind`; string, required)
    - one of `"SUPPLIER_COMMISSION"`, `"CLIENT_NET_MARKUP"`, `"CLIENT_FEE"`
  - `lastReceivedOn` (`commerce.externalBookings.update.response.200.items.lastReceivedOn`; any of, required)
    - any of the following: `string`, `null`
  - `needsReview` (`commerce.externalBookings.update.response.200.items.needsReview`; boolean, required)
  - `number` (`commerce.externalBookings.update.response.200.items.number`; string, required)
    - minLength: `1`
  - `orderId` (`commerce.externalBookings.update.response.200.items.orderId`; any of, required)
    - any of the following: `string`, `null`
  - `paymentStatus` (`commerce.externalBookings.update.response.200.items.paymentStatus`; string, required)
    - one of `"UPCOMING"`, `"DUE"`, `"OVERDUE"`, `"PAID"`, `"CANCELLED"`, `"NOT_COMMISSIONABLE"`
  - `percentPaid` (`commerce.externalBookings.update.response.200.items.percentPaid`; any of, required)
    - any of the following: `number`, `null`
  - `providerLocator` (`commerce.externalBookings.update.response.200.items.providerLocator`; any of, required)
    - any of the following: `string`, `null`
  - `receivedMinor` (`commerce.externalBookings.update.response.200.items.receivedMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `receivingCompanyName` (`commerce.externalBookings.update.response.200.items.receivingCompanyName`; string, required)
    - minLength: `1`
  - `source` (`commerce.externalBookings.update.response.200.items.source`; string, required)
    - one of `"CHECKOUT"`, `"GDS_IMPORT"`, `"MANUAL"`, `"FILE_IMPORT"`
  - `supplier` (`commerce.externalBookings.update.response.200.items.supplier`; object, required)
    - `name` (`commerce.externalBookings.update.response.200.items.supplier.name`; any of, required)
      - any of the following: `string`, `null`
    - `supplierId` (`commerce.externalBookings.update.response.200.items.supplier.supplierId`; any of, required)
      - any of the following: `string`, `null`
    - `verified` (`commerce.externalBookings.update.response.200.items.supplier.verified`; boolean, required)
  - `tags` (`commerce.externalBookings.update.response.200.items.tags`; array of string, required)
    - maxLength: `64` · minLength: `1`
  - `travelEnd` (`commerce.externalBookings.update.response.200.items.travelEnd`; string, required)
    - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
  - `travelStart` (`commerce.externalBookings.update.response.200.items.travelStart`; string, required)
    - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
  - `updatedAt` (`commerce.externalBookings.update.response.200.items.updatedAt`; string, required)
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
- `providerLocator` (`commerce.externalBookings.update.response.200.providerLocator`; any of, required)
  - any of the following: `string`, `null`
- `quantity` (`commerce.externalBookings.update.response.200.quantity`; integer, required)
  - maximum: `9007199254740991`
- `receivingCompanyName` (`commerce.externalBookings.update.response.200.receivingCompanyName`; string, required)
  - minLength: `1`
- `source` (`commerce.externalBookings.update.response.200.source`; string, required)
  - one of `"MANUAL"`, `"FILE_IMPORT"`
- `supplier` (`commerce.externalBookings.update.response.200.supplier`; object, required)
  - `name` (`commerce.externalBookings.update.response.200.supplier.name`; any of, required)
    - any of the following: `string`, `null`
  - `supplierId` (`commerce.externalBookings.update.response.200.supplier.supplierId`; any of, required)
    - any of the following: `string`, `null`
  - `verified` (`commerce.externalBookings.update.response.200.supplier.verified`; boolean, required)
- `travelEnd` (`commerce.externalBookings.update.response.200.travelEnd`; string, required)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `travelersTripId` (`commerce.externalBookings.update.response.200.travelersTripId`; any of, required)
  - any of the following: `string`, `null`
- `travelStart` (`commerce.externalBookings.update.response.200.travelStart`; string, required)
  - format: `date` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$`
- `updatedAt` (`commerce.externalBookings.update.response.200.updatedAt`; string, required)
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.externalBookings.update.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.externalBookings.update.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.externalBookings.update.response.401.errorCode`; string, required)
- `errorMessage` (`commerce.externalBookings.update.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.externalBookings.update.response.403.errorCode`; string, required)
- `errorMessage` (`commerce.externalBookings.update.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Commerce/commerce.externalBookings.update/index.md
