curl --request POST \
--url 'https://app.smartsend.io/api/v1/website/{team}/shipments/labels/combine?api_token=' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shipments": [
{
"shipment_id": "c5540f2b-3eea-45c4-957a-9d7b53f899e7"
}
]
}
'{
"data": {
"type": "combined_label",
"shipments": [
{
"shipment_id": "c5540f2b-3eea-45c4-957a-9d7b53f899e7",
"shipment_internal_id": "870006543",
"shipment_internal_reference": "123",
"carrier_code": "postnord",
"carrier_name": "PostNord",
"parcels": [
{
"parcel_id": "c5540f2b-3eea-45c4-957a-9d7b53f899e7",
"parcel_internal_id": "88654389",
"parcel_internal_reference": "223",
"carrier_code": "postnord",
"carrier_name": "PostNord",
"tracking_code": "DK123456789",
"tracking_link": "https://smartsend.io/tracking/DK123456789"
}
]
}
],
"pdf": {
"link": "https://example.com/labels/DK123456789.pdf",
"base_64_encoded": "<base64-encoded-pdf-here>"
}
}
}This endpoint is used to combine labels for multiple shipments into one PDF file
curl --request POST \
--url 'https://app.smartsend.io/api/v1/website/{team}/shipments/labels/combine?api_token=' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shipments": [
{
"shipment_id": "c5540f2b-3eea-45c4-957a-9d7b53f899e7"
}
]
}
'{
"data": {
"type": "combined_label",
"shipments": [
{
"shipment_id": "c5540f2b-3eea-45c4-957a-9d7b53f899e7",
"shipment_internal_id": "870006543",
"shipment_internal_reference": "123",
"carrier_code": "postnord",
"carrier_name": "PostNord",
"parcels": [
{
"parcel_id": "c5540f2b-3eea-45c4-957a-9d7b53f899e7",
"parcel_internal_id": "88654389",
"parcel_internal_reference": "223",
"carrier_code": "postnord",
"carrier_name": "PostNord",
"tracking_code": "DK123456789",
"tracking_link": "https://smartsend.io/tracking/DK123456789"
}
]
}
],
"pdf": {
"link": "https://example.com/labels/DK123456789.pdf",
"base_64_encoded": "<base64-encoded-pdf-here>"
}
}
}Provide API Token as Bearer authentication
Query API Token
The domain of the website making the agent lookup request
Input data format
Successful operation
Combined Label Resource
Show child attributes
Description of the resource type
"combined_label"
List of shipments
Show child attributes
Unique ID
"c5540f2b-3eea-45c4-957a-9d7b53f899e7"
The database id used by the website for the resource
"870006543"
The id that is used to reference the resource externally
"123"
The carrier code
"postnord"
The carrier name
"PostNord"
List of parcels
Show child attributes
Unique ID
"c5540f2b-3eea-45c4-957a-9d7b53f899e7"
The database id used by the website for the resource
"88654389"
The id that is used to reference the resource externally
"223"
The carrier code
"postnord"
The carrier name
"PostNord"
The parcels tracking code as generated by the carrier
"DK123456789"
The parcels tracking link
"https://smartsend.io/tracking/DK123456789"
Was this page helpful?