Create and print shipment lists.
Go to:
- Create a shipment list
- Fetch a shipment list
- Fetch shipment list documents
- Fetch a filtered shipment list
- Fetch previously printed shipment list
- Create a shipment list copy
/Shipment-manifests
Shipment-manifests is how you create and print shipment lists (also known as "Manifests", "End of day manifests", "Shipment manifests", etc.) as PDF files provided as a URL or a Base64 encoded file. The resource also has methods and endpoints for creating copies of previously printed shipment lists.
The REST API endpoints are only accessible via HTTPS and are located at api.unifaun.com.
https://api.unifaun.com/rs-extapi/v1
Before getting started you need to know your developer ID and create an API key.
Create a shipment list
POST /shipment-manifests/{manifestType}/manifests
Creates and prints a shipment list with available shipments for a certain manifest type.
Returns the shipment list and the associated ID.
By default, the documents are returned as a URL. As an option, the documents can be inline in the print.data object in the result. The print.data object is encoded in base64.
The generated documents will only be available for one (1) hour.
URI parameters
Parameter | Type | Description | Category |
manifestType |
string |
Carrier's shipment list type Valid values:
|
Required |
Query parameters
Parameter | Type | Description | Category |
returnFile |
boolean |
'true' if the files should be returned inline. |
Optional |
Fetch a shipment list
GET /shipment-manifests/{manifestType}/manifests/{manifestId}/prints/{printId}
Fetches a shipment list based on manifest ID, manifest type and print ID.
URI parameters
Parameter | Type | Description | Category |
manifestId |
string |
Identifies the shipment list |
Required |
manifestType |
string |
Carrier's shipment list type Valid values:
|
Required |
printId |
string |
Identifies the document. |
Required |
Response example
A PDF file
Fetch shipment list documents
GET/shipment-manifests/{manifestType}/manifests/{manifestId}/prints
Fetches all shipment list documents based on manifest type and manifest ID.
URI parameters
Parameter | Type | Description | Category |
manifestId |
string |
Identifies the shipment list |
Required |
manifestType |
string |
Carrier's shipment list type Valid values:
|
Required |
Query parameters
Parameter |
Type |
Description |
Category |
returnFile |
boolean |
'true' if the files should be returned inline. |
Optional |
Response example:
[ { "href": "http://localhost:8080/rs-extapi/v1/shipment-manifests/SBTL/manifests/11888/prints/11692820", "id": "11692820", "description": "Doc", "pdf": "JVBERi0xLjQKJeLjz9MKMyAwIG9iaiA8PC9GaWx0ZXIvRmxhd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wMDAgbiAKMDAwMDAwMDAxNSAwMD
AwMCBuIAowMDAwMDAxMzExIDAwMDAwIG4gCjAwMDAwMDA5NjEgMDAwMDAgbiAKMDAwMDAwMTM2MSAwMDAwM
CBuIAowMDAwMDAxNDA1IDAwMDAwIG4gCnRyYWlsZXIKPDwvSW5mbyA3IDAgUi9JRCBbPGM4OTA3ZjAzMTYx
OWJlZWJiZDA3YWVkN2UzOTY1ZTFjPjw5ZGIxYWQyMzZhNWI5NTU4ZTFjOTgzZjk5ZWQwMjc3ND5dL1Jvb3Q
gNiAwIFIvU2l6ZSA4Pj4Kc3RhcnR4cmVmCjE1MzYKJSVFT0YK", "media": "laser-a4" } ]
Fetch a filtered shipment list
GET/shipment-manifests/{manifestType}/shipments
Fetches a filtered shipment list using different filtering criteria.
URI parameters
Parameter |
Type |
Description |
Category |
manifestType |
string |
Carrier's shipment list type Valid values:
|
Required |
Query parameters
Parameter |
Type |
Description |
Category |
dateFrom |
string |
The lower limit of a date interval, referring to "Printed date" ISO-8601 date format, for example, 2020-01-01T01:00:00+00:00 |
Optional Must be used together with dateTo. |
dateTo |
string |
The upper limit of a date interval, referring to "Printed date" |
Optional Must be used together with dateFrom. |
page |
number |
Result pages containing max. 50 shipments |
Required Provides a way to page through the complete result. Starts at zero and increments upwards. |
receiverId |
string |
Unique receiver identification |
Optional |
route |
string |
Shipment route |
Optional |
senderID |
string |
Unique sender identification |
Optional |
services |
string |
Services to be included For service codes, see > > Services in nShift Delivery. |
Optional Service codes are separated using a comma (,). |
status |
string |
Shipment status Valid values: "new" (default)|"all" |
Optional |
Response example
{
"page": 0,
"totalPages": 1,
"totalCount": 2,
"manifestShipmentsInfoData": [
{
"id": 5322890,
"sndName": "Unifaun AB",
"sndZipcode": "11359",
"sndCity": "STOCHOLM",
"sndCountry": "SE",
"sndQuickId": "1",
"rcvName": "Unifaun AB",
"rcvZipcode": "11359",
"rcvCity": "STOCKHOLM",
"rcvCountry": "SE",
"rcvQuickId": "1",
"serviceId": "BCF",
"orderNo": "Order number",
"reference": "A reference",
"route": "",
"status": "PRINTED",
"shipDate": "2022-01-04T13:20:40.000+0000",
"printDate": "2022-01-04T13:20:40.971+0000"
},
{
"id": 5322926,
"sndName": "Unifaun AB",
"sndZipcode": "11359",
"sndCity": "STOCHOLM",
"sndCountry": "SE",
"sndQuickId": "1",
"rcvName": "Unifaun AB",
"rcvZipcode": "11359",
"rcvCity": "STOCKHOLM",
"rcvCountry": "SE",
"rcvQuickId": "1",
"serviceId": "BCF",
"orderNo": "Order number",
"reference": "A reference",
"route": "",
"status": "PRINTED",
"shipDate": "2022-01-04T13:45:14.000+0000",
"printDate": "2022-01-04T13:45:14.703+0000"
}
]
}
Fetch a previously printed shipment list
GET/shipment-manifests/{manifestId}/prints
Fetches previously printed shipment list documents based on manifest ID.
URI parameters
Parameter | Type | Description | Category |
manifestId |
string |
Identifies the shipment list |
Required |
Query parameters
Parameter | Type | Description | Category |
returnFile |
boolean |
'true' if the file should be returned inline. |
Optional |
Response example
Create a shipment list copy
POST/shipment-manifests/{manifestId}/prints
Creates and prints a copy of a previously printed shipment list.
By default, the documents are returned as a URL. As an option, the documents can be inline in the print.data object in the result. The print.data object is encoded in base64. The generated documents will only be available for one (1) hour.
URI parameters
Parameter | Type | Description | Category |
manifestId |
string |
Identifies the shipment list |
Required |
Query parameters
Parameter | Type | Description | Category |
returnFile |
boolean |
'true' if the file should be returned inline. |
Optional |
Body example
{
"target1Media":"laser-a4"
}
For schema and testing, please refer to https://api.unifaun.com/rs-docs/.
For a description of properties, please see the Property reference guide.
For information about some crucial objects, please refer to REST API Objects.