Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
The functionality allows for generating manifests for shipments whether or not they have dispatch orders.
2 methods are available:
Method for generating a manifest for the dispatch order (printout)
Method for generating a manifest for the indicated shipment IDs (printouts)
On this page
Table of Contents |
---|
Structure
In case of one shipment a single
*.pdf
file is returnedIn case of multiple shipments
- In case shipments are of the same service, a single*.pdf
file with all the shipments is included
- In case shipments are from multiple services, a single*.zip
file containing*.pdf
files is returned (separate*.pdf
file for each service)A maximum of 100 manifests for shipments can be downloaded at once
Printing a Dispatch Order
Info |
---|
To print a dispatch order the user has to be the sender of the shipment. |
Code Block |
---|
GET /v1/dispatch_orders/:id/printout |
Parameters
Parameter | Type | Description | Validation | Default value |
---|---|---|---|---|
| string | Label format | Available formats: |
|
Example request
Code Block | ||
---|---|---|
| ||
curl -X GET "https://api-shipx-pl.easypack24.net/v1/dispatch_orders/1/printout?format=Pdf" -H "Content-Type: application/json" -H "Authorization: Bearer token" |
Response
Code Block | ||
---|---|---|
| ||
File in a given format |
Warning |
---|
Error Information
|
Printing multiple Dispatch Orders
Info |
---|
To print a dispatch order the user has to be the sender of the shipment. |
Code Block | ||
---|---|---|
| ||
GET /v1/organizations/:organization_id/dispatch_orders/printouts |
Parameters
Parameter | Type | Description | Validation | Default value |
---|---|---|---|---|
| string | Label format | Available formats: |
|
| Integer | Dispatch order IDs | ||
| Array[Integer] | Shipment IDs | Required if no
|
Example request
Code Block | ||
---|---|---|
| ||
curl -X GET "https://api-shipx-pl.easypack24.net/v1/organizations/1/dispatch_orders/printouts?shipment_ids[]=123&shipment_ids[]=124&shipment_ids[]=125&format=Pdf" -H "Authorization: Bearer token" -H "Content-Type: application/json" -o test.zip |
Response
Code Block | ||
---|---|---|
| ||
Zip file in the given format |
Warning |
---|
Error Information
|