CancelResult
Used by
Fields
idstring (uuid)requiredcancelledbooleanrequiredone of: true
alreadyCancelledbooleanone of: true
statusstringrequiredone of: cancelled
pickupobjectPresent when this call cancelled the label (not on alreadyCancelled).
cancelledbooleanrequiredkeptForShipmentsinteger> 0BOOK: 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.
refundobjectrequiredstatusstringrequiredone 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.
refundedbooleanrequiredamountnumberamountMinorintegerThe amount beside it in minor units (cents).
currencystringreasonstringtargetstringone 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).