Register a document for a label
Changed onRegister a carrier document against a label. The response returns an upload target; upload the document file to that target, then call the send documents endpoint to transmit it to the carrier. Carrier information is resolved automatically from the label.
Request
- Base URL: https://api.shipengine.com
- URL: https://api.shipengine.com/v1/labels/{label_id}/documents
- Auth: API key in header API-Key
Request body
Example request
{
"type": "usmca_commercial_invoice_certification_of_origin",
"format": "PDF",
"file_name": "usmca-certification-of-origin.pdf"
}Response
The document was registered successfully.
Example response
{
"document_id": "019eb24e-cd4e-7609-b740-c2324fe93272",
"upload": {
"url": "https://carrier-doc-upload.s3.amazonaws.com",
"fields": {
"Content-Type": "application/pdf",
"key": "019eb24e-cd4e-7609-b740-c2324fe93272.pdf",
"x-amz-meta-document-id": "019eb24e-cd4e-7609-b740-c2324fe93272",
"x-amz-meta-seller-id": "8801990",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256",
"X-Amz-Credential": "ASIA.../20260610/us-east-1/s3/aws4_request",
"X-Amz-Date": "20260610T161249Z",
"Policy": "eyJleHBpcmF0aW9uIjoi...",
"X-Amz-Signature": "b81189b9df29...",
"X-Amz-Security-Token": "IQoJb3JpZ2lu..."
}
}
}Changes
- warning
added the new
bring_your_own_label_not_supportedenum value to the//response property for the response status - warning
added the new
bring_your_own_label_not_supportedenum value to the//response property for the response status - warning
added the new
bring_your_own_label_not_supportedenum value to the//response property for the response status - warning
added the new
multiple_sales_ordersenum value to the//response property for the response status - warning
added the new
multiple_sales_ordersenum value to the//response property for the response status - warning
added the new
multiple_sales_ordersenum value to the//response property for the response status - warning
added the new
sales_order_link_requiredenum value to the//response property for the response status - warning
added the new
sales_order_link_requiredenum value to the//response property for the response status - warning
added the new
sales_order_link_requiredenum value to the//response property for the response status
- warning
- breaking
the
/response's property type changed from no type toobjectfor status - breaking
the
/response's property type changed from no type toobjectfor status - breaking
the
/response's property type changed from no type toobjectfor status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
removed from the
/response propertyallOflist for the response status - info
removed from the
/response propertyallOflist for the response status - info
removed from the
/response propertyallOflist for the response status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking