Payment links
Retrieve a payment link
Returns a payment link with its current status. Use it to check whether a link has been paid.
The status is always current: until a link is paid or canceled, Cyan checks the payment each time you call.
Headers
Section titled “Headers”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_.
Response
Section titled “Response”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.
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"}{ "error": { "code": "invalid_api_key", "message": "This API key isn't valid." }}{ "error": { "code": "payment_link_not_found", "message": "No payment link with this ID belongs to this business." }}{ "error": { "code": "provider_unavailable", "message": "The payment provider couldn't handle the request. Try again." }}