You can create order labels needed for order delivery by MPD or DIP transports.
Number of parcels is required for label creation. Response contains base64 representation of PDF/ZPL labels.
You can generate parcel labels when the order is set to status shipping or shipped.
When order is set to shipped you cannot change parcel_count anymore and the last number of labels always applies.
POST
/orders/labels/bulk
curl \
-X POST https://mpapi.proxy.omnicado.com/v1/orders/labels/bulk?client_id=yourClientId&client_id=api_token_value \
-H "Content-Type: application/json" \
-H "X-Application-Name: myApplicationName" \
-d '{"labels_type":"pdf","first_position":1,"labels_per_page":4,"labels":[{"order_id":123456,"parcel_count":4}]}'
Request example
# Headers
X-Application-Name: myApplicationName
# Payload
{
"labels_type": "pdf",
"first_position": 1,
"labels_per_page": 4,
"labels": [
{
"order_id": 123456,
"parcel_count": 4
}
]
}
Request examples
# Headers
X-Application-Name: myApplicationName
# Payload
{
"labels_type": "pdf",
"first_position": 1,
"labels_per_page": 4,
"labels": [
{
"order_id": 123456,
"parcel_count": 4
}
]
}
Response examples (200)
{
"data": {
"orders": [
{
"order_id": 223424231402,
"barcodes": [
"14IS12361223*001004",
"14IS12361223*002004",
"14IS12361223*003004"
]
}
],
"labels_raw": {
"dip": "JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DvUGFnZXMgMyAwIFINCj...MjcxNA0KJSVFT0YNCg==",
"mdp": "JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DvUGFnZXMgMyAwIFINCj...MjcxNA0KJSVFT0YNCg=="
}
},
"result": {
"code": 200,
"status": "OK"
}
}
Response examples (200)
{
"data": {
"orders": [
{
"order_id": 223424231402,
"barcodes": [
"14IS12361223*001004",
"14IS12361223*002004",
"14IS12361223*003004"
]
}
],
"labels_raw": {
"dip": "JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DvUGFnZXMgMyAwIFINCj...MjcxNA0KJSVFT0YNCg==",
"mdp": "JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DvUGFnZXMgMyAwIFINCj...MjcxNA0KJSVFT0YNCg=="
}
},
"result": {
"code": 200,
"status": "OK"
}
}