POST/quotes
Quote: validate + price services + the four checks (address, service, price, pickup) + the label address
- Key scope
quotes:write- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/quotes
Request body
Unknown fields are rejected (400 VALIDATION_FAILED, details[].path names the field).
application/json — QuoteRequest
shipperobjectrequiredcontactobjectnamestringrequiredlength 1–100companystringlength ≤ 100phonestringrequiredlength 1–20emailstring (email)length ≤ 255addressobjectrequiredline1stringrequiredlength 1–100line2stringlength ≤ 100citystringrequiredlength 1–100stateCodestringlength ≤ 20postalCodestringlength ≤ 20countryCodestringrequiredlength 2–2residentialbooleanrecipientobjectrequiredcontactobjectSame shape as
shipper.contactabove.addressobjectrequiredSame shape as
shipper.addressabove.packages[]array of objectrequireditems ≥ 1items ≤ 100weightnumberrequired> 0≤ 1000weightUnitstringdefault KGone of: KG · LB
lengthnumber> 0≤ 1000widthnumber> 0≤ 1000heightnumber> 0≤ 1000dimUnitstringone of: CM · IN
declaredValueobjectamountnumberrequired≥ 0currencystringrequiredlength 3–3contentValueobjectamountnumberrequired≥ 0≤ 100000000currencystringrequiredlength 3–3specialGoodsobjectSpecial goods in this box, declared from the items packed in it (the seller classifies each item by its manufacturer's documents: the safety data sheet; for a battery, its UN 38.3 test summary and its marking). Absent: ordinary goods. Nothing is allowed by default: a declared category the account may not ship — an allowable one IDS did not allow, or any other dangerous goods (all except a lithium battery in or with its device) — answers 422 PRICING_UNAVAILABLE with details.reason SPECIAL_GOODS_NOT_ALLOWED or DANGEROUS_GOODS_NOT_SUPPORTED and the refused boxes. Categories: GET /metadata specialGoods; a platform's allowed ones: GET /platform specialGoodsAllowed.
batteryobjectA battery in the box. Category lithium_<type>_<installation> or non_lithium_battery (installation is not considered for non_lithium). Lithium batteries in or with equipment are dangerous goods carried, within the carrier's limits, under a reduced regime: IDS books them, and non_lithium, only for an account it allowed the category (GET /platform specialGoodsAllowed for a platform) — a lithium one is then declared to the carrier with the quote and the booking. Lithium batteries alone are refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).
typestringrequiredone of: lithium_ion · lithium_metal · non_lithium
lithium_ion: lithium-ion or lithium-polymer cells (rechargeable LIR coin cells included); lithium_metal: lithium-metal or lithium-alloy cells, mostly non-rechargeable (CR coin cells included); non_lithium: a dry alkaline, zinc-carbon, NiMH or NiCd battery. Lead-acid (spillable or not), sodium-ion and other wet batteries are dangerous goods: declare their unNumber (refused).
installationstringrequiredone of: in_equipment · with_equipment · alone
in_equipment: installed in the device; with_equipment: packed in the same box as the device it powers; alone: batteries without the device. A power bank is always alone, even in the same box as a device.
liquidbooleantrue: the box holds a liquid that is not dangerous goods (its safety data sheet names no UN number). Category liquid — booked only for an account IDS allowed it; nothing is sent to the carrier. A flammable or otherwise dangerous liquid is not a liquid here: declare it by hazardClass or unNumber (refused).
aerosolbooleantrue: the box holds an aerosol (spray can). Dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).
perfumebooleantrue: the box holds perfume, eau de toilette or another fragrance. IDS treats them as dangerous goods (most are flammable liquids, UN 1266) — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).
hazardClassstringpattern ^[1-9](\.[1-6])?$The UN hazard class the item's documents name (3, 2.1, 8, …). Any value makes the box dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED). A lithium battery in or with its device is declared by battery, not here.
unNumberstringpattern ^UN\d{4}$The UN number the item's documents name (UN1266, UN1993, …). Any value makes the box dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED). A lithium battery in or with its device is declared by battery, not here.
serviceobjecttypestringlength ≤ 60packagingstringlength ≤ 60signaturestringone of: SERVICE_DEFAULT · DIRECT · ADULT
coveragestringone of: none · auto
include[]array of stringitems ≤ 2pickupobjectdatestringrequiredpattern ^\d{4}-\d{2}-\d{2}$localestringlength ≤ 35testScenariostringone of: route_not_served · address_invalid · address_unknown · pickup_unavailable · residential_pickup_unavailable · slow · carrier_error · carrier_error_retryable
Test keys on the simulated carrier only: what the carrier answers this quote (GET /metadata testScenarios.quote). A live key, or a test key IDS switched to the FedEx sandbox: 400.
buyerobjectINV: a platform whose deliveries IDS invoices to the buyer (GET /platform invoiceRecipient delivery_customer) — the kind of buyer it will book for (the delivery customer of the booking). The VAT of the price follows the VAT treatment IDS applies to that buyer and route; absent — a private person. Ignored for every other account.
typestringrequiredone of: person · company
person: a private buyer; company: a buyer that is a company.
countryCodestringrequiredpattern ^[A-Za-z]{2}$The buyer's country (its invoice address).
vatNumberstringlength 2–30pattern ^[A-Za-z0-9 .\-/]+$company only: its VAT code (e.g. DE123456789) when it has one.
{
"shipper": {
"contact": {
"name": "Acme Store",
"phone": "+40700000000",
"email": "[email protected]"
},
"address": {
"line1": "Calea Victoriei 1",
"city": "București",
"postalCode": "010061",
"countryCode": "RO"
}
},
"recipient": {
"contact": {
"name": "Ana Popescu",
"phone": "0740 000 000"
},
"address": {
"line1": "Strada Republicii 12",
"city": "Brașov",
"postalCode": "500030",
"countryCode": "RO",
"residential": true
}
},
"packages": [
{
"weight": 2,
"weightUnit": "KG",
"length": 20,
"width": 15,
"height": 10,
"dimUnit": "CM",
"contentValue": {
"amount": 450,
"currency": "RON"
}
}
],
"coverage": "auto",
"include": [
"addressValidation",
"pickupOptions"
],
"locale": "ro"
}Call it
curl -s -X POST "https://ids.express/api/v1/quotes" \
-H "Authorization: Bearer $IDS_KEY" \
-H "Content-Type: application/json" \
-d '{
"shipper": {
"contact": {
"name": "Acme Store",
"phone": "+40700000000",
"email": "[email protected]"
},
"address": {
"line1": "Calea Victoriei 1",
"city": "București",
"postalCode": "010061",
"countryCode": "RO"
}
},
"recipient": {
"contact": {
"name": "Ana Popescu",
"phone": "0740 000 000"
},
"address": {
"line1": "Strada Republicii 12",
"city": "Brașov",
"postalCode": "500030",
"countryCode": "RO",
"residential": true
}
},
"packages": [
{
"weight": 2,
"weightUnit": "KG",
"length": 20,
"width": 15,
"height": 10,
"dimUnit": "CM",
"contentValue": {
"amount": 450,
"currency": "RON"
}
}
],
"coverage": "auto",
"include": [
"addressValidation",
"pickupOptions"
],
"locale": "ro"
}'Answers
200 The stored quote: an opaque single-use quoteId, the fixed price of each service, coverage, duties, weights, the plan, the checks and the label address (default validity 30 minutes)
Headers: X-Request-Id
application/json — Quote
quoteIdstringrequiredpattern ^qt_[0-9a-f]{32}$Opaque and single use: nothing about the request is in it.
expiresAtstring (date-time)requiredenvironmentstringrequiredone of: sandbox · production
shipmentDirectionstringrequiredone of: DOMESTIC · EU · INTERNATIONAL
currencystringrequiredThe payer's balance currency — the booking charges in it.
shipmentCountintegerrequired≥ 1coverageobjectrequiredmodestringrequiredone of: none · auto
maxDeclaredValueobjectrequiredThe most one box may be declared at (IDR's conditions of postal services: 5000 RON).
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullabledutiesobjectrequiredТЗ F12: never included in the price; on a route with an import they may be charged at destination to the recipient.
appliesbooleanrequiredpayerstringrequirednullableone of: recipient · null
includedInPricebooleanrequiredone of: false
notestringrequirednullablepackages[]array of objectrequiredpackageNumberintegerrequiredcontentValueobjectrequirednullableMoney: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablecustomsValueobjectrequirednullableSame shape as
packages[].contentValueabove.Set by the booking's customs.commodities; a quote has none.
declaredValueobjectrequirednullableSame shape as
packages[].contentValueabove.The value declared for carriage — IDR's liability limit for the box, not an insurance contract.
specialGoods[]array of stringrequiredservices[]array of objectrequiredserviceTypestringrequiredserviceNamestringrequirednullableIDS name, no carrier brand (ТЗ I3).
carrierCodestringrequiredserviceCodestringrequireddeliveryTypestringrequiredone of: door
deliveryDatestringrequirednullableThe carrier's local date and time of delivery (no offset), e.g. 2026-11-03T18:00:00.
deliveryDayOfWeekstringrequirednullabletransitDaysstringrequirednullabletransitBusinessDaysobjectrequirednullableminintegerrequiredmaxintegerrequiredestimatedPriceobjectrequiredThe FIXED price (API2): while the quote is valid, a booking from it with this service charges exactly total (amountMinor), whatever the carrier charges IDS at the booking. indicative is false.
netnumberrequiredvatnumberrequiredtotalnumberrequiredcurrencystringrequirednetMinorintegerrequiredThe amount beside it in minor units (cents).
vatMinorintegerrequiredThe amount beside it in minor units (cents).
totalMinorintegerrequiredThe amount beside it in minor units (cents).
indicativebooleanrequiredamountMinorintegerrequiredThe amount beside it in minor units (cents).
coverageobjectrequirednullableWhat the declared value for carriage adds to the price (already inside estimatedPrice); null without a declared value.
priceobjectrequirednet + vat = total exactly, in whole cents.
netnumberrequiredvatnumberrequiredtotalnumberrequiredcurrencystringrequirednetMinorintegerrequiredThe amount beside it in minor units (cents).
vatMinorintegerrequiredThe amount beside it in minor units (cents).
totalMinorintegerrequiredThe amount beside it in minor units (cents).
weightobjectrequirednullableТЗ B6 — the weights, never a rate: actual (Σ boxes), volumetric (IDS from your own dimensions with the divisor, each box to 0.1; null without dimensions), billable (what the carrier priced — it counts whole sides, so billable may be higher than volumetric for fractional sides; null when it did not say), basis, the volumetric divisor in cm³/kg derived from the carrier.
unitstringrequiredone of: KG · LB
actualnumberrequiredvolumetricnumberrequirednullablebillablenumberrequirednullablebasisstringrequirednullableone of: actual · volumetric · other · null
volumetricDivisorobjectrequirednullablevaluenumberrequiredunitstringrequiredone of: cm3/kg
shipments[]array of objectrequiredThe plan (ТЗ I11): one entry per shipment the boxes go in, with its own price; a single shipment unless shipmentCount > 1.
packageNumbers[]array of integerrequiredestimatedPriceobjectrequirednetnumberrequiredvatnumberrequiredtotalnumberrequiredcurrencystringrequirednetMinorintegerrequiredThe amount beside it in minor units (cents).
vatMinorintegerrequiredThe amount beside it in minor units (cents).
totalMinorintegerrequiredThe amount beside it in minor units (cents).
amountMinorintegerrequiredThe amount beside it in minor units (cents).
coverageobjectrequirednullableWhat the declared value for carriage adds to the price (already inside estimatedPrice); null without a declared value.
priceobjectrequiredSame shape as
services[].coverage.priceabove.net + vat = total exactly, in whole cents.
weightobjectrequirednullableSame shape as
services[].weightabove.ТЗ B6 — the weights, never a rate: actual (Σ boxes), volumetric (IDS from your own dimensions with the divisor, each box to 0.1; null without dimensions), billable (what the carrier priced — it counts whole sides, so billable may be higher than volumetric for fractional sides; null when it did not say), basis, the volumetric divisor in cm³/kg derived from the carrier.
unavailableServices[]array of objectrequiredserviceTypestringrequiredserviceCodestringrequiredcarrierCodestringrequiredreasonstringrequiredone of: NOT_AVAILABLE_FOR_EVERY_SHIPMENT
labelAddressesobjectrequiredCTR (ТЗ B9): the shipper and the recipient as the label will print them.
shipperobjectrequiredA party as the carrier's label prints it: Latin letters only (Cyrillic, Greek transliterated by named systems, diacritics dropped), the phone with +, the postal code in the country's form, the lengths the label prints (35 characters per line, at most 3 street lines). The original you sent is kept by IDS.
contactobjectrequirednullablenull: no contact was sent with the quote, or an unused quote expired and its contacts were removed.
namestringrequiredcompanystringrequirednullablephonestringrequiredemailstringrequirednullableaddressobjectrequiredstreetLines[]array of stringrequireditems ≥ 1items ≤ 3citystringrequiredstateCodestringrequirednullablepostalCodestringrequirednullablecountryCodestringrequiredlength 2–2residentialbooleanrequirednullablerecipientobjectrequiredA party as the carrier's label prints it: Latin letters only (Cyrillic, Greek transliterated by named systems, diacritics dropped), the phone with +, the postal code in the country's form, the lengths the label prints (35 characters per line, at most 3 street lines). The original you sent is kept by IDS.
contactobjectrequirednullableSame shape as
labelAddresses.shipper.contactabove.null: no contact was sent with the quote, or an unused quote expired and its contacts were removed.
addressobjectrequiredSame shape as
labelAddresses.shipper.addressabove.returnOfobjectRET: only a return quote (POST /shipments/{id}/return-quotes).
shipmentIdstring (uuid)requiredThe original shipment.
masterTrackingNumberstringrequirednullablereasonstringrequiredone of: withdrawal · defect · damaged · not_delivered · other
reasonNotestringrequirednullablereturnToobjectrequiredHow the return address was chosen: your address or place, the return place of the original's pickup place, that place, or the original's shipper.
sourcestringrequiredone of: request_address · request_place · original_return_place · original_place · original_shipper
placeExternalIdstringrequirednullablepickupobjectrequiredstatusstringrequiredone of: available · unavailable · unknown
reasonstringrequirednullableone of: RESIDENTIAL_PICKUP_UNAVAILABLE · PICKUP_NOT_AVAILABLE · PICKUP_ADDRESS_REFUSED · CARRIER_DID_NOT_ANSWER · null
customsLinesintegerrequired≥ 0Across a border: how many customs lines its booking sends (0: documents, or one country).
checksobjectrequiredТЗ B10: four separate checks — one passing never stands in for another; a timeout is «unknown», never «not served».
addressobjectrequiredshipperobjectrequiredvalid: the carrier confirmed it; corrected: it confirmed it in another spelling (suggested); invalid: it could not be found as written; unknown: the carrier could not confirm or deny it (country without street data, no answer, a timeout) — never a refusal of the route; not_checked: not requested (include: ["addressValidation"]).
statusstringrequiredone of: valid · corrected · invalid · unknown · not_checked
reasons[]array of stringrequiredclassificationstringrequirednullableone of: BUSINESS · RESIDENTIAL · MIXED · UNKNOWN · null
suggestedobjectrequirednullableThe carrier's spelling of the address (corrected / valid).
streetLines[]array of stringrequiredcitystringrequirednullablestateOrProvinceCodestringrequirednullablepostalCodestringrequirednullablecountryCodestringrequiredrecipientobjectrequiredSame shape as
checks.address.shipperabove.valid: the carrier confirmed it; corrected: it confirmed it in another spelling (suggested); invalid: it could not be found as written; unknown: the carrier could not confirm or deny it (country without street data, no answer, a timeout) — never a refusal of the route; not_checked: not requested (include: ["addressValidation"]).
serviceobjectrequiredstatusstringrequiredone of: available · unavailable
reasonstringrequirednullableone of: CARRIER_NO_RATES · FREIGHT_ONLY · ROUTE_NOT_SERVED · NO_SERVICE_FOR_EVERY_SHIPMENT · COVERAGE_LIMIT_EXCEEDED · SPECIAL_GOODS_NOT_ALLOWED · DANGEROUS_GOODS_NOT_SUPPORTED · null
priceobjectrequiredstatusstringrequiredone of: priced · unavailable
reasonstringrequirednullableone of: CARRIER_NO_RATES · FREIGHT_ONLY · ROUTE_NOT_SERVED · NO_SERVICE_FOR_EVERY_SHIPMENT · COVERAGE_LIMIT_EXCEEDED · SPECIAL_GOODS_NOT_ALLOWED · DANGEROUS_GOODS_NOT_SUPPORTED · null
pickupobjectrequiredCan the carrier collect at the shipper's address (include: ["pickupOptions"]); unknown when it did not answer — not a «no».
statusstringrequiredone of: available · unavailable · unknown · not_checked
reasonstringrequirednullableone of: NOT_REQUESTED · PICKUP_CHECK_UNAVAILABLE · NO_PICKUP_FOR_ADDRESS · PICKUP_ADDRESS_REFUSED · null
datestringrequirednullableThe day checked, YYYY-MM-DD.
addressValidationobjectOnly with include: ["addressValidation"] and an answer from the carrier (otherwise warning ADDRESS_VALIDATION_UNAVAILABLE). checks.address says the same in four states.
shipperobjectrequiredisValidbooleanrequiredisDeliverablebooleanrequiredclassificationstringrequiredsuggestedobjectstreetLines[]array of stringrequiredcitystringrequiredstateOrProvinceCodestringnullablepostalCodestringrequiredcountryCodestringrequiredrecipientobjectrequiredSame shape as
addressValidation.shipperabove.pickupOptionsobjectOnly with include: ["pickupOptions"] and an answer from the carrier.
datestringrequiredoptions[]array of objectrequiredcarrierstringrequiredavailablebooleanrequiredcutOffTimestringreadyTimeOptions[]array of stringlatestTimeOptions[]array of stringdefaultReadyTimestringdefaultLatestTimestringwarnings[]array of objectrequiredcodestringrequiredmessagestringrequiredpathstringThe request field the warning is about (label address warnings).
{
"quoteId": "qt_9f2c4a1e0b7d4c3a8e6f1b2c3d4e5f60",
"expiresAt": "2026-11-02T10:30:00.000Z",
"environment": "production",
"shipmentDirection": "DOMESTIC",
"currency": "RON",
"shipmentCount": 1,
"coverage": {
"mode": "auto",
"maxDeclaredValue": {
"amount": 5000,
"amountMinor": 500000,
"currency": "RON"
}
},
"duties": {
"applies": false,
"payer": null,
"includedInPrice": false,
"note": null
},
"packages": [
{
"packageNumber": 1,
"contentValue": {
"amount": 450,
"amountMinor": 45000,
"currency": "RON"
},
"customsValue": null,
"declaredValue": {
"amount": 450,
"amountMinor": 45000,
"currency": "RON"
},
"specialGoods": []
}
],
"services": [
{
"serviceType": "FEDEX_PRIORITY",
"serviceName": "IDS Priority",
"carrierCode": "FEDEX",
"serviceCode": "FEDEX_PRIORITY",
"deliveryType": "door",
"deliveryDate": "2026-11-03T12:00:00",
"deliveryDayOfWeek": "TUE",
"transitDays": null,
"transitBusinessDays": {
"min": 1,
"max": 1
},
"estimatedPrice": {
"net": 50,
"vat": 10.5,
"total": 60.5,
"currency": "RON",
"netMinor": 5000,
"vatMinor": 1050,
"totalMinor": 6050,
"indicative": false,
"amountMinor": 6050
},
"coverage": {
"price": {
"net": 4.86,
"vat": 1.02,
"total": 5.88,
"currency": "RON",
"netMinor": 486,
"vatMinor": 102,
"totalMinor": 588
}
},
"weight": {
"unit": "KG",
"actual": 2,
"volumetric": 0.6,
"billable": 2,
"basis": "actual",
"volumetricDivisor": {
"value": 5000,
"unit": "cm3/kg"
}
},
"shipments": [
{
"packageNumbers": [
1
],
"estimatedPrice": {
"net": 50,
"vat": 10.5,
"total": 60.5,
"currency": "RON",
"netMinor": 5000,
"vatMinor": 1050,
"totalMinor": 6050,
"amountMinor": 6050
},
"coverage": {
"price": {
"net": 4.86,
"vat": 1.02,
"total": 5.88,
"currency": "RON",
"netMinor": 486,
"vatMinor": 102,
"totalMinor": 588
}
},
"weight": {
"unit": "KG",
"actual": 2,
"volumetric": 0.6,
"billable": 2,
"basis": "actual",
"volumetricDivisor": {
"value": 5000,
"unit": "cm3/kg"
}
}
}
]
}
],
"unavailableServices": [],
"labelAddresses": {
"shipper": {
"contact": {
"name": "Acme Store",
"company": null,
"phone": "+40700000000",
"email": "[email protected]"
},
"address": {
"streetLines": [
"Calea Victoriei 1"
],
"city": "Bucuresti",
"stateCode": null,
"postalCode": "010061",
"countryCode": "RO",
"residential": null
}
},
"recipient": {
"contact": {
"name": "Ana Popescu",
"company": null,
"phone": "+40740000000",
"email": null
},
"address": {
"streetLines": [
"Strada Republicii 12"
],
"city": "Brasov",
"stateCode": null,
"postalCode": "500030",
"countryCode": "RO",
"residential": true
}
}
},
"checks": {
"address": {
"shipper": {
"status": "unknown",
"reasons": [
"NOT_CONFIRMED"
],
"classification": "UNKNOWN",
"suggested": {
"streetLines": [
"CALEA VICTORIEI 1"
],
"city": "BUCURESTI",
"stateOrProvinceCode": null,
"postalCode": "010061",
"countryCode": "RO"
}
},
"recipient": {
"status": "unknown",
"reasons": [
"NOT_CONFIRMED"
],
"classification": "UNKNOWN",
"suggested": {
"streetLines": [
"STRADA REPUBLICII 12"
],
"city": "BRASOV",
"stateOrProvinceCode": null,
"postalCode": "500030",
"countryCode": "RO"
}
}
},
"service": {
"status": "available",
"reason": null
},
"price": {
"status": "priced",
"reason": null
},
"pickup": {
"status": "available",
"reason": null,
"date": "2026-11-02"
}
},
"addressValidation": {
"shipper": {
"isValid": true,
"isDeliverable": true,
"classification": "UNKNOWN",
"suggested": {
"streetLines": [
"CALEA VICTORIEI 1"
],
"city": "BUCURESTI",
"stateOrProvinceCode": "",
"postalCode": "010061",
"countryCode": "RO"
}
},
"recipient": {
"isValid": true,
"isDeliverable": true,
"classification": "UNKNOWN",
"suggested": {
"streetLines": [
"STRADA REPUBLICII 12"
],
"city": "BRASOV",
"stateOrProvinceCode": "",
"postalCode": "500030",
"countryCode": "RO"
}
}
},
"pickupOptions": {
"date": "2026-11-02",
"options": [
{
"carrier": "FDXE",
"available": true,
"cutOffTime": "16:00:00",
"readyTimeOptions": [
"09:00:00"
],
"latestTimeOptions": [
"18:00:00"
]
}
]
},
"warnings": [
{
"code": "PHONE_COUNTRY_CODE_ADDED",
"message": "No country code was given: the code of RO was added (+40740000000)",
"path": "recipient.contact.phone"
}
]
}400 VALIDATION_FAILED — a field (details[].path); an address the label cannot print (details[].code LATIN_SPELLING_REQUIRED, POSTAL_CODE_REQUIRED, POSTAL_CODE_INVALID); testScenario with a live key or a test key on the FedEx sandbox
Headers: X-Request-Id
Codes: VALIDATION_FAILED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
401 AUTHENTICATION_FAILED — missing, malformed, invalid, revoked or expired key
Headers: X-Request-Id
Codes: AUTHENTICATION_FAILED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
403 API_ACCESS_DISABLED / API_ACCOUNT_DISABLED / API_KEY_IP_NOT_ALLOWED / API_TERMS_NOT_ACCEPTED / FORBIDDEN_SCOPE / API_OWNER_NOT_BILLABLE; a platform's key: PLATFORM_SUSPENDED (a quote, booking or test operation of a suspended platform) / PLATFORM_TARIFF_MISSING (a quote or booking before IDS set its tariff)
Headers: X-Request-Id
Codes: API_ACCESS_DISABLEDAPI_ACCOUNT_DISABLEDAPI_KEY_IP_NOT_ALLOWEDAPI_TERMS_NOT_ACCEPTEDFORBIDDEN_SCOPEAPI_OWNER_NOT_BILLABLEPLATFORM_SUSPENDEDPLATFORM_TARIFF_MISSING
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
422 PACKAGE_EXCEEDS_PARCEL_LIMITS (a box over 68 kg / 150 lb, 274 cm / 108 in long or 330 cm / 130 in length + girth — freight, not sold online; details.reason, details.packageNumber, details.buyerMessage) / CARRIER_ERROR (retryable true: the carrier did not answer — unknown, not «not served») / PRICING_UNAVAILABLE (no delivery for this item to this address: details.reason CARRIER_NO_RATES | FREIGHT_ONLY | ROUTE_NOT_SERVED | NO_SERVICE_FOR_EVERY_SHIPMENT, details.checks, details.buyerMessage; and, refused before the carrier, COVERAGE_LIMIT_EXCEEDED | SPECIAL_GOODS_NOT_ALLOWED | DANGEROUS_GOODS_NOT_SUPPORTED with details.packages[]; a platform's key: PLATFORM_ORIGIN_NOT_ALLOWED | PLATFORM_DESTINATION_NOT_ALLOWED with details.allowedCountries) / VAT_SCENARIO_NOT_APPROVED / VAT_SCENARIO_UNSUPPORTED (a platform whose buyers IDS invoices: the VAT treatment of that kind of buyer and route — details.buyerType, details.route)
Headers: X-Request-Id
Codes: PACKAGE_EXCEEDS_PARCEL_LIMITSCARRIER_ERRORPRICING_UNAVAILABLEVAT_SCENARIO_NOT_APPROVEDVAT_SCENARIO_UNSUPPORTED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
429 RATE_LIMITED — per-key or per-IP limit exceeded; wait Retry-After seconds
Headers: X-Request-IdRetry-After
Codes: RATE_LIMITED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
500 INTERNAL_ERROR
Headers: X-Request-Id
Codes: INTERNAL_ERROR
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
503 API_DISABLED (API switched off); CARRIER_NOT_CONFIGURED / CURRENCY_RATE_MISSING where a carrier or FX rate is used
Headers: X-Request-Id
Codes: API_DISABLEDCARRIER_NOT_CONFIGUREDCURRENCY_RATE_MISSING
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
Error codes of this operation
The codes the answers of this operation name. Always read error.retryable of the answer itself — «varies» means it differs per answer. The gates of every keyed request (401, 403, 429, 503) and the whole catalog: errors.
The request is invalid: a field (details[].path), an unknown field, a missing Idempotency-Key, a body that is not JSON, an address the label cannot print. Fix it; repeating it unchanged fails again.
AUTHENTICATION_FAILEDHTTP 401retryable: noMissing, malformed, invalid, revoked or expired key; an environment tag that does not match. (An account switched off answers 403 API_ACCOUNT_DISABLED since SEC.)
API_ACCESS_DISABLEDHTTP 403retryable: noAPI access is switched off for this account.
API_ACCOUNT_DISABLEDHTTP 403retryable: noThe IDS account of this key is switched off, not approved or closed (for an employee's key: its franchise owner's account) — the key stops with it; contact IDS.
API_KEY_IP_NOT_ALLOWEDHTTP 403retryable: noIDS keeps a list of IP addresses for this key and the request came from another one — send it from a listed address, or ask IDS to change the list.
API_TERMS_NOT_ACCEPTEDHTTP 403retryable: noThe IDS account of this key has not accepted the API Terms of Use (/legal/api-terms) — its holder accepts them in the IDS cabinet (Integrations / API), or IDS records a signed agreement (for an employee's key: its franchise owner's account). Retrying does not help until then.
FORBIDDEN_SCOPEHTTP 403retryable: noThe key lacks the scope of this operation (x-scope).
API_OWNER_NOT_BILLABLEHTTP 403retryable: noThe account cannot be billed through the API (no pricing tier, or an admin account).
PLATFORM_SUSPENDEDHTTP 403retryable: noThe platform of this key is suspended by IDS: quotes, bookings and test operations are refused until IDS resumes it; reads, the tracking refresh, a cancellation and a complaint still work. A retry of a booking finished before the suspension replays its answer.
PLATFORM_TARIFF_MISSINGHTTP 403retryable: noThe platform has no tariff yet — IDS sets it; no quote or booking until then.
A box is over the parcel limits — freight, not sold online (details).
The carrier refused or failed the request. retryable true: it throttled, failed or did not answer — the route's availability is unknown, try later; false: it refused this request — or, on a booking, the carrier may have made the label without answering (the Idempotency-Key and the operationRef are closed, IDS reviews it: look the booking up with GET /shipments?operationRef= before booking again).
No delivery can be offered for this item to this address (details.reason; on a quote also details.buyerMessage and the four checks) — a stable reason, not a timeout.
IDS invoices this platform's deliveries to the buyer, and the VAT treatment of this kind of buyer (details.buyerType) on this route (details.route) is not approved by IDS's accountant yet — the delivery cannot be sold at a VAT nobody approved. Contact IDS; test keys are priced meanwhile.
IDS cannot invoice the delivery of this route (details.route) to this kind of buyer (details.buyerType) — its VAT is another state's. Offer another delivery option.
RATE_LIMITEDHTTP 429retryable: yesA limit per minute — the key's requests, its quotes, its platform's keys together, or the client IP (limitScope) — wait Retry-After seconds (retryAfterSec, limit).
INTERNAL_ERRORHTTP 500retryable: noUnexpected — for a booking, check GET /shipments before using a new key; quote the requestId.
API_DISABLEDHTTP 503retryable: noIDS switched the whole API off (/ping and /openapi.json keep answering).
CARRIER_NOT_CONFIGUREDHTTP 503retryable: noThe carrier credentials of this environment are missing.
CURRENCY_RATE_MISSINGHTTP 503retryable: noIDS has no exchange rate for the balance currency.