Create a payment link
Payment Links
Create a payment link
OAuth scope: payment_link.write
Create a payment link for collecting payments from your customers.
This endpoint supports two types of payment links:
Basket payment links (CreateBasketPaymentLink):
- Include an
itemsarray with detailed item information, unit prices, and VAT rates - Use the
reusablefield to control whether the link can be used multiple times - Required fields:
items,reusable,potential_payment_methods
Invoice payment links (CreateInvoicePaymentLink):
- Include
invoice_id,invoice_number,debitor_name, andamountfields - Specifically designed for invoice payments
- Required fields:
invoice_id,invoice_number,debitor_name,amount,potential_payment_methods
POST
Create a payment link
Authorizations
Bearer authorization header: Bearer <token>, where <token> is the access token received from the authorization server at the end of the OAuth 2.0 flow.
Headers
Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.
Body
application/json
- CreateBasketPaymentLink
- CreateInvoicePaymentLink
Response
The payment link has been created successfully.