Banking onramp flow API (temporarily suspended)
Last updated
Last updated
In order to integrate the banking payment flow it is required to enable a customer to do the following:
The customer should be able to pass a .
The customer should be able to obtain a virtual IBAN/BIC (EUR) or Account Number/Sort Code (GBP) linked to this customer ID.
The customer should be able to retrieve the bank account data to send funds to.
The customer should be able to create an invoice to lock the exchange prices.
Each of the steps is implemented within a separate API endpoint on the XGateway side.
KYC is mandatory and is done by a third-party vendor. XGateway operates as a relayer, doesn't store user data, and only forwards the user information. The API to use is described below. Note that a successful response to this request doesn't mean the KYC is passed. Usually, KYC takes seconds, but for some users, the manual KYC done by a vendor may take hours
Invoice creation is an optional step, that should be done to ensure the best user experience - deposits with locked exchange rates. An invoice can be created using the .
Please read page before working with invoices. The invoice creation API uses several parameters that need explanation.
In case a user does a deposit for an amount that differs from the amount in the invoice - XGateway will still account the funds properly and send the call back to the merchant.
To create a customer bank account, initiate the KYC verification process by collecting necessary customer information and documents through the request body. It supports both one-sided and two-sided KYC documents, such as a passport (one-sided) or a driver's license (two-sided). The method validates the provided information, uploads the necessary documents, and finally initiates the KYC verification process.
An account should be created and assigned to a customer to send funds using banking payments. When done, all funds sent to this bank account are considered to be deposits in the XGateway system for the linked customer.
First, create a bank account associated with the external customer ID.
This data will be needed at the very end of the flow.
Then upload all the necessary data to pass the KYC process.
When the data is uploaded, initiate the KYC process.
If the uploaded data is not correct, the following two APIs can be used to correct the information - either the text items or the files of the documents.
It is possible to retrieve the data about the bank account using this API.
In order to check the status of the KYC process for a specific account use this API.
If the status of the bank account in the response is PENDING, you should wait for a special Bank Account callback, which will be sent to your system once the bank account is activated. this page for more details.
In order to create a fixed rate invoice use this .
When an invoice is created, and the KYC is successfully passed, show the customer the banking information received on the first step of this guide as a result of bank account creation. This bank account should be used by the customer to send money to. Every deposit will be followed by a from the XGateway to your system.
Starting a KYC (Know Your Customer) verification with the current documents uploaded.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
Requirements to start the KYC verification process:
Retrieves bank transfer details for all accounts of a specified customer.
This endpoint fetches the bank transfer details for all accounts associated with a given customer ID.
It ensures that the requester has appropriate authorization before providing access to the sensitive account information.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
The response includes an array of accounts with following properties:
Retrieves the details of a Know Your Customer (KYC) application for a specified customer. This includes the KYC status, any missing documents, and details about any issues or rejections in the KYC process.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
Registers a new bank transfer account for a customer associated with the given external ID.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
Initiates the KYC (Know Your Customer) verification process for a customer's bank transfer account.
This endpoint is responsible for starting the KYC verification process by collecting necessary customer information and documents through the request body. It supports both one-sided and two-sided KYC documents, such as a passport (one-sided) or a driver's license (two-sided). The method validates the provided information against a predefined schema, creates KYC applicants, uploads the necessary documents, and finally initiates the KYC verification process.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
Updates the bank transfer profile details for a specified customer. This endpoint allows for partial updates; thus, only the fields provided in the request body will be updated.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
Uploads a KYC (Know Your Customer) document for a specified customer to assist in their KYC verification process.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.