Skip to content

The payment link object

A payment link is one request for one payment. You create it, your customer pays it, and you retrieve it to see its status. Until it’s paid, you can cancel it.

Every endpoint returns the same object:

{
"id": "pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
"amount": 4900,
"currency": "USD",
"description": "Logo design",
"customer_name": "Ada Lovelace",
"status": "pending",
"url": "https://pay.cyan.cash/pl_019d0a1b2c3d4e5f60718293a4b5c6d7",
"created_at": "2026-12-05T17:40:12.000Z"
}

Every field is always present. One with no value is null.

Field Type Description
id string The link’s ID. It starts with pl_.
amount integer The amount in the currency’s smallest unit. 4950 is $49.50.
currency string A three-letter ISO 4217 currency code, in uppercase.
description string What the payment is for. Your customer sees it on the checkout.
customer_name string or null Your customer’s name, or null when you didn’t set one.
status string Where the payment stands. See below.
url string The payment page. See below.
created_at string When the link was created, as an ISO 8601 timestamp in UTC.

url works two ways:

When your business has Apple Pay turned on, url ends in ?wallets=apple_pay. That tells the chat checkout to keep room for the button while it loads. Use the URL as you got it, query string included.

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

Status Meaning
pending Waiting for payment. If a card is declined the link stays pending, and your customer can try again.
processing The payment was accepted and the bank is confirming it.
paid The payment succeeded.
canceled The link was canceled. It can no longer be paid.

A link stays open until it is paid or canceled. A refunded payment keeps the status paid. To see refunds, use the app’s Transactions page or your Stripe Dashboard.

Amounts are integers in the currency’s smallest unit: cents for dollars and euros, whole yen for yen.

To charge Send
$49.50 "amount": 4950, "currency": "USD"
€120 "amount": 12000, "currency": "EUR"
¥5,000 "amount": 5000, "currency": "JPY"

currency defaults to USD. You can charge in any currency your Stripe account supports. The largest amount is 99999999.