Admin API / Types

ShippingLabelBatch

Object

A 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:read

The requirement applies to every field of ShippingLabelBatch unless that field declares its own scopes.

type ShippingLabelBatch implements Job & Node

Fields

FieldTypeDescription
completedAtDateTime
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.
createdAtDateTime!
When the batch was created.
fileGeneratedFile
Merged labels, with packing slips when requested. Null until purchase ends and after the file expires.
idID!
A globally unique ID. Treat this value as an opaque string.
includesPackingSlipsBoolean!
Whether the merged file includes packing slips.
itemsShippingLabelBatchItemConnection!
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.
phaseShippingLabelBatchPhase!
The step of the batch. For a FAILED or CANCELLED batch, the step in which it stopped.
progressJobProgress
Item counts.
statusJobStatus!
The batch state. WAITING while phase is AWAITING_SELECTION.

Returned by