API reference › Schemas

CancelResult

Fields

  • idstring (uuid)required
  • cancelledbooleanrequired

    one of: true

  • alreadyCancelledboolean

    one of: true

  • statusstringrequired

    one of: cancelled

  • pickupobject

    Present when this call cancelled the label (not on alreadyCancelled).

  • cancelledbooleanrequired
  • keptForShipmentsinteger> 0

    BOOK: the pickup was kept — this many other shipments of it (a plan booked in one call) still wait for the courier; it is cancelled with the last of them.

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