Authorizations
Your secret API key. Keep this secure and never expose it in client-side code.
Body
Payment link creation data
Display title for the payment link. This appears on the checkout page and in customer communications.
3 - 100
"Premium Subscription"
Unique URL slug for the payment link. Can be a full URL or just the path segment. Must be unique within your account.
"premium-subscription"
Type of the payment link
INVOICE
, PRODUCT
, COLLECTION
, DONATION
"PRODUCT"
Whether to allow quantity adjustment
true
Whether to collect tax
true
Whether to collect address
true
Whether to allow mobile payment
true
Currency
usdc
, eurc
"usdc"
Detailed description of what the customer is purchasing. Supports markdown formatting.
500
"Get access to all premium features with our monthly subscription plan. Includes priority support and advanced analytics."
Cover image URL
"https://example.com/images/premium-subscription.jpg"
Amount for the payment link
x >= 0.01
29.99
Payment for ID
"sub_123456789"
Customer ID
"123e4567-e89b-12d3-a456-426614174002"
Array of products in the payment link
[
{
"productId": "123e4567-e89b-12d3-a456-426614174003",
"quantity": 1
},
{
"productId": "123e4567-e89b-12d3-a456-426614174004",
"quantity": 2
}
]
Whether the payment link is for all products
false
Tax ID
"123e4567-e89b-12d3-a456-426614174005"
Whether to limit payments
true
Maximum number of payments
x >= 1
100
Custom fields
{
"customField1": "value1",
"customField2": "value2"
}
Expiration date
"2024-12-31T23:59:59Z"
Response
The payment link has been successfully created.