Create payment link from invoice

View as MarkdownOpen in Claude
Generates a payment link for an invoice from the invoice ID. The payment page configuration blocks (`logo`, `page`, `paymentMethods`, `review`, `messageBeforePaying`, `paymentButton`, `notes`, `contactUs`, and `settings`) are optional. When you omit a block, Payabli applies a default rather than hiding it. The block is enabled at a fixed display order, so the generated page stays complete and branded. To hide a section, send the block explicitly with `enabled` set to `false`. An explicit value is always honored and is never replaced by a default. For each block's default, see its description in the request body.

Path parameters

idInvoiceintegerRequired
Invoice ID

Headers

idempotencyKeystringOptional

Optional but recommended A unique ID that you can include to prevent duplicating objects or transactions in the case that a request is sent more than once. This key isn’t generated in Payabli, you must generate it yourself. This key persists for 2 minutes. After 2 minutes, you can reuse the key if needed.

Query parameters

amountFixedbooleanOptionalDefaults to true

Indicates whether customer can modify the payment amount. A value of true means the amount isn’t modifiable, a value false means the payor can modify the amount to pay.

mail2stringOptional

List of recipient email addresses. When there is more than one, separate them by a semicolon (;).

Request

This endpoint expects an object.
invoicesobjectRequired

Invoices section of payment link page. Required. Omitting it returns a 400 error with code 7045.

contactUsobjectOptional
Contact us section of payment link page. If omitted, this block is enabled at display order 11.
messageBeforePayingobjectOptional
Message section of payment link page. If omitted, this block is enabled at display order 5.
notesobjectOptional
Notes section of payment link page. If omitted, this block is enabled at display order 10.
pageobjectOptional
Page header section of payment link page. If omitted, this block is enabled at display order 2.
paymentButtonobjectOptional
Payment button section of payment link page. If omitted, this block is enabled at display order 6, with the label "Pay Now".
paymentMethodsobjectOptional
Payment methods section of payment link page. If omitted, this block is enabled at display order 3, with all payment methods enabled except RDC.
payorobjectOptional

Customer/Payor section of payment link page

reviewobjectOptional
Review section of payment link page. If omitted, this block is enabled at display order 4.
settingsobjectOptional

Settings section of payment link page. If omitted, defaults are applied, including page color #10a0e3 and language en.

Response

Success
isSuccessboolean

Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.

responseTextstring

Response text for operation: ‘Success’ or ‘Declined’.

responseDatastringOptional

If isSuccess = true, this contains the payment link identifier. If isSuccess = false, this contains the reason of the error.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error