Revoke instruction
curl --request POST \
--url https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"instruction_id": "inst_...",
"status": "CANCELLED",
"revoked_at": "2026-11-23T06:00:00Z"
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Authorizations
Revoke instruction
Revokes a purchase instruction by setting its Clink status to CANCELLED. No request is sent to the card network: an instruction that already exists on the network (for example Visa VIC or Mastercard Agent Pay) stays usable there until it expires or its limit is exhausted. Requires portal:write. Pass the instruction ID (inst_...), not a payment credential ID.
POST
/
agent
/
platform
/
authorizations
/
{instructionId}
/
revoke
Revoke instruction
curl --request POST \
--url https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"instruction_id": "inst_...",
"status": "CANCELLED",
"revoked_at": "2026-11-23T06:00:00Z"
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Revokes a purchase instruction so it can no longer be used to obtain a credential or authorize a payment. Pass the instruction ID (
A
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, andPENDINGinstructions becomeCANCELLEDand recordrevoked_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
| Current status | Result | Response |
|---|---|---|
ACTIVE, CREATED, PENDING | Becomes CANCELLED | 200, status = CANCELLED |
CANCELLED | No change; revoked_at keeps the original revoke time | 200, status = CANCELLED |
COMPLETED, EXPIRED, DECLINED | No change | 200, status = the current final status |
INPROGRESS | Rejected: a payment is in progress | 409, code 71211028 (portal_invalid_state) |
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 lacksportal: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.