---
title: "Run a statement action"
---

> 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 a statement action

Path: Nicer API › Commerce

`POST /commerce/statements/{statementId}/actions`

URL: `https://api.nicer.travel/commerce/statements/{statementId}/actions`

One action on a statement. ADD_ADJUSTMENT and REMOVE_ADJUSTMENT (a credit or debit, unit amount times quantity, with a description) and RECOMPUTE (picks again the earnings its period covers) while it is OPEN or PENDING_APPROVAL; CLOSE moves an OPEN statement to approval; REOPEN takes it back; APPROVE releases its earnings and makes it payable — a negative total, or one under the payee's minimum payout, is carried to the next statement; VOID cancels an unapproved statement and frees its earnings. MARK_PAID records that an approved statement was paid outside Nicer (a check, a wire, another system) in one step: the day, optionally how and a reference; it becomes PAID with its payout and journal (409 COMMISSION_STATEMENT_ALREADY_PAID once a payout run holds it). ADD_ATTACHMENT (any status but VOID) answers a presigned upload for a document such as the payment's receipt. ADD_NOTE (Markdown, as on an item) at any time. An approved statement accepts no other change (409 COMMISSION_STATEMENT_FINAL). The payee may add notes; agency admins and finance staff run the rest. Returns the statement and, for ADD_ATTACHMENT, its upload link.

## Authentication

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

## Path parameters

- `statementId` (`commerce.statements.actions.create.path.statementId`; string, required)

## Header parameters

- `Idempotency-Key` (`commerce.statements.actions.create.header.Idempotency-Key`; string, required) — Unique key (8–255 chars) per request; replays return the original result.
- `x-nicer-company` (`commerce.statements.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.statements.actions.create.1`)
  - `description` (`commerce.statements.actions.create.1.description`; string, required)
    - maxLength: `500` · minLength: `1`
  - `kind` (`commerce.statements.actions.create.1.kind`; string, required)
    - one of `"CREDIT"`, `"DEBIT"`
  - `quantity` (`commerce.statements.actions.create.1.quantity`; integer, required)
    - maximum: `10000` · minimum: `1`
  - `unitAmountMinor` (`commerce.statements.actions.create.1.unitAmountMinor`; integer, required)
    - maximum: `100000000` · minimum: `1`
- `object` (`commerce.statements.actions.create.2`)
  - `adjustmentId` (`commerce.statements.actions.create.2.adjustmentId`; string, required)
    - maxLength: `255` · minLength: `1`
- `object` (`commerce.statements.actions.create.3`)
  - `bodyMarkdown` (`commerce.statements.actions.create.3.bodyMarkdown`; string, required)
    - maxLength: `10000` · minLength: `1`
- `object` (`commerce.statements.actions.create.4`)
- `object` (`commerce.statements.actions.create.5`)
- `object` (`commerce.statements.actions.create.6`)
- `object` (`commerce.statements.actions.create.7`)
  - `reason` (`commerce.statements.actions.create.7.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.statements.actions.create.8`)
- `object` (`commerce.statements.actions.create.9`)
  - `paidOn` (`commerce.statements.actions.create.9.paidOn`; 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])))$`
  - `method` (`commerce.statements.actions.create.9.method`; string, optional)
    - one of `"CHECK"`, `"MANUAL"`
  - `reference` (`commerce.statements.actions.create.9.reference`; string, optional)
    - maxLength: `100` · minLength: `1`
- `object` (`commerce.statements.actions.create.10`)
  - `contentType` (`commerce.statements.actions.create.10.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.statements.actions.create.10.fileName`; string, required)
    - maxLength: `255` · minLength: `1`
  - `sha256` (`commerce.statements.actions.create.10.sha256`; string, required)
    - pattern: `^[0-9a-f]{64}$`
  - `sizeBytes` (`commerce.statements.actions.create.10.sizeBytes`; integer, required)
    - maximum: `26214400` · minimum: `1`
  - `label` (`commerce.statements.actions.create.10.label`; string, optional)
    - maxLength: `200` · minLength: `1`

## Example request

```json
{
  "description": "string",
  "kind": "CREDIT",
  "quantity": 1,
  "type": "ADD_ADJUSTMENT",
  "unitAmountMinor": 1
}
```

## 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.statements.actions.create({
  "statementId": "string",
  "description": "string",
  "kind": "CREDIT",
  "quantity": 1,
  "type": "ADD_ADJUSTMENT",
  "unitAmountMinor": 1
});
```

### Nicer CLI

```bash
nicer commerce statements actions create --statement-id 'string' --company "$NICER_COMPANY" --input - <<'JSON'
{
  "description": "string",
  "kind": "CREDIT",
  "quantity": 1,
  "type": "ADD_ADJUSTMENT",
  "unitAmountMinor": 1
}
JSON
```

### cURL

```bash
curl --request POST \
  --url 'https://api.nicer.travel/commerce/statements/<statementId>/actions' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --header 'x-nicer-company: string' \
  --data '
{
  "description": "string",
  "kind": "CREDIT",
  "quantity": 1,
  "type": "ADD_ADJUSTMENT",
  "unitAmountMinor": 1
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/statements/<statementId>/actions';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    'x-nicer-company': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    description: 'string',
    kind: 'CREDIT',
    quantity: 1,
    type: 'ADD_ADJUSTMENT',
    unitAmountMinor: 1
  })
};

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/statements/<statementId>/actions"

payload = {
    "description": "string",
    "kind": "CREDIT",
    "quantity": 1,
    "type": "ADD_ADJUSTMENT",
    "unitAmountMinor": 1
}
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
{
  "statement": {
    "adjustmentsMinor": -9007199254740991,
    "approvedAt": "2019-08-24T14:15:22Z",
    "approvedByUserId": "string",
    "closedAt": "2019-08-24T14:15:22Z",
    "companyName": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "currency": "string",
    "cycleOn": "2019-08-24",
    "earningsMinor": -9007199254740991,
    "lineCount": 9007199254740991,
    "number": "string",
    "paidAt": "2019-08-24T14:15:22Z",
    "payeeId": "string",
    "payeeKind": "ADVISOR",
    "periodEnd": "2019-08-24",
    "periodStart": "2019-08-24",
    "statementId": "string",
    "status": "OPEN",
    "totalMinor": -9007199254740991,
    "updatedAt": "2019-08-24T14:15:22Z",
    "version": 9007199254740991,
    "voidReason": "string",
    "adjustments": [
      {
        "adjustmentId": "string",
        "amountMinor": -9007199254740991,
        "carriedFromStatementId": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "createdByUserId": "string",
        "description": "string",
        "kind": "CREDIT",
        "quantity": 9007199254740991,
        "unitAmountMinor": 9007199254740991
      }
    ],
    "allowedActions": [
      "ADD_ADJUSTMENT"
    ],
    "attachments": [
      {
        "attachmentId": "string",
        "contentType": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "downloadUrl": "http://example.com",
        "fileName": "string",
        "label": "string",
        "sizeBytes": 9007199254740991,
        "uploadedByUserId": "string"
      }
    ],
    "lines": [
      {
        "amountMinor": -9007199254740991,
        "bucket": "PENDING",
        "clientName": "string",
        "commissionItemId": "string",
        "confirmationNumber": "string",
        "earningId": "string",
        "earningKind": "string",
        "entryType": "EARNING",
        "orderId": "string",
        "payableOn": "2019-08-24",
        "supplierName": "string",
        "travelEnd": "2019-08-24"
      }
    ],
    "nextCursor": "string",
    "notes": [
      {
        "authorUserId": "string",
        "bodyMarkdown": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "noteId": "string"
      }
    ],
    "payout": {
      "amountMinor": 9007199254740991,
      "attempts": 9007199254740991,
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "currency": "string",
      "failureReason": "string",
      "method": "STRIPE_CONNECT",
      "paidAt": "2019-08-24T14:15:22Z",
      "payeeId": "string",
      "payeeKind": "ADVISOR",
      "payoutId": "string",
      "payoutRunId": "string",
      "processorReference": "string",
      "statementId": "string",
      "statementNumber": "string",
      "status": "PENDING",
      "updatedAt": "2019-08-24T14:15:22Z"
    },
    "pdfUrl": "http://example.com"
  },
  "upload": {
    "expiresAt": "2019-08-24T14:15:22Z",
    "headers": {
      "property1": "string",
      "property2": "string"
    },
    "method": "PUT",
    "url": "http://example.com"
  }
}
```

- `statement` (`commerce.statements.actions.create.response.200.statement`; object, required)
  - `adjustmentsMinor` (`commerce.statements.actions.create.response.200.statement.adjustmentsMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `approvedAt` (`commerce.statements.actions.create.response.200.statement.approvedAt`; any of, required)
    - any of the following: `string`, `null`
  - `approvedByUserId` (`commerce.statements.actions.create.response.200.statement.approvedByUserId`; any of, required)
    - any of the following: `string`, `null`
  - `closedAt` (`commerce.statements.actions.create.response.200.statement.closedAt`; any of, required)
    - any of the following: `string`, `null`
  - `companyName` (`commerce.statements.actions.create.response.200.statement.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.statements.actions.create.response.200.statement.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))$`
  - `currency` (`commerce.statements.actions.create.response.200.statement.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
  - `cycleOn` (`commerce.statements.actions.create.response.200.statement.cycleOn`; 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])))$`
  - `earningsMinor` (`commerce.statements.actions.create.response.200.statement.earningsMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `lineCount` (`commerce.statements.actions.create.response.200.statement.lineCount`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `number` (`commerce.statements.actions.create.response.200.statement.number`; string, required)
    - minLength: `1`
  - `paidAt` (`commerce.statements.actions.create.response.200.statement.paidAt`; any of, required)
    - any of the following: `string`, `null`
  - `payeeId` (`commerce.statements.actions.create.response.200.statement.payeeId`; string, required)
    - minLength: `1`
  - `payeeKind` (`commerce.statements.actions.create.response.200.statement.payeeKind`; string, required)
    - one of `"ADVISOR"`, `"COMPANY"`
  - `periodEnd` (`commerce.statements.actions.create.response.200.statement.periodEnd`; 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])))$`
  - `periodStart` (`commerce.statements.actions.create.response.200.statement.periodStart`; 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])))$`
  - `statementId` (`commerce.statements.actions.create.response.200.statement.statementId`; string, required)
    - minLength: `1`
  - `status` (`commerce.statements.actions.create.response.200.statement.status`; string, required)
    - one of `"OPEN"`, `"PENDING_APPROVAL"`, `"APPROVED"`, `"PAID"`, `"VOID"`
  - `totalMinor` (`commerce.statements.actions.create.response.200.statement.totalMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `updatedAt` (`commerce.statements.actions.create.response.200.statement.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))$`
  - `version` (`commerce.statements.actions.create.response.200.statement.version`; integer, required)
    - maximum: `9007199254740991`
  - `voidReason` (`commerce.statements.actions.create.response.200.statement.voidReason`; any of, required)
    - any of the following: `string`, `null`
  - `adjustments` (`commerce.statements.actions.create.response.200.statement.adjustments`; array of object, required)
    - `adjustmentId` (`commerce.statements.actions.create.response.200.statement.adjustments.adjustmentId`; string, required)
      - minLength: `1`
    - `amountMinor` (`commerce.statements.actions.create.response.200.statement.adjustments.amountMinor`; integer, required)
      - maximum: `9007199254740991` · minimum: `-9007199254740991`
    - `carriedFromStatementId` (`commerce.statements.actions.create.response.200.statement.adjustments.carriedFromStatementId`; any of, required)
      - any of the following: `string`, `null`
    - `createdAt` (`commerce.statements.actions.create.response.200.statement.adjustments.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.statements.actions.create.response.200.statement.adjustments.createdByUserId`; any of, required)
      - any of the following: `string`, `null`
    - `description` (`commerce.statements.actions.create.response.200.statement.adjustments.description`; string, required)
      - maxLength: `500` · minLength: `1`
    - `kind` (`commerce.statements.actions.create.response.200.statement.adjustments.kind`; string, required)
      - one of `"CREDIT"`, `"DEBIT"`
    - `quantity` (`commerce.statements.actions.create.response.200.statement.adjustments.quantity`; integer, required)
      - maximum: `9007199254740991`
    - `unitAmountMinor` (`commerce.statements.actions.create.response.200.statement.adjustments.unitAmountMinor`; integer, required)
      - maximum: `9007199254740991`
  - `allowedActions` (`commerce.statements.actions.create.response.200.statement.allowedActions`; array of string, required)
    - one of `"ADD_ADJUSTMENT"`, `"REMOVE_ADJUSTMENT"`, `"ADD_NOTE"`, `"CLOSE"`, `"APPROVE"`, `"REOPEN"`, `"VOID"`, `"RECOMPUTE"`, `"MARK_PAID"`, `"ADD_ATTACHMENT"`
  - `attachments` (`commerce.statements.actions.create.response.200.statement.attachments`; array of object, required)
    - `attachmentId` (`commerce.statements.actions.create.response.200.statement.attachments.attachmentId`; string, required)
      - minLength: `1`
    - `contentType` (`commerce.statements.actions.create.response.200.statement.attachments.contentType`; string, required)
      - minLength: `1`
    - `createdAt` (`commerce.statements.actions.create.response.200.statement.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.statements.actions.create.response.200.statement.attachments.downloadUrl`; string, required)
      - format: `uri`
    - `fileName` (`commerce.statements.actions.create.response.200.statement.attachments.fileName`; string, required)
      - minLength: `1`
    - `label` (`commerce.statements.actions.create.response.200.statement.attachments.label`; any of, required)
      - any of the following: `string`, `null`
    - `sizeBytes` (`commerce.statements.actions.create.response.200.statement.attachments.sizeBytes`; integer, required)
      - maximum: `9007199254740991`
    - `uploadedByUserId` (`commerce.statements.actions.create.response.200.statement.attachments.uploadedByUserId`; string, required)
      - minLength: `1`
  - `lines` (`commerce.statements.actions.create.response.200.statement.lines`; array of object, required)
    - `amountMinor` (`commerce.statements.actions.create.response.200.statement.lines.amountMinor`; integer, required)
      - maximum: `9007199254740991` · minimum: `-9007199254740991`
    - `bucket` (`commerce.statements.actions.create.response.200.statement.lines.bucket`; string, required)
      - one of `"PENDING"`, `"AVAILABLE"`
    - `clientName` (`commerce.statements.actions.create.response.200.statement.lines.clientName`; any of, required)
      - any of the following: `string`, `null`
    - `commissionItemId` (`commerce.statements.actions.create.response.200.statement.lines.commissionItemId`; any of, required)
      - any of the following: `string`, `null`
    - `confirmationNumber` (`commerce.statements.actions.create.response.200.statement.lines.confirmationNumber`; any of, required)
      - any of the following: `string`, `null`
    - `earningId` (`commerce.statements.actions.create.response.200.statement.lines.earningId`; string, required)
      - minLength: `1`
    - `earningKind` (`commerce.statements.actions.create.response.200.statement.lines.earningKind`; string, required)
      - minLength: `1`
    - `entryType` (`commerce.statements.actions.create.response.200.statement.lines.entryType`; string, required)
      - one of `"EARNING"`, `"REVERSAL"`, `"CLAWBACK"`
    - `orderId` (`commerce.statements.actions.create.response.200.statement.lines.orderId`; any of, required)
      - any of the following: `string`, `null`
    - `payableOn` (`commerce.statements.actions.create.response.200.statement.lines.payableOn`; 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])))$`
    - `supplierName` (`commerce.statements.actions.create.response.200.statement.lines.supplierName`; any of, required)
      - any of the following: `string`, `null`
    - `travelEnd` (`commerce.statements.actions.create.response.200.statement.lines.travelEnd`; any of, required)
      - any of the following: `string`, `null`
  - `nextCursor` (`commerce.statements.actions.create.response.200.statement.nextCursor`; any of, required)
    - any of the following: `string`, `null`
  - `notes` (`commerce.statements.actions.create.response.200.statement.notes`; array of object, required)
    - `authorUserId` (`commerce.statements.actions.create.response.200.statement.notes.authorUserId`; string, required)
      - minLength: `1`
    - `bodyMarkdown` (`commerce.statements.actions.create.response.200.statement.notes.bodyMarkdown`; string, required)
      - minLength: `1`
    - `createdAt` (`commerce.statements.actions.create.response.200.statement.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.statements.actions.create.response.200.statement.notes.noteId`; string, required)
      - minLength: `1`
  - `payout` (`commerce.statements.actions.create.response.200.statement.payout`; any of, required)
    - any of the following:
      - `Payout`
        - `amountMinor` (`Payout.amountMinor`; integer, required)
          - maximum: `9007199254740991`
        - `attempts` (`Payout.attempts`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `companyName` (`Payout.companyName`; string, required)
          - minLength: `1`
        - `createdAt` (`Payout.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))$`
        - `currency` (`Payout.currency`; string, required)
          - pattern: `^[A-Z]{3}$`
        - `failureReason` (`Payout.failureReason`; any of, required)
          - any of the following: `string`, `null`
        - `method` (`Payout.method`; string, required)
          - one of `"STRIPE_CONNECT"`, `"CHECK"`, `"MANUAL"`
        - `paidAt` (`Payout.paidAt`; any of, required)
          - any of the following: `string`, `null`
        - `payeeId` (`Payout.payeeId`; string, required)
          - minLength: `1`
        - `payeeKind` (`Payout.payeeKind`; string, required)
          - one of `"ADVISOR"`, `"COMPANY"`
        - `payoutId` (`Payout.payoutId`; string, required)
          - minLength: `1`
        - `payoutRunId` (`Payout.payoutRunId`; string, required)
          - minLength: `1`
        - `processorReference` (`Payout.processorReference`; any of, required)
          - any of the following: `string`, `null`
        - `statementId` (`Payout.statementId`; string, required)
          - minLength: `1`
        - `statementNumber` (`Payout.statementNumber`; string, required)
          - minLength: `1`
        - `status` (`Payout.status`; string, required)
          - one of `"PENDING"`, `"PAID"`, `"FAILED"`, `"CANCELLED"`
        - `updatedAt` (`Payout.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))$`
      - `null`
  - `pdfUrl` (`commerce.statements.actions.create.response.200.statement.pdfUrl`; any of, required)
    - any of the following: `string`, `null`
- `upload` (`commerce.statements.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.statements.actions.create.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.statements.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.statements.actions.create.response.401.errorCode`; string, required)
- `errorMessage` (`commerce.statements.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.statements.actions.create.response.403.errorCode`; string, required)
- `errorMessage` (`commerce.statements.actions.create.response.403.errorMessage`; string, required)


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