Order

Get order documents

Retrieve documents associated with an order such as shipping labels or proof of delivery. Set load_data=true to include the document content in the response.

get/v1/order/{id}/documents

Request

  • Base URL
    https://api.sandbox.usenash.com
  • Auth
    none declared

Path parameters

idstring required

Unique reference number for the order: either order.id (starts with "ord_") or order.externalId

Example:ord_1234567890

Query parameters

loadDataboolean required

Whether to load the document data and return it as part of the response. Text documents such as ZPL are returned as text, all others such as PDF as base64.

Response

OK

createdAtstring date-time required

The date and time when the document was created

idstring required

The id of the document

type'shipping_label' | 'pickup_label' | 'manifest' | 'packing_slip_label' | 'proof_of_delivery' required
contentTypestring required

The content type of the document

urlstring nullable

The URL of the document

datastring nullable

The document content when load_data=true: text documents such as ZPL as plain text, all others such as PDF as base64

Example response

[
  {
    "createdAt": "2023-08-29T19:17:46.264523",
    "id": "doc_1234567890",
    "contentType": "application/pdf",
    "url": "https://example.com/document.pdf",
    "data": "SGVsbG8gd29ybG="
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.