Get authorization
curl --request GET \
--url https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId} \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"instruction_id": "inst_...",
"client_reference_id": "0f1e2d3c-...",
"payment_instrument_id": "pi_...",
"card_last_four": "4242",
"card_type": "VIRTUAL_CARD",
"card_scheme": "VISA",
"title": "Example authorization",
"description": "Purchase authorization",
"total_amount_limit": 100,
"currency_code": "USD",
"effective_until_time": "2026-02-01T00:00:00Z",
"is_recurring": false,
"status": "ACTIVE",
"agent_info": {},
"mandates": [],
"usages": []
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Authorizations
Get authorization
Returns one purchase instruction of the token’s customer with its mandates and usages.
GET
/
agent
/
platform
/
authorizations
/
{instructionId}
Get authorization
curl --request GET \
--url https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId} \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"instruction_id": "inst_...",
"client_reference_id": "0f1e2d3c-...",
"payment_instrument_id": "pi_...",
"card_last_four": "4242",
"card_type": "VIRTUAL_CARD",
"card_scheme": "VISA",
"title": "Example authorization",
"description": "Purchase authorization",
"total_amount_limit": 100,
"currency_code": "USD",
"effective_until_time": "2026-02-01T00:00:00Z",
"is_recurring": false,
"status": "ACTIVE",
"agent_info": {},
"mandates": [],
"usages": []
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}usages are raw usage records; compute used and remaining amounts from them when rendering the portal.
client_reference_id in authorization responses is the instruction’s own field. For instructions created through the portal, Clink generates a random value for it; it is not the create request’s request_id and not the client_reference_id sent to Get credential and Report credential result. Do not use it to reconcile a purchase.