---
title: "Run an action on a commission item"
---

> 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.

# Run an action on a commission item

Path: Nicer API › Commerce

`POST /commerce/commissions/{commissionItemId}/actions`

URL: `https://api.nicer.travel/commerce/commissions/{commissionItemId}/actions`

One action on a commission item. Advisors (on their own items), admins and staff: CHANGE_EXPECTED (on an item of a Nicer checkout it also clears `needsReview`, which such an item carries when its provider marked the rate commissionable without an amount), CHANGE_DATES (the due date follows unless it was set by hand; an item of a booking made elsewhere takes its dates from the booking's PUT, and this answers 400), SET_DUE_DATE, CANCEL, REOPEN a cancellation, CONFIRM_IMPORTED (an imported item only; a Nicer checkout item answers 409 COMMISSION_ITEM_NOT_IMPORTED), SET_FLAG, ADD_NOTE, SET_TAGS, ADD_ATTACHMENT (answers a presigned upload), REPORT_MISSING (after travel, while money is owed: the item is flagged and the note joins its notes, for whoever chases the supplier; 409 COMMISSION_ITEM_NOT_CHASEABLE otherwise). Admins and staff: SET_COMMISSIONABLE (making a Nicer checkout item commissionable with nothing expected or received puts it in review, for its amount to be entered), WRITE_OFF, REOPEN a write-off, REASSIGN_ADVISOR. Changes to money, dates and parties send the `expectationVersion` read and write a revision; a newer change answers 409 COMMISSION_RECORD_CHANGED, a cancelled or written-off item 409 COMMISSION_ITEM_CLOSED, a new identifier once money arrived 409 COMMISSION_IDENTIFIER_LOCKED. An item Nicer collected (`collectedByNicer`: a planning fee, a Smith hotel) takes only SET_FLAG, ADD_NOTE, SET_TAGS and ADD_ATTACHMENT; anything else answers 409 COMMISSION_ITEM_NICER_COLLECTED.

## Authentication

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

## Path parameters

- `commissionItemId` (`commerce.commissions.actions.create.path.commissionItemId`; string, required)

## Header parameters

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

## Request body

_Required._

Every option has:

- `type` (`<option>.type`; string, required)

One of the following, each adding:

- `object` (`commerce.commissions.actions.create.1`)
  - `expectationVersion` (`commerce.commissions.actions.create.1.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.1.reason`; string, required)
    - maxLength: `500` · minLength: `1`
  - `commissionableMinor` (`commerce.commissions.actions.create.1.commissionableMinor`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
  - `expectedMinor` (`commerce.commissions.actions.create.1.expectedMinor`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
  - `grossMinor` (`commerce.commissions.actions.create.1.grossMinor`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
  - `rateBps` (`commerce.commissions.actions.create.1.rateBps`; integer, optional)
    - maximum: `10000` · minimum: `0`
  - `supplierCostMinor` (`commerce.commissions.actions.create.1.supplierCostMinor`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
- `object` (`commerce.commissions.actions.create.2`)
  - `expectationVersion` (`commerce.commissions.actions.create.2.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.2.reason`; string, required)
    - maxLength: `500` · minLength: `1`
  - `bookedOn` (`commerce.commissions.actions.create.2.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])))$`
  - `travelEnd` (`commerce.commissions.actions.create.2.travelEnd`; 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])))$`
  - `travelStart` (`commerce.commissions.actions.create.2.travelStart`; 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])))$`
- `object` (`commerce.commissions.actions.create.3`)
  - `dueOn` (`commerce.commissions.actions.create.3.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])))$`
  - `expectationVersion` (`commerce.commissions.actions.create.3.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.3.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.commissions.actions.create.4`)
  - `expectationVersion` (`commerce.commissions.actions.create.4.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.4.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.commissions.actions.create.5`)
  - `expectationVersion` (`commerce.commissions.actions.create.5.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.5.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.commissions.actions.create.6`)
  - `expectationVersion` (`commerce.commissions.actions.create.6.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `isCommissionable` (`commerce.commissions.actions.create.6.isCommissionable`; boolean, required)
  - `reason` (`commerce.commissions.actions.create.6.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.commissions.actions.create.7`)
  - `expectationVersion` (`commerce.commissions.actions.create.7.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.7.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.commissions.actions.create.8`)
  - `expectationVersion` (`commerce.commissions.actions.create.8.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
- `object` (`commerce.commissions.actions.create.9`)
  - `advisorUserId` (`commerce.commissions.actions.create.9.advisorUserId`; string, required)
    - maxLength: `255` · minLength: `1`
  - `expectationVersion` (`commerce.commissions.actions.create.9.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `reason` (`commerce.commissions.actions.create.9.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.commissions.actions.create.10`)
  - `flagged` (`commerce.commissions.actions.create.10.flagged`; boolean, required)
- `object` (`commerce.commissions.actions.create.11`)
  - `bodyMarkdown` (`commerce.commissions.actions.create.11.bodyMarkdown`; string, required)
    - maxLength: `10000` · minLength: `1`
- `object` (`commerce.commissions.actions.create.12`)
  - `tags` (`commerce.commissions.actions.create.12.tags`; array of string, required)
    - maxLength: `64` · minLength: `1`
- `object` (`commerce.commissions.actions.create.13`)
  - `contentType` (`commerce.commissions.actions.create.13.contentType`; string, required)
    - one of `"application/pdf"`, `"image/jpeg"`, `"image/png"`, `"message/rfc822"`, `"text/csv"`, `"text/plain"`, `"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"`, `"application/vnd.openxmlformats-officedocument.wordprocessingml.document"`
  - `fileName` (`commerce.commissions.actions.create.13.fileName`; string, required)
    - maxLength: `255` · minLength: `1`
  - `sha256` (`commerce.commissions.actions.create.13.sha256`; string, required)
    - pattern: `^[0-9a-f]{64}$`
  - `sizeBytes` (`commerce.commissions.actions.create.13.sizeBytes`; integer, required)
    - maximum: `26214400` · minimum: `1`
  - `label` (`commerce.commissions.actions.create.13.label`; string, optional)
    - maxLength: `200` · minLength: `1`
- `object` (`commerce.commissions.actions.create.14`)
  - `note` (`commerce.commissions.actions.create.14.note`; string, required)
    - maxLength: `2000` · minLength: `1`

## Example request

```json
{
  "commissionableMinor": 9007199254740991,
  "expectedMinor": 9007199254740991,
  "expectationVersion": 9007199254740991,
  "grossMinor": 9007199254740991,
  "rateBps": 10000,
  "reason": "string",
  "supplierCostMinor": 9007199254740991,
  "type": "CHANGE_EXPECTED"
}
```

## 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.commissions.actions.create({
  "commissionItemId": "string",
  "expectationVersion": 9007199254740991,
  "reason": "string",
  "type": "CHANGE_EXPECTED"
});
```

### Nicer CLI

```bash
nicer commerce commissions actions create --commission-item-id 'string' --company "$NICER_COMPANY" --input - <<'JSON'
{
  "expectationVersion": 9007199254740991,
  "reason": "string",
  "type": "CHANGE_EXPECTED"
}
JSON
```

### cURL

```bash
curl --request POST \
  --url 'https://api.nicer.travel/commerce/commissions/<commissionItemId>/actions' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --header 'x-nicer-company: string' \
  --data '
{
  "commissionableMinor": 9007199254740991,
  "expectedMinor": 9007199254740991,
  "expectationVersion": 9007199254740991,
  "grossMinor": 9007199254740991,
  "rateBps": 10000,
  "reason": "string",
  "supplierCostMinor": 9007199254740991,
  "type": "CHANGE_EXPECTED"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/commissions/<commissionItemId>/actions';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    'x-nicer-company': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    commissionableMinor: 9007199254740991,
    expectedMinor: 9007199254740991,
    expectationVersion: 9007199254740991,
    grossMinor: 9007199254740991,
    rateBps: 10000,
    reason: 'string',
    supplierCostMinor: 9007199254740991,
    type: 'CHANGE_EXPECTED'
  })
};

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/commissions/<commissionItemId>/actions"

payload = {
    "commissionableMinor": 9007199254740991,
    "expectedMinor": 9007199254740991,
    "expectationVersion": 9007199254740991,
    "grossMinor": 9007199254740991,
    "rateBps": 10000,
    "reason": "string",
    "supplierCostMinor": 9007199254740991,
    "type": "CHANGE_EXPECTED"
}
headers = {
    "Content-Type": "application/json",
    "Idempotency-Key": "string",
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "item": {
    "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",
    "allowedActions": [
      "CHANGE_EXPECTED"
    ],
    "attachments": [
      {
        "attachmentId": "string",
        "contentType": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "downloadUrl": "http://example.com",
        "fileName": "string",
        "label": "string",
        "sizeBytes": 9007199254740991,
        "uploadedByUserId": "string"
      }
    ],
    "cancelReason": "string",
    "cancelledAt": "2019-08-24T14:15:22Z",
    "clientUserId": "string",
    "commissionableMinor": 9007199254740991,
    "createdAt": "2019-08-24T14:15:22Z",
    "createdByUserId": "string",
    "expectationVersion": 9007199254740991,
    "identifier": {
      "identifierId": "string",
      "kind": "string",
      "number": "string"
    },
    "notes": [
      {
        "authorUserId": "string",
        "bodyMarkdown": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "noteId": "string"
      }
    ],
    "paymentTermDays": 9007199254740991,
    "quantity": 9007199254740991,
    "rateBps": 10000,
    "revisions": [
      {
        "actorUserId": "string",
        "changedFields": {
          "property1": [
            null,
            null
          ],
          "property2": [
            null,
            null
          ]
        },
        "createdAt": "2019-08-24T14:15:22Z",
        "reason": "string",
        "version": 9007199254740991
      }
    ],
    "supplierCostMinor": 9007199254740991,
    "travelersTripId": "string",
    "writeOffReason": "string",
    "writtenOffAt": "2019-08-24T14:15:22Z"
  },
  "upload": {
    "expiresAt": "2019-08-24T14:15:22Z",
    "headers": {
      "property1": "string",
      "property2": "string"
    },
    "method": "PUT",
    "url": "http://example.com"
  }
}
```

- `item` (`commerce.commissions.actions.create.response.200.item`; object, required)
  - `advisorUserId` (`commerce.commissions.actions.create.response.200.item.advisorUserId`; any of, required)
    - any of the following: `string`, `null`
  - `agingBucket` (`commerce.commissions.actions.create.response.200.item.agingBucket`; string, required)
    - one of `"NOT_TRAVELED"`, `"0_30"`, `"31_60"`, `"61_90"`, `"91_180"`, `"180_PLUS"`
  - `balanceMinor` (`commerce.commissions.actions.create.response.200.item.balanceMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `bookedOn` (`commerce.commissions.actions.create.response.200.item.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.commissions.actions.create.response.200.item.category`; string, required)
    - one of `"HOTEL"`, `"CRUISE"`, `"TOUR"`, `"DMC"`, `"FLIGHT"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"CONCIERGE"`, `"FEE"`, `"OTHER"`
  - `clientName` (`commerce.commissions.actions.create.response.200.item.clientName`; string, required)
    - minLength: `1`
  - `collectedByNicer` (`commerce.commissions.actions.create.response.200.item.collectedByNicer`; boolean, required)
  - `commissionItemId` (`commerce.commissions.actions.create.response.200.item.commissionItemId`; string, required)
    - minLength: `1`
  - `companyName` (`commerce.commissions.actions.create.response.200.item.companyName`; string, required)
    - minLength: `1`
  - `confirmationNumber` (`commerce.commissions.actions.create.response.200.item.confirmationNumber`; any of, required)
    - any of the following: `string`, `null`
  - `currency` (`commerce.commissions.actions.create.response.200.item.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
  - `daysPastDue` (`commerce.commissions.actions.create.response.200.item.daysPastDue`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `dueOn` (`commerce.commissions.actions.create.response.200.item.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.commissions.actions.create.response.200.item.expectedMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `externalBookingId` (`commerce.commissions.actions.create.response.200.item.externalBookingId`; any of, required)
    - any of the following: `string`, `null`
  - `grossMinor` (`commerce.commissions.actions.create.response.200.item.grossMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `isCommissionable` (`commerce.commissions.actions.create.response.200.item.isCommissionable`; boolean, required)
  - `isFlagged` (`commerce.commissions.actions.create.response.200.item.isFlagged`; boolean, required)
  - `isOverdue` (`commerce.commissions.actions.create.response.200.item.isOverdue`; boolean, required)
  - `kind` (`commerce.commissions.actions.create.response.200.item.kind`; string, required)
    - one of `"SUPPLIER_COMMISSION"`, `"CLIENT_NET_MARKUP"`, `"CLIENT_FEE"`
  - `lastReceivedOn` (`commerce.commissions.actions.create.response.200.item.lastReceivedOn`; any of, required)
    - any of the following: `string`, `null`
  - `needsReview` (`commerce.commissions.actions.create.response.200.item.needsReview`; boolean, required)
  - `number` (`commerce.commissions.actions.create.response.200.item.number`; string, required)
    - minLength: `1`
  - `orderId` (`commerce.commissions.actions.create.response.200.item.orderId`; any of, required)
    - any of the following: `string`, `null`
  - `paymentStatus` (`commerce.commissions.actions.create.response.200.item.paymentStatus`; string, required)
    - one of `"UPCOMING"`, `"DUE"`, `"OVERDUE"`, `"PAID"`, `"CANCELLED"`, `"NOT_COMMISSIONABLE"`
  - `percentPaid` (`commerce.commissions.actions.create.response.200.item.percentPaid`; any of, required)
    - any of the following: `number`, `null`
  - `providerLocator` (`commerce.commissions.actions.create.response.200.item.providerLocator`; any of, required)
    - any of the following: `string`, `null`
  - `receivedMinor` (`commerce.commissions.actions.create.response.200.item.receivedMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `receivingCompanyName` (`commerce.commissions.actions.create.response.200.item.receivingCompanyName`; string, required)
    - minLength: `1`
  - `source` (`commerce.commissions.actions.create.response.200.item.source`; string, required)
    - one of `"CHECKOUT"`, `"GDS_IMPORT"`, `"MANUAL"`, `"FILE_IMPORT"`
  - `supplier` (`commerce.commissions.actions.create.response.200.item.supplier`; object, required)
    - `name` (`commerce.commissions.actions.create.response.200.item.supplier.name`; any of, required)
      - any of the following: `string`, `null`
    - `supplierId` (`commerce.commissions.actions.create.response.200.item.supplier.supplierId`; any of, required)
      - any of the following: `string`, `null`
    - `verified` (`commerce.commissions.actions.create.response.200.item.supplier.verified`; boolean, required)
  - `tags` (`commerce.commissions.actions.create.response.200.item.tags`; array of string, required)
    - maxLength: `64` · minLength: `1`
  - `travelEnd` (`commerce.commissions.actions.create.response.200.item.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.commissions.actions.create.response.200.item.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.commissions.actions.create.response.200.item.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))$`
  - `allowedActions` (`commerce.commissions.actions.create.response.200.item.allowedActions`; array of string, required)
    - one of `"CHANGE_EXPECTED"`, `"CHANGE_DATES"`, `"SET_DUE_DATE"`, `"CANCEL"`, `"REOPEN"`, `"SET_COMMISSIONABLE"`, `"WRITE_OFF"`, `"CONFIRM_IMPORTED"`, `"REASSIGN_ADVISOR"`, `"SET_FLAG"`, `"ADD_NOTE"`, `"SET_TAGS"`, `"ADD_ATTACHMENT"`, `"REPORT_MISSING"`
  - `attachments` (`commerce.commissions.actions.create.response.200.item.attachments`; array of object, required)
    - `attachmentId` (`commerce.commissions.actions.create.response.200.item.attachments.attachmentId`; string, required)
      - minLength: `1`
    - `contentType` (`commerce.commissions.actions.create.response.200.item.attachments.contentType`; string, required)
      - minLength: `1`
    - `createdAt` (`commerce.commissions.actions.create.response.200.item.attachments.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))$`
    - `downloadUrl` (`commerce.commissions.actions.create.response.200.item.attachments.downloadUrl`; string, required)
      - format: `uri`
    - `fileName` (`commerce.commissions.actions.create.response.200.item.attachments.fileName`; string, required)
      - minLength: `1`
    - `label` (`commerce.commissions.actions.create.response.200.item.attachments.label`; any of, required)
      - any of the following: `string`, `null`
    - `sizeBytes` (`commerce.commissions.actions.create.response.200.item.attachments.sizeBytes`; integer, required)
      - maximum: `9007199254740991`
    - `uploadedByUserId` (`commerce.commissions.actions.create.response.200.item.attachments.uploadedByUserId`; string, required)
      - minLength: `1`
  - `cancelReason` (`commerce.commissions.actions.create.response.200.item.cancelReason`; any of, required)
    - any of the following: `string`, `null`
  - `cancelledAt` (`commerce.commissions.actions.create.response.200.item.cancelledAt`; any of, required)
    - any of the following: `string`, `null`
  - `clientUserId` (`commerce.commissions.actions.create.response.200.item.clientUserId`; any of, required)
    - any of the following: `string`, `null`
  - `commissionableMinor` (`commerce.commissions.actions.create.response.200.item.commissionableMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `createdAt` (`commerce.commissions.actions.create.response.200.item.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.commissions.actions.create.response.200.item.createdByUserId`; any of, required)
    - any of the following: `string`, `null`
  - `expectationVersion` (`commerce.commissions.actions.create.response.200.item.expectationVersion`; integer, required)
    - maximum: `9007199254740991`
  - `identifier` (`commerce.commissions.actions.create.response.200.item.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`
  - `notes` (`commerce.commissions.actions.create.response.200.item.notes`; array of object, required)
    - `authorUserId` (`commerce.commissions.actions.create.response.200.item.notes.authorUserId`; string, required)
      - minLength: `1`
    - `bodyMarkdown` (`commerce.commissions.actions.create.response.200.item.notes.bodyMarkdown`; string, required)
      - minLength: `1`
    - `createdAt` (`commerce.commissions.actions.create.response.200.item.notes.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))$`
    - `noteId` (`commerce.commissions.actions.create.response.200.item.notes.noteId`; string, required)
      - minLength: `1`
  - `paymentTermDays` (`commerce.commissions.actions.create.response.200.item.paymentTermDays`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `quantity` (`commerce.commissions.actions.create.response.200.item.quantity`; integer, required)
    - maximum: `9007199254740991`
  - `rateBps` (`commerce.commissions.actions.create.response.200.item.rateBps`; any of, required)
    - any of the following: `integer`, `null`
  - `revisions` (`commerce.commissions.actions.create.response.200.item.revisions`; array of object, required)
    - `actorUserId` (`commerce.commissions.actions.create.response.200.item.revisions.actorUserId`; any of, required)
      - any of the following: `string`, `null`
    - `changedFields` (`commerce.commissions.actions.create.response.200.item.revisions.changedFields`; map of array\<unknown\>, required)
    - `createdAt` (`commerce.commissions.actions.create.response.200.item.revisions.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))$`
    - `reason` (`commerce.commissions.actions.create.response.200.item.revisions.reason`; string, required)
      - minLength: `1`
    - `version` (`commerce.commissions.actions.create.response.200.item.revisions.version`; integer, required)
      - maximum: `9007199254740991`
  - `supplierCostMinor` (`commerce.commissions.actions.create.response.200.item.supplierCostMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `travelersTripId` (`commerce.commissions.actions.create.response.200.item.travelersTripId`; any of, required)
    - any of the following: `string`, `null`
  - `writeOffReason` (`commerce.commissions.actions.create.response.200.item.writeOffReason`; any of, required)
    - any of the following: `string`, `null`
  - `writtenOffAt` (`commerce.commissions.actions.create.response.200.item.writtenOffAt`; any of, required)
    - any of the following: `string`, `null`
- `upload` (`commerce.commissions.actions.create.response.200.upload`; any of, required)
  - any of the following:
    - `UploadLink`
      - `expiresAt` (`UploadLink.expiresAt`; 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))$`
      - `headers` (`UploadLink.headers`; map of string, required)
      - `method` (`UploadLink.method`; string, required)
      - `url` (`UploadLink.url`; string, required)
        - format: `uri`
    - `null`

### 400

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

#### Example

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

- `errorCode` (`commerce.commissions.actions.create.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.commissions.actions.create.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`commerce.commissions.actions.create.response.401.errorCode`; string, required)
- `errorMessage` (`commerce.commissions.actions.create.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`commerce.commissions.actions.create.response.403.errorCode`; string, required)
- `errorMessage` (`commerce.commissions.actions.create.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Commerce/commerce.commissions.actions.create/index.md
