Skip to main content
All read APIs use the portal user token from Portal token. They are read-only and scoped to the token’s sub customer.

Authentication

The gateway verifies aud=clink-agent-platform-portal, scope=portal:read, and token_use=access, then passes the verified customer identity to cwallet. There is no request parameter for selecting a different customer or email. Clink responses use the standard envelope:
The examples below show data.

Common behavior

  • pageNum and pageSize use 1-based pagination.
  • Order lists accept status, from, and to filters.
  • Lists are scoped to the customer, not to an Agent. Orders, refunds, and authorizations created by any Agent for that customer are returned.
  • A missing record, or a record owned by another customer, is returned as 404.
  • There are no write endpoints in this API.

Get account

List payment methods

status is ACTIVE or DISABLED. PAN and CVV are never returned.

List orders

truncated: true means the status/time filtered scan reached Clink’s internal scan bound; total describes the records scanned, not necessarily the customer’s complete matching history. Without filters, the endpoint reads one page and does not use the bounded scan.

Get order

The detail response includes order time, amount breakdown, merchant, payment method, card scheme, products, shipping address and amount, agent_info, and a refund_summary:

List refunds

Get refund

Returns one refund with the fields shown above. A refund owned by another customer is returned as 404.

List authorizations

Get authorization

The detail response includes the instruction fields, mandates, and usages. usages are raw usage records; compute used and remaining amounts from them when rendering the portal. An instruction owned by another customer is returned as 404.

Errors