Payment links
A reusable link with a fixed price, or an amount the customer chooses (tips, donations), made in the dashboard and shared anywhere. Each visit creates an ordinary invoice. No code needed.
A payment link is a URL with a price and a description that you can paste into a chat, an email or a bio. The price is either fixed, or the customer chooses it inside limits you set: a tip jar, a donation, pay what you want. Each visit creates its own invoice at that price, paid to your settlement address, with the usual webhooks. Nobody has to write any code.
https://pay.intents.fi/l/plink_…Make one in the dashboard
Section titled “Make one in the dashboard”On dashboard.intents.fi/links, in live or test mode:
| Field | Notes |
|---|---|
| Price | A fixed price, or The customer chooses |
| Price (USD) | a fixed price like 49.00: $1.00 or more, up to 8 digits before the point |
| Smallest amount, Largest amount | when the customer chooses: the bounds their amount must fall in. The smallest is $1.00 or more; the largest has no limit beyond the same 8-digit format |
| Suggested amounts | when the customer chooses, optional: up to 4 amounts inside the bounds, shown as one-tap buttons. The first is filled in to start |
| What it is for | the description the customer sees, up to 200 characters |
| Send customers here after paying | optional, an https:// URL for the paid screen’s return button |
| Let customers choose a quantity, Up to | fixed price only, optional. The customer picks 1 to the maximum (10 unless you say, at most 100) and pays price × quantity |
The table lists each link with its URL, price, how many invoices it has created and whether it is on. Switch off stops a link at once: its page answers “not found” and no new invoice can be made from it. Invoices it already created are not affected, and you can switch it back on.
Owners, admins and developers can create and switch links; viewers can see them (Team). Links belong to a mode: a test link creates test invoices, which pay with the Complete the test payment button and move no money, and its page says “This is a test link. No money moves.”
What the customer sees
Section titled “What the customer sees”https://pay.intents.fi/l/{linkId} shows your name and logo, the price and the description, a
How many? field if the link allows a quantity, and Continue to payment. That creates the
invoice and takes the customer to the normal hosted checkout for it.
When the customer chooses, the price is replaced by an amount field in dollars, your suggestions under it, and the bounds (“Between $1.00 and $500.00”). The button names the amount (“Continue with $10.00”). An amount outside the bounds, or with more than two decimals, is refused before an invoice is made, and the page says why in plain words. If you have your own checkout domain, the link page is served there too, and only for your own links.
The invoice it creates
Section titled “The invoice it creates”Each visit’s invoice is an ordinary invoice:
- priced at the link’s amount times the quantity, with the description (and
× 3for a quantity of 3), or at the amount the customer chose, - paid to your default settlement address as it was when the invoice was created (Settlement),
- expiring on the usual clock,
- with
metadata.paymentLinkset to the link’s ID andmetadata.quantityto the quantity, so your webhook handler can tell where it came from. When the customer chose the amount,metadata.amountTypeis"custom"and the invoice’samountis what they chose.
It fires the same invoice.* webhooks as any other invoice. Fulfil from
invoice.paid, as always.
The fee works exactly as on any invoice, on the amount the customer chose: you receive
settlement.amountNet, that amount less 0.4%, and the fee is charged on top of the route. A
$12.34 tip, as invoice.paid delivers it:
{ "id": "evt_7NwQ2cLx9VbR4tKm", "type": "invoice.paid", "createdAt": "2026-11-25T14:02:41.000Z", "late": false, "data": { "id": "inv_8HtM3qWz6PxLc1Vn5Rb9Ky", "status": "paid", "mode": "live", "amount": "12.34", "currency": "USD", "description": "Tip jar", "settlement": { "asset": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "address": "0x6A3fB91c7D8e45A2b0C1fE97D3a8B52c4e7F10dA", "amountExpected": "12340000", "amountNet": "12290640" }, "fee": { "bps": 40, "amount": "49360" }, "metadata": { "paymentLink": "plink_7wQ3pZ9mKd2XsRv5LcNb8tHy4gFa6jEu", "quantity": "1", "amountType": "custom" }, "…": "…" }}Read the amount from data.amount (or data.settlement.amountNet for what you received), never
from the link: every payment on a tip jar can be different. As always, a receiver must tolerate
duplicates and events arriving out of order.
The API, for your own link page
Section titled “The API, for your own link page”Two public endpoints serve the link page, and you can call them from your own page instead. They accept browser calls from any origin.
What a payment link sells, for the link page
Section titled “What a payment link sells, for the link page”GET /v0/links/{id}
| Parameter | In | Required | Notes |
|---|---|---|---|
id |
path | yes |
curl https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEoconst response = await fetch("https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo", { method: "GET",});
if (!response.ok) { const { error } = await response.json(); throw new Error(`${error.code}: ${error.message}`);}const data = await response.json();import httpx
response = httpx.get( "https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo",)response.raise_for_status()data = response.json()| Status | Means |
|---|---|
200 |
The link |
404 |
Unknown or off |
One visit to a payment link: an invoice at the link’s price, or the customer’s amount
Section titled “One visit to a payment link: an invoice at the link’s price, or the customer’s amount”POST /v0/links/{id}/invoices
Takes the merchant’s publishable key (pk_), or no key: the link ID is its capability, and a link can only create the invoice the merchant priced, or, on a custom link, one at an amount the customer chose inside the merchant’s bounds. A key must match the link’s account and mode. Body (optional JSON, schema PaymentLinkInvoiceRequest): quantity, amount (custom links, required there), customerEmail.
| Parameter | In | Required | Notes |
|---|---|---|---|
id |
path | yes |
curl https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo/invoices \ -X POSTconst response = await fetch("https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo/invoices", { method: "POST",});
if (!response.ok) { const { error } = await response.json(); throw new Error(`${error.code}: ${error.message}`);}const data = await response.json();import httpx
response = httpx.post( "https://api.intents.fi/v0/links/plink_Vb3kT9qLmZ2xR8wNc4HfJpYs6dGa1uEo/invoices",)response.raise_for_status()data = response.json()| Status | Means |
|---|---|
201 |
Created; send the customer to url |
400 |
A bad quantity or amount, or a key from the other mode |
404 |
Unknown or off |
422 |
AMOUNT_OUT_OF_RANGE: outside the link’s minimum and maximum |
429 |
Too many from this IP, or on this custom-amount link |
The body is optional on a fixed link: quantity (1 to the link’s maximum; only 1 unless the
link allows a quantity) and customerEmail for a receipt.
A link where the customer chooses (amountType: "custom" in GET /v0/links/{id}, with
minAmount, maxAmount and suggestedAmounts) requires amount: a string in dollars with
at most two decimals, like "12.34", between minAmount and maxAmount. A JSON number is
refused, because it has already been through a float. On a fixed link, amount is refused rather
than ignored: the link’s price is yours, not the caller’s. On a custom link, amount in the
GET answer is only the amount the page starts with.
{ "amount": "12.34", "customerEmail": "fan@example.com" }``` Send the customer to the `url` it returns, or mountthe invoice in the [widget](/docs/checkout/widget) with its `invoiceId` and `clientSecret`.
**No key is needed.** The link's ID is long and random, and it can only ever create the invoiceyou priced, so it is safe to share. A publishable key (`pk_…`) in `Authorization: Bearer` isaccepted too, if it belongs to the link's account and mode: a key from another account gets`404`, and a key from the other mode gets `400 INVALID_REQUEST`. A secret `ik_` key never belongsin a browser.
| Answer | When ||---|---|| `404 NOT_FOUND` | the link does not exist or is switched off. The two are indistinguishable on purpose || `400 INVALID_REQUEST` | a quantity outside 1 to the maximum, or a key from the other mode. With `details.field: "amount"`: no amount on a link where the customer chooses, an amount that is not a two-decimal string, or any amount on a fixed link || `422 AMOUNT_OUT_OF_RANGE` | the customer's amount is outside the link's bounds; `details` carries `min` and `max` ([AMOUNT_OUT_OF_RANGE](/docs/errors/AMOUNT_OUT_OF_RANGE)) || `403 MERCHANT_RESTRICTED` | the merchant is not taking payments right now ([MERCHANT_RESTRICTED](/docs/errors/MERCHANT_RESTRICTED)) || `429 RATE_LIMITED` | more than 30 invoices from one IP address in an hour, with or without a key; or, on a link where the customer chooses, more than 300 invoices on that link in an hour |