Get all Shippo documents for a transaction
Use this request to retrieve all the documents and labels for a Shippo Transaction ID.
Use a
GET operation and the following URL to send this
request:{api_url}/shippo/transaction/{transactionId}/documentswhere:{api_url}is the API's URL.{transactionId}is the ID of the transaction whos documents you want to retrive.
For
example:
https://api.epalglobal.co/generate-labels/shippo/transaction/{transactionId}/documentsDetails
| Detail | Value |
|---|---|
| Operation | GET |
| Endpoint | /shippo/transaction/{transactionId}/documents |
| Fields | Query parameter and response fields. |
Query Parameters
| Query Parameter | Details | Description |
|---|---|---|
transactionId |
|
Specify the Transaction ID for the Shippo transaction. |
Response Parameters
| Response Parameter | Details | Description |
|---|---|---|
documents |
|
Groups information about the returned documents. |
documents.commercialInvoice |
|
The commercial invoice. |
documents.customsDeclaration |
|
Groups information about the customs declaration. |
documents.customsDeclaration.data |
|
The data from the Customs declaration. |
documents.customsDeclaration.id |
|
The Customs declaration's ID. |
documents.label |
|
The shipping label. |
documents.qrcode |
|
The QR code. |
messages |
|
Any messages associated with the documents. |
paperlessTrade |
|
Indicates whether these documents are part of a paperless trade or not. |
shipment |
|
Groups shipment information. |
shipment.fromAddress |
|
The address that the shipment was sent from. |
shipment.id |
|
The Shipment ID. |
shipment.toAddress |
|
The address that the shipment was sent to. |
transaction |
|
Groups information about the transaction. |
transaction.carrier |
|
The carrier. |
transaction.createdAt |
|
The time the transaction was created. |
transaction.eta |
|
The Estimated Time of Arrival (ETA). |
transaction.id |
|
The transaction's ID. |
transaction.status |
|
The status of the transaction. |
transaction.trackingNumber |
|
The tracking number. |
transaction.trackingUrl |
|
The URL for the tracking number. |
Response Example
The following is an example of a successful
response:
{
"transaction": {
"id": "string",
"status": "string",
"trackingNumber": "string",
"trackingUrl": "string",
"carrier": "string",
"eta": "string",
"createdAt": "string"
},
"documents": {
"label": "string",
"commercialInvoice": "string",
"customsDeclaration": {
"id": "string",
"data": {}
},
"qrCode": "string"
},
"shipment": {
"id": "string",
"fromAddress": {},
"toAddress": {}
},
"messages": [
"string"
],
"paperlessTrade": true
}