Advanced features of Invoice creation
The Invoice creation API
The Invoice creation API endpoint is a complex all-in-one endpoint, that routes a customer to a corresponding payment flow based on the parameters sent be the merchant.
This API endpoint accepts several optional parameters that may be used to streamline the customer experience.
The full API endpoint specification is available at the end of this page.
Below there are the features supported by the Invoice creation API.
Applications
The request to create an invoice may specify application using applicationId
. This is an optional parameter used to customise the look and feel of the checkout page. Every application contains its own settings set to tailor the checkout page for different needs (example - different brands under the same merchant).
Pre-populate the form for KYC
The KYC flow through the Checkout V2 supports pre-population of fields in case your service already has the personal data of the customers. This function is only available for banking onramp. In order to pre-populate the form add the information into the URL parameters (query parameters) when working with an invoice. See the example below:
Displayed currencies
It is possible to show to a customer a subset of supported currencies. To do this pass the displayCurrencies
array.
Dynamic redirections
The API supports redirectUrl
parameter. The provided URL is used to redirect a customer in case of a failed or successful deposit.
The Invoice creation API specification
The customer identifier is a mandatory field, which must contain the id of the customer, used in your system. This id is sent back in the callbacks on every deposit in order to link deposits with corresponding customers.
The order identifier is an optional parameter, which will be sent back to your system with a callback for the deposit linked to this exact invoice.
Headers
x-api-key*
String
Your API key
Session Time To Live
Invoices at the moment of creation have no expiration time. After invoice activation on the checkout page (when the customer selects the payment currency and clicks "Proceed"), the system will set an expiration time according to invoice TTL. Once an invoice has expired, the link will show an error.
You can make several requests for the same customer with a different amount/base currency and get a different checkout link back.
Under and over payment
Last updated