QuoteRequest
Used by
Fields
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.