Skip to main content
POST
Revoke instruction
Revokes a purchase instruction so it can no longer be used to obtain a credential or authorize a payment. Pass the instruction ID (inst_...), not a payment credential ID; a credential issued for an instruction contains that instruction’s ID.

What revoke changes

Revoke is a Clink-side status change only:
  • ACTIVE, CREATED, and PENDING instructions become CANCELLED and record revoked_at.
  • The instruction can no longer be activated by an outstanding activation link, and Clink refuses new charges against it.
  • No revocation is sent to the card network. An instruction that already exists on Visa, Mastercard, or another scheme (for example Visa VIC or Mastercard Agent Pay) stays valid there until it expires or its limit is exhausted. Do not use revoke to release network-side spending limits; to stop network-side use, let the instruction expire or revoke it on the network side separately.

Idempotency and final states

A 200 does not always mean the instruction is now CANCELLED: read status in the response. Repeated calls are safe and do not create duplicate cancellation events.

Errors

  • 401 — missing, expired, or invalid portal token.
  • 403 — the token lacks portal:write.
  • 404 — the instruction does not exist or does not belong to the token’s customer.
  • 409 — portal_invalid_state; the instruction has a payment in progress, or its status kept changing during the call. Retry later.

Authorizations

Authorization
string
header
required

Portal user token from POST /agent/cwallet/platform/portal/tokens. Reads require portal:read; writes require portal:write.

Path Parameters

instructionId
string
required

Instruction ID. A payment credential issued for the instruction contains this ID.

Example:

"inst_..."

Response

The instruction is revoked, or was already final. Read status for the current state.

code
integer<int32>

200 on success.

Example:

200

msg
string

Result message.

Example:

"Success"

data
object