Payment Links
Create and manage Payment Links
Create, list, retrieve, activate and deactivate reusable checkout links.
Create a link
POST /api/v1/payment_links
curl https://api-prod.paybytoken.io/api/v1/payment_links \
-X POST \
-H "Authorization: Bearer $PAYBYTOKEN_SECRET_KEY" \
-H "Idempotency-Key: payment-link:starter-pack" \
-H "Content-Type: application/json" \
-d '{
"title": "Starter pack",
"currency": "usd",
"amount_mode": "fixed",
"line_items": [
{
"quantity": 1,
"unit_amount": "50.00",
"product_data": { "name": "Starter pack" }
}
],
"supported_tokens": [
{ "chain": "base", "currency": "USDC" }
],
"collect_customer_email": "auto",
"metadata": { "catalog_id": "starter_pack" }
}'For customer_entered, omit line items and configure minimum_amount, optional
maximum_amount, and optional suggested_amounts. Monetary values are decimal strings.
Merchant operations
| Method | Endpoint | Purpose |
|---|---|---|
GET | /api/v1/payment_links | List links by active state or amount mode. |
GET | /api/v1/payment_links/:id | Retrieve the current version and public URL. |
POST | /api/v1/payment_links/:id/activate | Allow new Checkout Sessions. |
POST | /api/v1/payment_links/:id/deactivate | Stop new sessions without canceling existing ones. |
Mutations require an Idempotency-Key. Treat the public URL as shareable customer content, but
keep the merchant API key and internal link-management endpoints on your server.
Did this page answer your question?
Your feedback helps us improve the integration path.