OperationsCancel a transfer (by the initiator)

Cancel a transfer (by the initiator)

The initiator withdraws their transfer while it's awaiting approval (awaiting_approval). The transfer → rejected, and the reserved funds are returned (release). Breaks the deadlock if approvers don't act. Can't be cancelled after approval/execution.

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/transfers/example_string/cancel" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "status": "example_string"
}
POST
/api/v1/vaults/{code}/transfers/{id}/cancel
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

path
codestring
Required

Unique Vault code (slug)

path
idstring
Required

Transfer id (cuid)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Unique Vault code (slug)

Example:
demo_vault
idstring
Required

Transfer id (cuid)

Responses

statusstring
Required

Withdrawal by the initiator = a separate cancelled status (not a rejected veto and not failed)