API reference › Schemas

Platform

Fields

  • codestringrequired
  • namestringrequired
  • statusstringrequired

    one of: active · suspended

    suspended: reads work, every write answers 403 PLATFORM_SUSPENDED.

  • environmentstringrequired

    one of: sandbox · production

  • sameLegalEntitybooleanrequired
  • paymentModestringrequired

    one of: balance · platform_collected

    The mode this key books in: platform_collected — a booking carries platform.payment; balance — it carries none. A test key of a platform of IDR itself (sameLegalEntity) always answers platform_collected: it rehearses the only live path such a platform has. Its live key answers balance until IDS switches the platform over, and until then its live bookings answer 409 PLATFORM_PAYMENT_MODE_UNAVAILABLE.

  • invoiceRecipientstringrequired

    one of: delivery_customer · platform

    Who receives the delivery invoice of the platform's orders.

  • lifecycleEmailsbooleanrequired

    Whether IDS e-mails the platform's people about a shipment's life (off: the platform informs them).

  • tariffSetbooleanrequired

    false: IDS has not set the platform's tariff yet — quotes and bookings answer 403 PLATFORM_TARIFF_MISSING.

  • countriesobjectrequired

    ISO codes the platform may ship from / to; an empty list = every country where a service is available.

  • origin[]array of stringrequired
  • destination[]array of stringrequired
  • coverageobjectrequired

    auto: every quote and booking is covered (coverage "auto", each box's contentValue required).

  • autobooleanrequired
  • maxDeclaredValuePerBoxobjectrequired

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

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • quoteValidityMinutesintegerrequired

    How long a quote of this platform stays valid.

  • specialGoodsAllowed[]array of stringrequired

    Special-goods categories the platform may ship (GET /metadata specialGoods.allowable); dangerous goods never.