---
search:
  tags:
    - Inventory
    - POST
seo:
  description: >-
    Holds one available unit. expiresAt must be in the future and no more than…
    Reference for the POST /inventory/holds endpoint in the Toreca Cloud Partner
    API.
sidebar:
  label: Hold a unit
  badge: POST
title: Hold a unit
type: openapi-operation
---
Holds one available unit. expiresAt must be in the future and no more than 90 days ahead; omitted means no expiry. Creation returns 201; replaying the same requestId and content returns 200. Reusing requestId for different content fails with idempotency_conflict. In addition to inventory:read, this needs its operation scope and the approving member’s inventory.write permission.

`POST /inventory/holds`

**Request body** (`application/json`, required)

- `requestId` (string<uuid>, required)
- `inventoryItemId` (string<uuid>, required)
- `purpose` (string, required)
- `destinationLabel` (string, required)
- `reason` (string, required)
- `externalRef` (string)
- `expiresAt` (string<date-time>)

Request body example:

```json
{
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "inventoryItemId": "ef1bc09e-447a-46aa-a9d9-d86e3d490831",
  "purpose": "oripa",
  "destinationLabel": "string",
  "reason": "string",
  "externalRef": "string",
  "expiresAt": "2019-08-24T14:15:22Z"
}
```

**Responses**

- `200` — Success
- `201` — Created
- `400` — \`invalid\_request\`: a parameter is invalid.
- `401` — \`invalid\_token\`: the token is missing, expired, or for another resource.
- `403` — One of \`insufficient\_scope\`, \`connection\_revoked\`, \`client\_disabled\` or \`forbidden\`.
- `409` — Conflict, reused requestId or receipt not confirmed
- `422` — The state, target or value refuses the operation. Inspect error and affected IDs.

Response example, 200:

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "orderNumber": "string",
  "status": "reserved",
  "version": 0,
  "inventoryItemId": "ef1bc09e-447a-46aa-a9d9-d86e3d490831",
  "purpose": "oripa",
  "destinationLabel": "string",
  "externalRef": "string",
  "expiresAt": "2019-08-24T14:15:22Z",
  "trackingNumber": "string",
  "sale": {
    "amountMinor": 0,
    "currency": "string",
    "source": "entered"
  }
}
```
