Create a scan form
POST /shipping/api/v1/scan_forms/{sub_carrier_id}
Create a scan form (manifest) for a specific carrier. A scan form groups together all shipments from a collection address into a single document that can be scanned by the carrier during pickup, rather than scanning each package individually.
The response may include multiple manifests depending on the shipments associated with the collection address.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The sub-carrier identifier (e.g., USPS, UPS)
Example
USPSRequest Body required
Section titled “Request Body required ”object
The collection/pickup address where packages will be collected from. You can provide either a saved address ID or the full address fields.
object
Veeqo Address Service ID for a saved address
b8b3e7b6-3adc-417f-963b-dd9851947ac2Contact name at the collection address
My WarehouseCompany name
Acme CorpPhone number
+12065551234Email address
Address line 1
410 Terry Ave NAddress line 2
City/town
SeattlePostal/ZIP code
98109ISO 3166-1 alpha-2 country code
USState/region/county
WAExamples
Create scan form with full collection address
{ "collection_address": { "name": "My Warehouse", "company": "Acme Corp", "phone": "+12065551234", "line1": "410 Terry Ave N", "town": "Seattle", "postcode": "98109", "country_code": "US", "county": "WA" }}Create scan form using a saved address
{ "collection_address": { "address_id": "b8b3e7b6-3adc-417f-963b-dd9851947ac2" }}Responses
Section titled “ Responses ”Scan form created successfully
object
List of created scan form manifests
A created scan form. The document is returned inline as base64 rather than as a link,
and no identifier is returned on creation, so a newly created form cannot be reprinted
by ID directly. Use the history endpoint to obtain its collection_form_id.
One entry is returned per seller registration the form was requested for, so the
manifests array can contain more than one entry for a single request.
object
Generation status of the scan form.
COMPLETED— the document was generated and is present on this entryIN_PROGRESS— the request was accepted but the document is not ready yet. The entry is returned withoutdocumentanddocument_format, and the form becomes available through the history endpoint once generated.FAILED— the carrier reported a failure for this registration and returned no document. A failure that carries a reason is reported inerror_messagesinstead of as an entry here.
COMPLETEDBase64-encoded scan form document. Present only when status is COMPLETED,
and omitted entirely otherwise.
JVBERi0xLjQKJeLjz9MKMyAwIG9iago8P...MIME type of the document, as returned by the carrier. Omitted when document
is absent.
application/pdfAny error messages from failed manifest requests
Bad request - missing or invalid collection address, or manifest creation failed
object
List of error messages
[ "to_address is required"]{ "error_messages": [ "Invalid request parameters" ]}