Get a ship batch
Returns a ship batch started with POST /v1/sales/ship-batches: its status and tallies, and a page of its orders with the outcome of each, in the order you sent them. Filter with outcome to read only the failures, or only the orders still waiting.
A batch is kept for 7 days after it was created. Another account's batch is not found.
Requires the sales:read scope.
Path Parameters
- Type: stringbatch
Id min length:1requiredThe batch id. Path parameter.
Query Parameters
- Type: array of stringenumoutcome
Only return orders with these outcomes. Repeat the parameter for several.
values- pending
The batch has not handled this order yet.
- shipped
The order was marked shipped by this batch.
- already
_shipped The order had already shipped with the number you sent.
- failed
The order could not be shipped. See
codeandmessage. - waiting
The tracking provider is busy. The batch holds this order back and tries it again.
- not
_attempted The tracking provider stayed busy until the batch stopped retrying. Nothing was changed for this order; send it again.
- pending
- Type: stringcursor
Pass back the
nextCursorof the previous page. - Type: integerlimitmin:1max:100
Orders per page, 1 to 100.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://public-api.cardnexus.com/v1/sales/ship-batches/{batchId}?limit=50' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"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"
},
"results": {
"data": [
{
"orderNumber": "OR-MWRDE-2",
"outcome": "failed",
"trackingNumber": "1Z999AA10123456784",
"carrier": null,
"code": "SHIPPING_MANAGED_BY_CARDNEXUS",
"message": "This sale ships with a CardNexus label; create the label instead."
}
],
"pagination": {
"nextCursor": "string"
}
}
}