Cancel a box
/sigmafi/zc/boxes/{boxId}/cancelapi_keyTake back an order, offer, ask, lot, share request or wrap request this wallet made, with one of its boxes at the creator's address as consent. A box past its expiry may be refunded by anyone first.
Path parameters
boxIdstringrequiredA ZC box id.
Responses
200The transaction was sent; `outcome` says whether the node accepted it.ZcResult▶
txIdstringnullableNone while the write is held.
outcomestringThe node's answer.
held: the write reads the box a pending oracle refresh creates, and a miner could reach it before that refresh, so nothing was sent yet. The client tries it again every 30 seconds for 10 minutes, rebuilt and checked againstlimitseach time, and sends it once the refresh confirms.one ofacceptedrejecteduncertainheldreasonstringWhy a write is held.
retriesUntilinteger · int64When a held write stops being tried (ms since the epoch).
boxIdstringnullableThe transaction's first output.
assetIdstringnullableThe bond asset a fill minted.
warningsstring[]
400A malformed field, or terms the contracts refuse.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
403Missing or wrong api_key.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No such box or token, or not this wallet's.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409A pending transaction already spends a box this needs, or the rebuilt transaction is outside `limits`. Re-quote and resend.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
422Valid, but not possible now; the message gives the reason the check lists in `refusals`.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description