Download OpenAPI specification:Download
API endpoints for eCourier. Use the generated bearer token to access the API.
Create multiple shipments. Returns success or error details for each shipment.
required | Array of objects (ShipmentRequest) Shipments data |
object Pickup and AWB options |
{- "shipments": [
- {
- "courier": "dpd",
- "content": "clothing",
- "comments": "string",
- "items_type": "envelope",
- "sender": {
- "country": "Romania",
- "city": "Bucuresti",
- "name": "Rares Ion",
- "contact_person": "Rares",
- "phone": "0720111222",
- "phone_2": "0722333444",
- "email": "user@example.com",
- "postal_code": "070000",
- "street_type": "Street",
- "street_name": "Foisorului",
- "street_no": "4",
- "building": "1A",
- "building_entrance": "2",
- "floor": "1",
- "room": "44",
- "address_note": "Strada Fosiorului nr. 4, bloc 1A. scara 2, etaj 1, apt. 44"
}, - "recipient": {
- "country": "Romania",
- "city": "Bucuresti",
- "name": "Rares Ion",
- "contact_person": "Rares",
- "phone": "0720111222",
- "phone_2": "0722333444",
- "email": "user@example.com",
- "postal_code": "070000",
- "street_type": "Street",
- "street_name": "Foisorului",
- "street_no": "4",
- "building": "1A",
- "building_entrance": "2",
- "floor": "1",
- "room": "44",
- "address_note": "Strada Fosiorului nr. 4, bloc 1A. scara 2, etaj 1, apt. 44"
}, - "items": [
- {
- "dimension": "A5",
- "weight": "4",
- "height": "10",
- "depth": "12",
- "width": "30"
}
], - "options": [
- {
- "type": "repayment",
- "details": "159.99"
}
]
}
], - "options": {
- "auto_pickup": "false",
- "pickup_date_time": "2024-10-04T16:30:00+0300",
- "pickup_end_time": "18:00",
- "single_pdf": "true"
}
}
{- "success": true,
- "code": 200,
- "message": "Shipments created successfully.",
- "data": [
- {
- "tracking_code": "01BALTG1728072302",
- "courier_code": "80944048516",
- "courier": "dpd",
- "content": "clothing",
- "items_type": "parcel",
- "items_count": 2,
- "price": {
- "amount": "19.68",
- "vat": "3.74",
- "total": "23.42",
- "currency": "RON"
}
}
], - "meta": {
- "count": 1,
- "failed_count": 0
}, - "failed": [
- {
- "shipment": {
- "courier": "dpd",
- "content": "clothing",
- "comments": "string",
- "items_type": "envelope",
- "sender": {
- "country": "Romania",
- "city": "Bucuresti",
- "name": "Rares Ion",
- "contact_person": "Rares",
- "phone": "0720111222",
- "phone_2": "0722333444",
- "email": "user@example.com",
- "postal_code": "070000",
- "street_type": "Street",
- "street_name": "Foisorului",
- "street_no": "4",
- "building": "1A",
- "building_entrance": "2",
- "floor": "1",
- "room": "44",
- "address_note": "Strada Fosiorului nr. 4, bloc 1A, scara 2, etaj 1, apt. 44"
}, - "recipient": {
- "country": "Romania",
- "city": "Bucuresti",
- "name": "Rares Ion",
- "contact_person": "Rares",
- "phone": "0720111222",
- "phone_2": "0722333444",
- "email": "user@example.com",
- "postal_code": "070000",
- "street_type": "Street",
- "street_name": "Foisorului",
- "street_no": "4",
- "building": "1A",
- "building_entrance": "2",
- "floor": "1",
- "room": "44",
- "address_note": "Strada Fosiorului nr. 4, bloc 1A, scara 2, etaj 1, apt. 44"
}, - "items": [
- {
- "dimension": "A5",
- "weight": 4,
- "height": 10,
- "depth": 12,
- "width": 30
}
]
}, - "error": "Recipient city is invalid"
}
]
}
Retrieve and print the AWB for a shipment using the tracking code. Returns base64 encoded PDF content
tracking_code required | string Example: 01BALTG1728072302 Tracking code of the shipment to print |
{- "success": true,
- "code": 200,
- "message": "Shipment printed successfully.",
- "data": {
- "tracking_code": "01BALTG1728072302",
- "pdf_content": "application/pdf"
}
}
Cancel an existing shipment using the tracking code. Returns the tracking code of the cancelled shipment
tracking_code required | string Example: 01BALTG1728072302 The tracking code of the shipment to cancel |
{- "success": true,
- "code": 200,
- "message": "Shipment cancelled successfully.",
- "data": {
- "tracking_code": "01BALTG1728072302"
}
}
Retrieve the status of a shipment using the tracking code.
tracking_code required | string Example: 01BALTG1728072302 The tracking code of the shipment to track |
{- "success": true,
- "code": 200,
- "message": "Shipment found.",
- "data": {
- "tracking_code": "01BALTG1728072302",
- "courier_code": "80944048516",
- "courier": "dpd",
- "tracking": [
- {
- "status_id": 8,
- "status_name": "Delivered",
- "status_name_ro": "Livrare efectuată",
- "courier_status_id": -14,
- "courier_status_name": "Delivered",
- "courier_status_name_ro": "Expedierea ta a fost livrată cu success.",
- "comment": "Package left at the reception.",
- "subStatuses": [
- {
- "sub_status_name_id": 123,
- "sub_status_name": "At the sorting center",
- "sub_status_name_ro": "La centrul de sortare"
}
], - "status_at": "2024-09-21T12:45:00Z",
- "status_at_ro": "21.09.2024 12:45"
}
]
}
}