API reference › Schemas

PricingUnavailableDetails

The error.details of: PRICING_UNAVAILABLE

Fields

  • reasonstringrequired

    one 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 · PLATFORM_ORIGIN_NOT_ALLOWED · PLATFORM_DESTINATION_NOT_ALLOWED

  • limitobject

    COVERAGE_LIMIT_EXCEEDED: the cap per box.

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • allowedCountries[]array of string

    PLATFORM_ORIGIN_NOT_ALLOWED / PLATFORM_DESTINATION_NOT_ALLOWED: the countries the platform may ship from / to (set by IDS).

  • packages[]array of one of 2

    COVERAGE_LIMIT_EXCEEDED, SPECIAL_GOODS_NOT_ALLOWED, DANGEROUS_GOODS_NOT_SUPPORTED: the boxes concerned.

  • in every variant (2)object
  • packageNumberintegerrequired
  • variant 1object
  • declaredValueobjectrequired

    Same shape as limit above.

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • declaredValueRonobjectrequired

    Same shape as limit above.

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • variant 2object
  • categories[]array of stringrequired
  • refused[]array of stringrequired
  • buyerMessageobject

    On a quote.

  • localestringrequired
  • textstringrequired
  • checksobject

    On a quote the carrier answered: the four checks (ТЗ B10).

  • addressobjectrequired
  • shipperobjectrequired

    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"]).

  • statusstringrequired

    one of: valid · corrected · invalid · unknown · not_checked

  • reasons[]array of stringrequired
  • classificationstringrequirednullable

    one of: BUSINESS · RESIDENTIAL · MIXED · UNKNOWN · null

  • suggestedobjectrequirednullable

    The carrier's spelling of the address (corrected / valid).

  • streetLines[]array of stringrequired
  • citystringrequirednullable
  • stateOrProvinceCodestringrequirednullable
  • postalCodestringrequirednullable
  • countryCodestringrequired
  • recipientobjectrequired

    Same shape as checks.address.shipper above.

    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"]).

  • serviceobjectrequired
  • statusstringrequired

    one of: available · unavailable

  • reasonstringrequirednullable

    one 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

  • priceobjectrequired
  • statusstringrequired

    one of: priced · unavailable

  • reasonstringrequirednullable

    one 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

  • pickupobjectrequired

    Can the carrier collect at the shipper's address (include: ["pickupOptions"]); unknown when it did not answer — not a «no».

  • statusstringrequired

    one of: available · unavailable · unknown · not_checked

  • reasonstringrequirednullable

    one of: NOT_REQUESTED · PICKUP_CHECK_UNAVAILABLE · NO_PICKUP_FOR_ADDRESS · PICKUP_ADDRESS_REFUSED · null

  • datestringrequirednullable

    The day checked, YYYY-MM-DD.