SCAN Forms
List SCAN Forms
Paginated SCAN forms (USPS) and carrier manifests, newest first. One form covers the labels of one label account, carrier account, warehouse and ship date. `status` is `creating` (the provider is still building it), `created` or `failed` (see `failure_reason`; its labels were released and can go on another form). `document_name` is 'SCAN form' for USPS and 'Manifest' otherwise. `has_voided_items` is true when a label on the form was voided after the form was created.
Create SCAN Forms
Creates one SCAN form / manifest per supported group of the ship date (or only the groups whose preview `key` is listed in `group_keys`), as a background job. Returns the tracked job id; poll the job, then list the forms. A group of more than 1,000 labels is split into several forms. A label is only ever put on one form; a form the provider refuses is kept as `failed` with the provider's message and its labels are released.
Preview SCAN Forms
What creating SCAN forms for a ship date would do: the groups (one form each) of purchased, live (not test), not voided labels that are not on a form yet, with their counts. Groups whose provider has no manifest API (ShipStation, Starshipit) or that lack the carrier account the provider needs are returned with `supported: false` and an `unsupported_reason`.
Get SCAN Form
A SCAN form with every label on it: its label batch, fulfillment order, sales order number, carrier, service and tracking numbers, plus the tracking codes the provider recorded on the form. Forms are immutable once created.
Download SCAN Form Document
The form's document (PDF) for printing and handing to the driver. Served inline; pass `download=1` for an attachment. When the stored copy is missing it is fetched from the provider again. Returns 422 `{message, reason: no_document}` while the provider has not made the document available (form still `creating`, or `failed`).