Skip to main content
GET
Get payment credential
Returns the signed payment approval credential for one of the token customer’s authorizations: an SD-JWT VC (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 be ACTIVE, 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: Creating the authorization is not approval. The user approves it with a passkey on Clink’s page; only then does this endpoint answer.

The credential

Wire format: <issuer-signed JWT>~<mandate>~<instrument 1>~...~.
  • jti is the instruction id, and exp is the instruction’s effective_until_time — the same value returned as expires_at.
  • cnf is 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).
  • constraints carry payment.amount_range (the maximum for one payment, in minor units) and payment.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.
Every call returns a freshly serialized credential for the same approval; jti and the approved terms stay the same.

Verifying it

  1. Read GET <issuer>/.well-known/jwt-vc-issuer and select the key whose kid matches the credential header.
  2. Verify the issuer JWT signature.
  3. Hash each presented disclosure and match it against the digest in the layer above it: instruments against allowed, the mandate against delegate_payload.
  4. Reject the credential if the two copies of cnf, iat and exp disagree.

What it does not do

The credential records consent; it does not grant a new capability. Whether a payment may proceed is still decided by Clink at payment time against the instruction, its mandate and its usages. Revoking an authorization is done by the user on Clink’s page, not through this API.

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.

Example:

"inst_..."

Response

Success

code
integer<int32>
Example:

200

msg
string
Example:

"Success"

data
object

Signed SD-JWT VC recording what the user approved for this authorization.