Skip to content

Payment links

Retrieve a payment link

Returns a payment link with its current status. Use it to check whether a link has been paid.

GET /v1/payment-links/{id}

The status is always current: until a link is paid or canceled, Cyan checks the payment each time you call.

Authorization string header required

Your API key as a bearer token: Bearer cyan_test_.... See Authentication.

id string path required

The payment link’s ID, from the id you got when you created it. It starts with pl_.

Returns 200 with the payment link. Any other status comes with an error: see Errors.

id string

The link’s ID.

amount integer

The amount in the currency’s smallest unit.

currency string

A three-letter ISO 4217 currency code, in uppercase.

description string

What the payment is for.

customer_name string or null

Your customer’s name, or null when you didn’t set one.

status string

Where the payment stands: pending, processing, paid or canceled. See statuses.

url string

The payment page, for your customer or for Cyan.mount.

created_at string

When the link was created, as an ISO 8601 timestamp in UTC.

Retrieve a payment link
const response = await fetch(
"https://api.cyan.cash/v1/payment-links/pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
{
headers: {
Authorization: "Bearer cyan_test_...",
},
},
);
const link = await response.json();
{
"id": "pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
"amount": 4900,
"currency": "USD",
"description": "Logo design",
"customer_name": null,
"status": "paid",
"url": "https://pay.cyan.cash/pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
"created_at": "2026-12-05T17:40:12.000Z"
}