Meta API Live shipment call and response
Last reviewed: June 2026
Reviewed and validated by the DPD Customer IT team.
Meta API Live shipment call and response
The shipment service is used to generate parcel labels. A request to the shipment service will only succeed after a call to the login service to get a unique token to access the shipment service. The token will be valid 24 hours. Please store it for that time.
For other services and products, choose the corresponding topic in the navigation to the right.
When a ShipmentService request is successful, the system will respond with a Base64 string that can be decoded into a PDF with a label as well as the corresponding 14 digit parcel number.
Please take note that once a live label is created, it needs to be used and the corresponding parcel needs to be given to DPD within the next 48 hours
The example below is a basic call, but you can find all possible parameters and fields in detail on the Swagger page.
Method:
- POST
URL:
Parameters:
- LabelPrintFormat PDF / ZPL
- LabelPaperFormat A6 / A4
- LabelPrinterStartPosition LOWER_LEFT / UPPER_LEFT / LOWER_RIGHT / UPPER_RIGHT
- debug true
Authorization:
- X_DPD_TOKEN Bearer Token from login service (326-digits)
Body:
- Object JSON (raw)
[
{
"shipmentInfos":
{
"productCode": "101"
},
"numberOfParcels": "1",
"sender":
{
"address":
{
"name1": "Sender name 1",
"name2": " Sender name 2",
"country": "BE",
"zipCode": "2800",
"city": "Mechelen",
"street": "Egide Walschaertstraat 20"
}
},
"receiver":
{
"address":
{
"name1": "DPD Hub",
"country": "BE",
"zipCode": "1800",
"city": "Vilvoorde",
"street": "Tyraslaan"
},
"contact":
{
"contactPerson": "Mrs Mdm",
"email": "contact@dpd.be"
},
"comment": "TEST for META API"
},
"parcel":
[
{
"parcelInfos":
{
"weight": "5000"
}
}
]
}
]
Body:
- shipmentID MPSID
- parcelId Labelnumbers
- label – base64Data string converting to PDF or ZPL
Body:
- Object JSON (raw)
[
{
"shipmentInfos":
{
"productCode": "332"
},
"numberOfParcels": "1",
"sender":
{
"address":
{
"name1": "Sender name 1",
"name2": " Sender name 2",
"country": "BE",
"zipCode": "2800",
"city": "Mechelen",
"street": "Egide Walschaertstraat 20"
}
},
"receiver":
{
"address":
{
"name1": "DPD Hub",
"country": "BE",
"zipCode": "1800",
"city": "Vilvoorde",
"street": "Tyraslaan"
},
"contact":
{
"contactPerson": "Mrs Mdm",
"email": "contact@dpd.be"
},
"comment": "TEST for META API"
},
"parcel":
[
{
"parcelInfos":
{
"weight": "5000"
}
}
]
}
]
Body:
- shipmentID MPSID
- parcelId Labelnumbers
- label – base64Data string converting to PDF or ZPL
B2C Home implies the use of a Predict message. This message will notify the receiver that a parcel is underway. You will have to add a messages segment to your call, as shown below.
The messages segment has 3 possible fields:
Body:
- Object JSON (raw)
[
{
"shipmentInfos": {
"productCode": "327"
},
"numberOfParcels": "1",
"sender": {
"address": {
"name1": "Sender name 1",
"name2": "Sender name 2",
"country": "BE",
"zipCode": "2800",
"city": "Mechelen",
"street": "Egide Walschaertstraat 20"
}
},
"receiver": {
"address": {
"name1": "DPD Hub",
"country": "BE",
"zipCode": "1800",
"city": "Vilvoorde",
"street": "Tyraslaan"
},
"contact": {
"contactPerson": "Mrs X",
"email": "test@dpdgroup.com"
},
"comment": "RMP TEST for META API"
},
"parcel": [
{
"parcelInfos": {
"weight": "6000"
},
"messages": [
{
"messageType": "EMAIL",
"messageDestination": "test@dpdgroup.com"
}
],
"senderParcelRefs": [
"P_2022-02-09_04"
]
}
]
}
]
Body:
- shipmentID MPSID
- parcelId Labelnumbers
- label – base64Data string converting to PDF or ZPL
Please note that B2C Shop also needs a messages segment.
Body:
- Object JSON (raw)
[
{
"customerReferenceNumbers": [
"S_2022-02-09_09"
],
"shipmentInfos": {
"productCode": "337"
},
"sender": {
"address": {
"name1": "DPD BE SENDER",
"street": "Egide Walschaertsstraat 20",
"country": "BE",
"zipCode": "2800",
"city": "Mechelen"
}
},
"receiver": {
"pudoId": "BE10002",
"address": {
"name1": "DPD BE RECEIVER",
"street": "Rue de Liege 25",
"country": "BE",
"zipCode": "6180",
"city": "Courcelles"
},
"contact": {
"phone1": "0123456789",
"email": "test@dpdgroup.com",
"contactPerson":"DPD Contact"
}
},
"numberOfParcels": "1",
"parcel": [
{
"parcelInfos": {
"weight": "6000"
},
"messages": [{
"messageType": "SMS",
"messageDestination": "0123456789"
}],
"senderParcelRefs": [
"P_2022-02-09_09"
]
}
]
}
]
Body:
- shipmentID MPSID
- parcelId Labelnumbers
- label – base64Data string converting to PDF or ZPL
By changing the product code and adding the mandatory fields to a standard B2B call, the request changes accordingly.
Please note that for Express 10, 12 and 18, contact details (name and email) become mandatory for the recipient. You can find a full example below.
Body:
[
{
"customerReferenceNumbers":
[
"S_2022-04-29_01"
],
"shipmentInfos":
{
"productCode": "101"
},
"sender":
{
"address":
{
"name1": "DPD BE SENDER",
"street": "Egide Walschaertsstraat 20",
"country": "BE",
"zipCode": "2800",
"city": "Mechelen"
},
"contact":
{
"phone1": "0123456789",
"email": "test@dpdgroup.com",
"contactPerson": "DPD Contact"
}
},
"receiver":
{
"address":
{
"name1": "DPD BE RECEIVER",
"street": "Rue de Liege 25",
"country": "BE",
"zipCode": "6180",
"city": "Courcelles"
},
"contact":
{
"phone1": "0123456789",
"email": "test@dpdgroup.com",
"contactPerson": "DPD Contact"
}
},
"numberOfParcels": "1",
"parcel":
[
{
"parcelInfos":
{
"weight": "2000"
},
"senderParcelRefs":
[
"P_2022-04-29_01"
],
"messages": [
{
"messageType": "EMAIL",
"messageDestination": "test@dpdgroup.com"
}
]
}
]
}
]
Home » Knowledgebase » Meta API » Shipment Service
| Cookie | Duration | Description |
|---|---|---|
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |