ReturnQuoteRequest
Fields
payerstringone of: buyer · seller · platform
Who will pay the return, when you know it already (INV). A platform IDS invoices to its buyers: the price carries the VAT of the buyer's VAT scenario only when the buyer pays; seller or platform — the route's VAT rule. Named here, the booking must name the same payer (else 422 QUOTE_MISMATCH); not named — priced as paid by the buyer.
reasonstringrequiredone of: withdrawal · defect · damaged · not_delivered · other
Why the parcel goes back — the scenarios are kept apart: withdrawal (a withdrawal from the purchase, no defect), defect (a defect of the goods), damaged (damaged in carriage), not_delivered (the buyer did not receive it), other (with reasonNote). It sets the carrier's return reason and, across a border, the customs reason; it never decides who pays.
reasonNotestringlength 1–200pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029<>]+$A short description (required with reason other); printed in the carrier's return reference.
returnToobjectWhere it goes. Default: the return place of the original's pickup place (PUT /pickup-locations returns), else that place, else the original's shipper.
locationExternalIdstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$One of your pickup places (PUT /pickup-locations/{externalId}) — the return goes to its address.
contactobjectWith address: the seller's contact the label prints (name, phone).
namestringrequiredlength 1–100companystringlength ≤ 100phonestringrequiredlength 1–20emailstring (email)length ≤ 255addressobjectOr the address the return goes to.
line1stringrequiredlength 1–100line2stringlength ≤ 100citystringrequiredlength 1–100stateCodestringlength ≤ 20postalCodestringlength ≤ 20countryCodestringrequiredlength 2–2residentialbooleanshipperobjectThe buyer the return comes from. Default: the original's recipient (as the carrier got it). Whether a courier can collect there is judged as for a home address (the carrier may not pick up at homes) unless shipper.address.residential is false.
contactobjectSame shape as
returnTo.contactabove.addressobjectrequiredSame shape as
returnTo.addressabove.packages[]array of objectitems ≥ 1items ≤ 40The boxes that go back (one shipment). Default: the original's boxes.
weightnumberrequired> 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
customsobjectAcross a border: the customs lines of what goes back (a partial return). Default: the original's lines.
documentsOnlybooleancommodities[]array of objectitems ≥ 1items ≤ 100descriptionstringrequiredlength 1–450quantityintegerrequired> 0≤ 99999quantityUnitsstringlength ≤ 10weightnumberrequired> 0≤ 1000weightUnitstringone of: KG · LB
customsValuenumberrequired> 0customsValueCurrencystringrequiredlength 3–3countryOfManufacturestringlength 2–2harmonizedCodestringlength ≤ 30include[]array of stringitems ≤ 3dropOffNearobjectWith include dropOffPoints: the buyer's coordinates, when you have them — the carrier's point search by coordinates (FedEx does not geocode every country's street addresses, e.g. Romania's; without them the search is by the address).
latitudenumberrequired≥ -90≤ 90longitudenumberrequired≥ -180≤ 180pickupobjectThe day from which a courier pickup at the buyer is checked (default today).
datestringrequiredpattern ^\d{4}-\d{2}-\d{2}$localestringlength ≤ 35The language of buyerNotice and details.buyerMessage (en, ro, ru, uk, sr, hu, bg, el, zh).
testScenariostringone 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 (GET /metadata testScenarios.quote).