Payment Links

Create a Payment Link and pass through all the payment information, like the amount, currency, country and reference.

Authorizations

bearer

#
HTTP: bearer #

HTTP Authorization Scheme: bearer

Bearer format: JWT

header Parameters #
AuthorizationrequiredstringBearer token (API Key).
Request Body schema: application/json #

Request body for creating a Payment Link.

amountrequirednumber >= 1 The payment amount. The exact format depends on the currency.
currencyrequiredstring = 3 characters The three-letter ISO currency code of the payment.
billingrequiredobjectThe billing details.
payment_typestring Default: “Regular” Enum:”Regular””Recurring”This must be specified for card payments where the cardholder is not present.
payment_ipstring <= 45 characters The customer’s IP address. Only IPv4 and IPv6 addresses are accepted.
billing_descriptorobjectAn optional description that is displayed on the customer’s statement identifying a purchase.
referencestring <= 50 characters A reference you can use to identify the payment (max 50 chars, Amex: 30, iDEAL: 35, Benefit: unique alphanumeric).
descriptionstring <= 100 characters A description of the payment (max 100 chars).
display_namestringThe merchant name to display to customers on the checkout page.
processing_channel_idstring^(pc)_(\w{26})$The processing channel to be used for the payment.
amount_allocationsArray of objectsThe sub-entities that the payment is being processed on behalf of.
expires_innumber [ 1 .. 5184000 ] Default: 86400The time for which the link remains valid, in seconds.
customerobjectThe customer’s details.
shippingobjectThe address any products are being sent to.
recipientobjectInformation about the recipient of the payment’s funds.
processingobjectUse the processing object to influence or override the data sent during card processing.
allow_payment_methodsArray of stringsSpecifies which payment method options to present to the customer.
disabled_payment_methodsArray of stringsSpecifies which payment method options to not present to the customer.
productsArray of objectsContains details about the products in the order.
metadataobjectAllows you to store additional information about the transaction. Only one level of depth is allowed.
3dsobjectInformation required for 3D Secure payments.
riskobjectConfigures the risk assessment performed during payment processing.
customer_retryobjectConfigures the parameters for customer retries.
senderobjectThe sender of the payment.
return_urlstring <= 255 characters If provided, the success page will include a button that redirects your customer to the provided URL.
localestring Default: “en-GB”Creates a translated version of the page in the specified language.
capturebooleanWhether to capture the payment (if applicable).
capture_onstringA timestamp (ISO 8601 code) that determines when the payment should be captured. Providing this field will automatically set capture to true.
instructionobjectDetails about the payment instruction.
payment_method_configurationobjectConfiguration options for specific payment methods.
Responses #
201 Create Payment Link Page
Response Schema: application/json #
idrequiredstringThe unique identifier for a Payment Link.
_linksrequiredobjectThe links related to the Payment Link session.
expires_onrequiredstring <date-time> The date and time when the Payment Link expires.
referencerequiredstringA reference you can later use to identify this payment, such as an order number.
warningsArray of objectsWarnings related to the allow_payment_methods object in the request.

401 Unauthorized

422 Invalid data was sent.
Response Schema: application/json #
request_idrequiredstringThe unique request identifier.
error_typerequiredstringThe error type.
error_codesrequiredArray of stringsThe error codes.

#

Retrieve details about a specific Payment Link using its ID returned when the link was created. In the response, you will see the status of the Payment Link.

Authorizations

bearer

#
HTTP: bearer #

HTTP Authorization Scheme: bearer

Bearer format: JWT

path Parameters #
idrequiredstring = 15 characters ^pl_[A-Za-z0-9_-]{12}$The unique identifier for a Payment Link.
header Parameters #
Authorizationrequiredstring
Responses #
200 Payment Link details retrieved successfully
Response Schema: application/json #
idrequiredstringThe unique identifier for a Payment Link.
statusrequiredstring Enum:”Active””Payment Received””Expired”The status of the Payment Link.
amountrequirednumberThe original payment amount.
currencyrequiredstringThe three-letter ISO currency code of the payment.
expires_onrequiredstring <date-time> The date and time when the Payment Link expires.
created_onrequiredstring <date-time> The date and time when the Payment Link was created.
billingrequiredobjectThe billing details.
_linksrequiredobjectThe links related to the Payment Link.
payment_idstringUnique identifier for an in progress or completed payment for this Payment Link.
referencestringYour reference for the payment.
descriptionstringA description of the payment.
processing_channel_idstring^(pc)_(\w{26})$The processing channel to be used for the payment.
amount_allocationsArray of objectsThe sub-entities that the payment is being processed on behalf of.
customerobjectThe customer’s details.
shippingobjectThe address any products are being sent to.
productsArray of objectsContains details about the products in the order.
metadataobjectAny additional information stored at the point of creation.
localestring Enum:”ar””da-DK””de-DE””el””en-GB””es-ES””fi-FI””fil-PH””fr-FR””hi-IN””id-ID””it-IT””ja-JP””ms-MY””nb-NO””nl-NL””pt-PT””sv-SE””th-TH””vi-VN””zh-CN””zh-HK””zh-TW”The language that the Payment Link page is displayed in.
return_urlstring <= 255 characters If provided, the success page will include a button that redirects your customer to the provided URL.

401 Unauthorized

404 Payment Link session not found
Response Schema: application/json #
request_idrequiredstringThe unique request identifier.
error_typerequiredstringThe error type.
error_codesrequiredArray of stringsThe error codes.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top