---
search:
  tags:
    - Inventory
    - POST
seo:
  description: >-
    Up to 200 unique inventoryItemIds. Give each unit’s return… Reference for
    the POST /inventory/checkouts/{id}/return endpoint in the Toreca Cloud
    Partner API.
sidebar:
  label: Return checked-out units
  badge: POST
title: Return checked-out units
type: openapi-operation
---
Up to 200 unique inventoryItemIds. Give each unit’s return shelf and a reason. All succeed or none do. In addition to inventory:read, this needs its operation scope and the approving member’s inventory.write permission.

`POST /inventory/checkouts/{id}/return`

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

- `items` (object[], required)
- `reason` (string, required)

Request body example:

```json
{
  "items": [
    {
      "inventoryItemId": "ef1bc09e-447a-46aa-a9d9-d86e3d490831",
      "toLocationId": "e81ad314-9cb9-45ae-9ad9-f1b5ebcc7aae"
    }
  ],
  "reason": "string"
}
```

**Responses**

- `200` — Success
- `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\`.
- `404` — \`not\_found\`
- `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",
  "version": 0,
  "destinationLabel": "string",
  "reason": "string",
  "externalRef": "string",
  "shippedAt": "2019-08-24T14:15:22Z",
  "items": [
    {
      "inventoryItemId": "ef1bc09e-447a-46aa-a9d9-d86e3d490831",
      "assetNumber": "string",
      "status": "out",
      "returnedAt": "2019-08-24T14:15:22Z",
      "returnLocationId": "1d1d177a-c4a1-4389-b833-16c3941f123e"
    }
  ]
}
```
