Request to create a deposit

Request to create a deposit

This section provides information on the most popular request - deposit creation request.

In order for the request to be created correctly, it is necessary to comply with the documentation requirements: all required fields must be present in the request, field validation must be observed.

In a deposit request, the client must send the following information:

  • project_id - project id in the A-pay platform, the parameter can be found in the projects table next to the project name.

  • amount - deposit amount in integer

  • currency - currency of payment system

  • payment_system - name of payment system from A-pay platform

  • custom_transaction_id - unique transaction identifier in the client's system

  • custom_user_id - unique user identifier in the client's system

  • data - additional data depending on the . To find out what data should be sent, you should click on data and select the necessary PS. These data will be specified here

Each payment system requires certain information to be sent. Please read our API carefully!

Responses

Below is information about our server's responses to such requests, as well as the data that our server sends to the client in response. The response can be both successful and unsuccessful.

Our server sends the following data to the client in the request:

  • success - a parameter that is responsible for whether the response is successful or not

  • status - status of deposit creation

  • order_id - our internal unique order, which is assigned to each transaction

  • data - additional data that depends on the PS. To find out what data should be sent, you need to click on data and select the desired PS. This data will be spelled out here in the response section. In this case, it is a link to the deposit payment

Each payment system returns different information to the client. Please read our API carefully!

Examples of the responses:

Success
{
  "success": true,
  "status": "Pending",
  "order_id": "7fa13dbc3b79e05e",
  "data": {
    "paymentpage_url": "string"
  }
}
Error
{
  "success": false,
  "message": "Invalid request",
  "status": "Failed",
  "code": 400,
  "order_id": "7fa13dbc3b79e05e"
}

Last updated