Manage Payment Links
Learn how to generate, send, and manage payment links via the API
Use Payabli’s payment link functions to generate customized payment links from invoices and send them directly to customers for payment. Use payment links to create payment requests with your accepted payment methods, branding, and invoice details without having to build or host your own payment pages. Payment links look great in email and on mobile by default, so you can focus on getting paid.
Considerations
Keep these considerations in mind when working with payment links:
- You can create payment links for invoices created via the API.
- If you create and send an invoice from PartnerHub or PayHub, a payment link is automatically created for the invoice.
- You can send payment links via email or SMS (if SMS is enabled for your account).
- A payment link’s URL structure follows a specific pattern: base URL + entrypoint identifier + payment link ID.
Generate a payment link
Send a POST request to /api/PaymentLink/{idInvoice}
to create a payment link for an invoice. See the API reference for full documentation.
This example creates a payment link for the invoice with ID 329
and includes custom branding and payment options.
Send a payment link
Send a POST request to /api/PaymentLink/push/{payLinkId}
to deliver a payment link to a customer via email or SMS. See the API reference for full documentation.
Pay by SMS is an add-on feature. Before you can start sending payment links by SMS, the Payabli team must configure SMS sending for your organization. Contact us for more information.
This example sends a payment link via email to the customer and an additional recipient, with a PDF invoice attached. If SMS is enabled, you can also send payment links via SMS.
Get payment link details
Send a GET request to /api/PaymentLink/{payLinkId}
to retrieve information about a specific payment link. See the API reference for full documentation.
This example retrieves details for the payment link with ID 332-c277b704-1301
.
Update a payment link
Send a PUT request to /api/PaymentLink/{payLinkId}
to modify an existing payment link’s details. See the API reference for full documentation.
This example updates the payment link with ID 332-c277b704-1301
with new payment button text and notes.
Response format
Most payment link operations return a standardized response format, where responseData
contains the ID.
The GET operations return either the details of a specific payment link or a list of payment links. See the endpoint references for detailed response examples.
Was this page helpful?