Get payment credential
curl --request GET \
--url https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/payment-credential \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/payment-credential")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/payment-credential"
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}/payment-credential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"credential": "<sd-jwt>",
"jti": "inst_...",
"vct": "https://clinkbill.com/vct/agent-mandate/1",
"expires_at": "2026-12-31T00:00:00Z"
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Authorizations
Get payment credential
Issues the signed SD-JWT VC payment approval credential for this authorization. Only available once the instruction is ACTIVE, unexpired, has a bound card and was created with agent_public_key; otherwise the request fails closed and no credential is produced. jti is the instruction id and exp is the instruction’s effective_until_time.
GET
/
agent
/
platform
/
authorizations
/
{instructionId}
/
payment-credential
Get payment credential
curl --request GET \
--url https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/payment-credential \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/payment-credential")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/authorizations/{instructionId}/payment-credential"
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}/payment-credential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"credential": "<sd-jwt>",
"jti": "inst_...",
"vct": "https://clinkbill.com/vct/agent-mandate/1",
"expires_at": "2026-12-31T00:00:00Z"
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Returns the signed payment approval credential for one of the token customer’s authorizations: an
SD-JWT VC (
Creating the authorization is not approval. The user approves it with a passkey on Clink’s page; only
then does this endpoint answer.
typ: dc+sd-jwt) that carries an AP2 open payment mandate and states what the user
approved. Clink signs it with an ES256 key the agent cannot access.
Before you call
The authorization must beACTIVE, unexpired, have a bound card, and have been created with
agent_public_key. Anything else fails closed with
409 or 422 and no credential is produced:
| Status | Meaning |
|---|---|
409 | Not ACTIVE, expired, no bound card, more than one mandate (split the authorization per mandate), or an amount that cannot be expressed in minor units |
422 | The authorization has no stored agent_public_key, so the credential cannot be bound to the agent |
The credential
Wire format:<issuer-signed JWT>~<mandate>~<instrument 1>~...~.
jtiis the instruction id, andexpis the instruction’seffective_until_time— the same value returned asexpires_at.cnfis the agent’s public key; the agent adds a key-binding JWT signed with the matching private key when a verifier requires it (Clink does not issue that JWT).constraintscarrypayment.amount_range(the maximum for one payment, in minor units) andpayment.allowed_payment_instruments(one digest per approved card).- Each card is its own disclosure, so the agent can reveal only the card a merchant accepts.
jti and the approved terms
stay the same.
Verifying it
- Read
GET <issuer>/.well-known/jwt-vc-issuerand select the key whosekidmatches the credential header. - Verify the issuer JWT signature.
- Hash each presented disclosure and match it against the digest in the layer above it: instruments
against
allowed, the mandate againstdelegate_payload. - Reject the credential if the two copies of
cnf,iatandexpdisagree.