API reference › Schemas

QuoteRequest

Fields

  • shipperobjectrequired
  • contactobject
  • namestringrequiredlength 1–100
  • companystringlength ≤ 100
  • phonestringrequiredlength 1–20
  • emailstring (email)length ≤ 255
  • addressobjectrequired
  • line1stringrequiredlength 1–100
  • line2stringlength ≤ 100
  • citystringrequiredlength 1–100
  • stateCodestringlength ≤ 20
  • postalCodestringlength ≤ 20
  • countryCodestringrequiredlength 2–2
  • residentialboolean
  • recipientobjectrequired
  • contactobject

    Same shape as shipper.contact above.

  • addressobjectrequired

    Same shape as shipper.address above.

  • packages[]array of objectrequireditems ≥ 1items ≤ 100
  • weightnumberrequired> 0≤ 1000
  • weightUnitstringdefault KG

    one of: KG · LB

  • lengthnumber> 0≤ 1000
  • widthnumber> 0≤ 1000
  • heightnumber> 0≤ 1000
  • dimUnitstring

    one of: CM · IN

  • declaredValueobject
  • amountnumberrequired≥ 0
  • currencystringrequiredlength 3–3
  • contentValueobject
  • amountnumberrequired≥ 0≤ 100000000
  • currencystringrequiredlength 3–3
  • specialGoodsobject

    Special 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.

  • batteryobject

    A 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).

  • typestringrequired

    one 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).

  • installationstringrequired

    one 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.

  • liquidboolean

    true: 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).

  • aerosolboolean

    true: the box holds an aerosol (spray can). Dangerous goods — refused for every account (DANGEROUS_GOODS_NOT_SUPPORTED).

  • perfumeboolean

    true: 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.

  • serviceobject
  • typestringlength ≤ 60
  • packagingstringlength ≤ 60
  • signaturestring

    one of: SERVICE_DEFAULT · DIRECT · ADULT

  • coveragestring

    one of: none · auto

  • include[]array of stringitems ≤ 2
  • pickupobject
  • datestringrequiredpattern ^\d{4}-\d{2}-\d{2}$
  • localestringlength ≤ 35
  • testScenariostring

    one 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.

  • buyerobject

    INV: 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.

  • typestringrequired

    one 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.