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

# Queue Shopify Confirmation Calls

> Queue order confirmation calls for a list of Shopify order numbers.

Queue confirmation calls for up to 200 Shopify orders in one request. It uses the confirmation agent and order actions set on your Shopify connector, so the account needs an active Shopify connection with a confirmation agent chosen.

Each order is checked before it is queued. Orders that are not eligible are returned as `skipped` with a reason, and the rest are queued. Follow progress with [Get Confirmation Batch](https://docs.oktivo.com/api-reference/shopify/get-confirmation-batch.md).

## Request Body

**orderNumbers** `array` *required*

1 to 200 order numbers as strings, for example `"#1001"` or `"1001"`. A leading `#` is optional, and duplicates are removed. Each number may use letters, digits, `.`, `_` and `-` (up to 40 characters).

**reset** `boolean` (default: false)

When `true`, the previous confirmation-call state of an order is cleared before it is queued again. Orders that are already confirmed, cancelled or fulfilled are never reset, and neither is an order with a live call.

## Response

Returns `202 Accepted`.

**success** `boolean`

Indicates if the batch was accepted.

**data** `object`

**data properties**

**batchId** `string`

The batch ID (starts with `sbc_`). Use it to read progress.

**accepted** `number`

How many orders were queued.

**results** `array`

One entry per order: `orderNumber`, `status` (`queued` or `skipped`), and for skipped orders a `reason`. Possible reasons: `invalid_format`, `not_found`, `cancelled`, `fulfilled`, `already_confirmed`, `no_phone`, `in_progress`, `already_queued`. Orders not yet imported from Shopify are `queued` with the reason `will_fetch_from_shopify`.

```bash cURL theme={null}
curl -X POST https://client-backend.oktivo.com/api/v1/crm/shopify/confirmation-calls \
  -H "Authorization: Bearer okt_YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "orderNumbers": ["#1001", "1002"] }'
```

```json 202 Accepted theme={null}
{
  "success": true,
  "data": {
    "batchId": "sbc_2f0c7a56-3a41-4d7e-9a3e-5d1c0b6e8f11",
    "accepted": 1,
    "results": [
      { "orderNumber": "#1001", "shopifyOrderId": "5001234567", "status": "queued", "paymentType": "cod" },
      { "orderNumber": "#1002", "shopifyOrderId": "5001234890", "status": "skipped", "reason": "already_confirmed", "paymentType": "prepaid" }
    ]
  },
  "requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77",
  "timestamp": "2026-03-02T04:05:00.000Z"
}
```

```json 400 Validation Error theme={null}
{
  "success": false,
  "message": "Validation failed",
  "errors": ["orderNumbers must contain at least 1 order number."],
  "code": "VALIDATION_ERROR",
  "requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77",
  "errorInfo": {
    "code": "VALIDATION_ERROR",
    "message": "Validation failed",
    "details": [
      "orderNumbers must contain at least 1 order number."
    ]
  }
}
```

## Errors

| Status | Meaning |
| - | - |
| 400 | Validation failed, or no confirmation agent is set on the Shopify connector |
| 409 | No active Shopify connection |
| 429 | Too many orders are already queued for your account |
| 502 | The order tool could not be attached to the confirmation agent |

> [!NOTE]
>
> This endpoint accepts an **API Token** (`okt_...`) or **JWT**. The account is taken from the token. It requires the `crm_api` feature and shares the 120 requests/minute limit.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.