API reference › Schemas

CancelRequested

Fields

  • idstring (uuid)required
  • cancelledbooleanrequired

    one of: false

  • statusstringrequired

    one of: draft · pending · confirmed · in_transit · delivered · cancelled · exception · failed

    The shipment's status now (the carrier has the parcel).

  • cancelRequestobjectrequired
  • idstring (uuid)required
  • statestringrequired

    one of: open · declined · return_ordered · cancelled

    open — IDS reviews it; declined — the delivery goes on; return_ordered — IDS arranged a stop / return to the sender with the carrier; cancelled — IDS cancelled the label.

  • requestedAtstring (date-time)required
  • channelstringrequired

    one of: api · dashboard

  • evidencestringrequired

    one of: scan · pickup_completed · dropped_off

    Why it is held: the carrier scanned the parcel, the pickup is completed, or the seller handed it in.

  • decidedAtstring (date-time)requirednullable
  • refundobjectrequired
  • statusstringrequired

    one of: refunded · not_applicable · not_eligible · blocked_pickup_window · pending_review · refund_due

    refund_due (CXL) — paid on the platform: the platform refunds its buyer this amount on its original payment and confirms it (POST /shipments/{id}/refunds/{refundId}/confirm). A repeated cancel after that confirmation answers refunded with target platform_payment — never refund it again.

  • refundedbooleanrequired
  • amountnumber
  • amountMinorinteger

    The amount beside it in minor units (cents).

  • currencystring
  • reasonstring
  • targetstring

    one of: balance · test_wallet · platform_payment

    CXL: where the money goes back.

  • refundIdstring (uuid)

    CXL: target platform_payment — the refund (to confirm while refund_due).