Mark many orders shipped

​

Marks one or more of your sales shipped as a single background job, with the same rules as POST /v1/sales/{orderNumber}/mark-shipped: each order must be yours, awaiting dispatch (pending_shipment or cancellation_requested), not shipped with a CardNexus label, and, when it ships tracked, it needs a tracking number (and signatureConfirmed where the rule requires it). Shipment insurance and metadata are not offered here.

Nothing is written to any order in this call: it validates the list, records the batch and returns it with a 202. Duplicate order numbers or a malformed tracking number reject the whole call with 400. Read the progress and the outcome of each order with GET /v1/sales/ship-batches/{batchId}.

Each order ends as shipped, already_shipped (it already shipped with the same number), failed (see its code), or not_attempted. Tracking registrations share one budget across the whole platform. An order held back for that reason is not a failure: it is waiting and the batch tries it again, and an order still held back when the batch stops retrying (retryHorizonSeconds) is reported as not_attempted with TRACKING_RATE_LIMITED. Nothing was changed for it, so sending it again is safe. Running the same list again is safe: finished orders come back already_shipped, failed ones are retried.

One batch runs per account at a time. Starting a second returns 409 BATCH_IN_PROGRESS with the running batch's id.

Send an Idempotency-Key header to make retries safe: the same key returns the same response for 24 hours.

Requires the sales:write scope.

Body

required
application/json
  • The orders to mark shipped, one entry per order, in the order they are handled. No order may appear twice.

    Properties: 4

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/sales/ship-batches
curl https://public-api.cardnexus.com/v1/sales/ship-batches \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "orders": [
    {
      "orderNumber": "",
      "trackingNumber": "",
      "trackingUrl": "https://example.com",
      "signatureConfirmed": true
    }
  ]
}'
{
  "batch": {
    "id": "6717c2d8e2d1c0b9a8f7e6a1",
    "status": "completed",
    "counts": {
      "total": 3,
      "shipped": 2,
      "alreadyShipped": 0,
      "failed": 1,
      "waiting": 0,
      "notAttempted": 0
    },
    "retryHorizonSeconds": 1200,
    "createdAt": "2026-10-22T10:02:11.000Z",
    "finishedAt": "2026-10-22T10:02:49.000Z"
  }
}