Admin API / Types
ShippingLabelBatch
ObjectA batch quotes rates for its shipments, lets the seller review them, purchases labels, then generates one merged PDF.
Requires a client key with one of these scopes:admin:shipments:readThe requirement applies to every field of ShippingLabelBatch unless that field declares its own scopes.
type ShippingLabelBatch implements Job & NodeFields
| Field | Type | Description |
|---|---|---|
completedAt | DateTime | When the batch reached a terminal status. Null until then, and null for a batch that reads FAILED because it did not start within 1 hour. |
createdAt | DateTime! | When the batch was created. |
file | GeneratedFile | Merged labels, with packing slips when requested. Null until purchase ends and after the file expires. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
includesPackingSlips | Boolean! | Whether the merged file includes packing slips. |
items | ShippingLabelBatchItemConnection! | The shipments of the batch, oldest first; ties sort by ID.Arguments: after: String — Returns items after this cursor.first: Int — The maximum number of items. Defaults to 20, at most 100. |
phase | ShippingLabelBatchPhase! | The step of the batch. For a FAILED or CANCELLED batch, the step in which it stopped. |
progress | JobProgress | Item counts. |
status | JobStatus! | The batch state. WAITING while phase is AWAITING_SELECTION. |