API documentation
Quotes
The first step of the flow. You describe the shipment once and you get each courier's price for it, together with the identifiers you need in the next steps.
Two routes, different purposes
| Route | Does it save anything? | When you use it |
|---|---|---|
POST /public/awb/quotes | Yes — it creates a quote request on your account | When you intend to create the shipment. Only these quotes can be selected later. |
POST /public/awb/quick-quotes | No | When you only display prices — a shipping calculator in the cart, for example. |
The request body is identical for both. The difference is that quick-quotes requires no authentication and returns no identifiers, so you cannot continue from it towards an AWB.
Creating a quote request
/public/awb/quotesBearer JWT120/minThe body is sent at the top level. Do not wrap it in a createQuoteRequestDto object — the API rejects unknown properties with 400.
{
"sender": {
"name": "Firma Mea SRL",
"isCompany": true,
"companyName": "Firma Mea SRL",
"cui": "RO12345678",
"email": "logistica@firma.ro",
"phoneCountryCode": "+40",
"phoneNSN": "700000000",
"address": {
"country": "RO",
"county": "BUCURESTI",
"city": "BUCURESTI",
"postcode": "010061",
"street": "Calea Victoriei",
"streetNumber": "10"
}
},
"recipient": {
"name": "Ion Popescu",
"phoneCountryCode": "+40",
"phoneNSN": "700000001",
"address": {
"country": "RO",
"county": "CLUJ",
"city": "CLUJ-NAPOCA",
"postcode": "400114",
"street": "Strada Memorandumului",
"streetNumber": "5",
"apartment": "12"
}
},
"content": {
"packages": [
{
"weight": 2.4,
"length": 40,
"width": 30,
"height": 20,
"packageType": "package"
}
]
},
"service": {
"saturdayDelivery": false,
"openOnDelivery": false,
"cod": {
"amount": 250,
"bankAccount": "RO49AAAA1B31007593840000",
"collector": "CLIENT"
},
"insurance": { "amount": 500 }
},
"paymentInfo": { "courierServicePayer": "SENDER" },
"packageDescription": "Carti",
"shipmentNote": "Sunati inainte de livrare",
"externalRef": "API-10023",
"clientReference": "FACT-2026-000123"
}{
"quoteRequest": {
"id": "3f9c1a34-7b2e-4d81-9f05-6c1e8a4b2d70",
"packageDescription": "Carti",
"createdAt": "2026-10-28T09:00:00.000Z",
"updatedAt": "2026-10-28T09:00:00.000Z"
},
"courierQuotes": [
{
"id": "b7e22d90-3c14-4a6f-8e09-1d5b7c2f4a83",
"courierName": "Dpd",
"amount": 18.95,
"currency": "RON",
"deliveryType": "DOOR_TO_DOOR",
"isLockerQuote": false,
"isDisabled": false,
"expiresAt": "2026-10-29T09:00:00.000Z",
"quoteRequestId": "3f9c1a34-7b2e-4d81-9f05-6c1e8a4b2d70",
"createdAt": "2026-10-28T09:00:00.000Z",
"updatedAt": "2026-10-28T09:00:00.000Z",
"standardAmount": 21.05,
"originalAmount": 21.05,
"discountPercent": 10,
"discountApplied": true,
"discountLabel": "Prima comanda"
},
{
"id": "c9f1a7b2-5d83-4e20-bc17-902f6a1d3e45",
"courierName": "GLS",
"amount": 0,
"currency": "RON",
"deliveryType": "DOOR_TO_DOOR",
"isLockerQuote": false,
"isDisabled": true,
"expiresAt": "2026-10-29T09:00:00.000Z",
"quoteRequestId": "3f9c1a34-7b2e-4d81-9f05-6c1e8a4b2d70",
"createdAt": "2026-10-28T09:00:00.000Z",
"updatedAt": "2026-10-28T09:00:00.000Z",
"error": {
"message": "Valoare declarata indisponibila la acest curier"
}
}
]
}Each field, with its type and limits, is described in the data dictionary. In short, you need: a sender, a recipient, at least one parcel, the service block, the transport payer and a description of the contents.
Addresses outside Romania
The sender, the recipient or both can be in another country of the European Union. The countries accepted on each side come from GET /public/location/countries.
address.countryis the 2-letter ISO code (DE,FR); Romania isRO.countyis optional outside Romania (send""if you do not have one), andpostcodeis free text, at most 10 characters.- The phone is also sent as
phoneCountryCode+phoneNSN, with the prefix of the respective country. - Only DPD delivers outside Romania, to the address (no locker). The other couriers come back with a disabled quote and the reason in
error.message. - Prices and insurance are in RON, as for a domestic shipment.
Reading the response
What you keep
quoteRequest.id— you use it in steps 2, 3 and 4.courierQuotes[].idof the chosen quote — you send it in step 2.
The fields of a quote
| Field | Type | Required | Description |
|---|---|---|---|
courierName | string | always | The courier name, as GET /public/couriers also returns it. |
amount | number | always | The price you pay, in RON, with discounts applied. It is 0 on a disabled quote. |
isDisabled | boolean | always | true means this courier cannot carry out the shipment. It cannot be selected. |
error.message | string | when isDisabled | The reason for the refusal, worded so it can be shown to the user. |
error.code | string | optional | Present only when the refusal can be lifted. The only value today is RECIPIENT_FIELDS_REQUIRED, accompanied by error.missingRecipientFields — the fields the courier requires and the recipient does not have (for example ["email"] for delivery to a Sameday locker). |
deliveryType | string | always | DOOR_TO_DOOR, DOOR_TO_LOCKER, LOCKER_TO_DOOR or LOCKER_TO_LOCKER. |
isLockerQuote | boolean | always | The shipment touches a locker at at least one end. |
expiresAt | string | always | The moment after which the quote can no longer be used. Currently, 24 hours from issue. |
standardAmount | number | null | optional | The price at the standard rate, for comparison. Present only when it differs from amount. |
originalAmount | number | null | optional | The price before the promotional discount. Present only when one was applied. |
discountPercent | number | null | optional | The discount percentage, alongside discountApplied and discountLabel. |
openOnDeliveryUnsupported | boolean | null | optional | You asked for open on delivery, but this courier does not carry it through to the recipient. The quote stays valid — only the service is missing. |
Never “the cheapest” without a filter
A disabled quote comes with amount: 0. If you sort ascending without filtering, it wins every time and the next step fails.
// Correct: filter before sorting.
const usable = response.courierQuotes.filter(q => !q.isDisabled);
if (usable.length === 0) {
throw new Error('No courier can carry this parcel');
}
const cheapest = usable.reduce((a, b) => (a.amount <= b.amount ? a : b));
// Wrong: a disabled quote has amount 0 and always wins.
// const cheapest = response.courierQuotes.reduce(
// (a, b) => (a.amount <= b.amount ? a : b)
// );Quote expiry
Quotes are valid for 24 hours. If you try to create the shipment after expiresAt, the call answers with 410 Gone and the message “This quote has expired, please get a new one”. Start again from step 1: the couriers' prices can change in the meantime, so an old quote cannot be extended.
Quick quotes
/public/awb/quick-quotespublic120/minThe same request body, a response without identifiers. Nothing is saved.
{
"courierQuotes": [
{
"courierName": "Dpd",
"slug": "dpd",
"amount": 18.95,
"currency": "RON",
"deliveryType": "DOOR_TO_DOOR",
"isLockerQuote": false
}
]
}The response additionally carries slug, useful if you display courier logos. It carries no id, because there is nothing to select.
Shipments with lockers
For handover or delivery to a locker, send in the request the pair originLockerId + originCourierId, and destinationLockerId + destinationCourierId, respectively. The identifiers are taken from the pickup point routes.
Need help?
If a courier shows up as disabled and you do not understand why, send us the request body and the error field of that quote.
Contact us