Create payment link

Generates a payment link for an invoice from the invoice ID.

Authentication

requestTokenstring
API Key authentication via header

Path parameters

idInvoiceintegerRequired
Invoice ID

Headers

idempotencyKeystringOptional
A unique ID you can include to prevent duplicating objects or transactions if a request is sent more than once. This key is not generated in Payabli, you must generate it yourself.

Query parameters

amountFixedenumOptionalDefaults to true

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

Allowed values:
mail2stringOptional

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

Request

This endpoint expects an object.
contactUsobjectOptional
ContactUs section of payment link page
invoicesobjectOptional
Invoices section of payment link page
messageBeforePayingobjectOptional
Message section of payment link page
notesobjectOptional
Notes section of payment link page
pageobjectOptional
Page header section of payment link page
paymentButtonobjectOptional
Payment button section of payment link page
paymentMethodsobjectOptional
Payment methods section of payment link page
payorobjectOptional

Customer/Payor section of payment link page

reviewobjectOptional
Review section of payment link page
settingsobjectOptional
Settings section of payment link page

Response

Success
isSuccessboolean

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

responseDatastring

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

responseTextstring

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

Errors

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