Request to create a deposit
Request to create a deposit
This section provides information on the most popular request - deposit creation request.
Deposit creation.
When the deposit is confirmed, a callback request will be sent to the client's application handler with the Deposit webhook body
Project ID in the A-Pay system
1234567Deposit amount
Payment systems support different amount formats. integer or number
10Currencies that accept integer type
Currencies that accept number type
Payment system currency
| Currency | Payment systems | Decimal places |
|---|---|---|
| ARS | cvu_fast_p2p, cvu_p2p, mercado_ars_p2p | 0 |
| BDT | apaybdt, bangla_qr, bkash_a, bkash_api_v, bkash_b, bkash_p2p, nagad_a, nagad_api_v, nagad_b, nagad_p2p, p2p_rocket, tap_p2p, upay | 0 |
| BHD | stcpay_p2p | 3 e.g. 0.001 |
| BOB | veripagos_fast, yape_bob_p2p | 0 |
| BRL | pix_p2p | 0 |
| EGP | egp_card, egp_fast, egp_tel, egp_tel_fast, number_wallet_p2p | 0 |
| ETB | cbebirr_p2p, etb_fast, etb_mpesa_p2p, etb_p2p, telebirr_fast_p2p | 0 |
| GNF | orange_gin_p2p | 0 |
| GTQ | fri_p2p | 2 e.g. 0.01 |
| INR | imps, inr_p2c, inr_p2p, paytm, phonepe, phonepe_fast, upi_a, upi_fast, upi_fast_qr, upi_fast_v, upi_fast_vip, upi_link, upi_p2p, upi_push | 0 |
| JMD | lynk_p2p, scotiabank_p2p | 0 |
| KES | mpesa | 0 |
| KHR | ababank, wing_l | 0 |
| LKR | ipay_fast, ipay_l, lkr_banktransfer, lkr_qr, paygo_p2p | 0 |
| MMK | kbzpay_p2p, wavepay_l | 0 |
| MXN | spei_p2p | 0 |
| NIO | ach_p2p | 2 e.g. 0.01 |
| NPR | esewa, esewa_p2p, fonepay_qr, imepay_l, khalti, khalti_l | 0 |
| PEN | yape_pen_p2p | 0 |
| PKR | bankalfalah, easypaisa, easypaisa_l, jazzcash, jazzcash_fast, jazzcash_l, nayapay_l, pkr_bt_p2p, raast_p2p | 0 |
| PYG | bancard_qr, itau_p2p, tigo_p2p | 0 |
| TND | d17_l, flouci, flouci_l | 0 |
| USD | banistmo_p2p, bcgeneral_p2p, yappy_p2p | 2 e.g. 0.01 |
| UYU | brou_p2p, mercado2_uyu_p2c, mercado_uyu_p2c, prex_p2p | 0 |
| XOF | moov_mli_p2p, orange_mli_p2p, orange_sen_p2p, wave_mli_p2p, wave_sen_p2p | 0 |
BDTPossible values: Name of the payment system in A-Pay
bkash_bPossible values: Transaction ID in the client's system. Must be unique. Optional
custom123User ID in the client's system. Must be unique for each user
user123Id of a webhook that will be used to send a postback. If not filled then default webhook url will be used. Optional
42798Data depending on the specific payment system
Ababank data (empty)
For example: "data": {}
Currency: KHR
ACH Lafise P2P data (empty)
For example: "data": {}
Currency: NIO
Bancard QR data (empty)
For example: "data": {}
Currency: PYG
Banistmo P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: USD
Bcgeneral P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: USD
BROU P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: UYU
CVU Fast P2P data (empty)
For example: "data": {}
Currency: ARS
D17-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: TND
Easypaisa-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: PKR
eSewa P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: NPR
ETB P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: ETB
Flouci-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: TND
FRI p2p data (empty)
For example: "data": {}
Currency: GTQ
ImePay-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: NPR
Imps data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: INR
INR-p2c data (empty)
For example: "data": {}
Currency: INR
INR-p2p data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: INR
Ipay-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: LKR
Jazzcash-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: PKR
KBZpay P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: ММК
Khalti-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: NPR
lkr_banktransfer data (empty)
For example: "data": {}
Currency: LKR
Lanka QR data (empty)
For example: "data": {}
Currency: LKR
Lynk P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: JMD
Mercado2 UYU P2C data (empty)
For example: "data": {}
Currency: UYU
Nayapay-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: PKR
Pay&Go P2P data (empty)
For example: "data": {}
Currency: LKR
PayTM data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: INR
PhonePe data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: INR
Phonepe_fast data (empty)
For example: "data": {}
Currency: INR
Pix-p2p data (empty)
For example: "data": {}
Currency: BRL
Prk Bt P2P data (empty)
This deposit requires activation Deposit activation by attachment
For example: "data": {}
Currency: PKR
Scotiabank data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: JMD
Spei-p2p data (empty)
For example: "data": {}
Currency: MXN
TAP-p2p data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: BDT
UPI Fast data (empty)
For example: "data": {}
Currency: INR
UPI Fast QR data (empty)
For example: "data": {}
Currency: INR
UPI Fast V data (empty)
For example: "data": {}
Currency: INR
UPI Fast VIP data (empty)
For example: "data": {}
Currency: INR
UPI Link data (empty)
For example: "data": {}
Currency: INR
UPI-p2p data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: INR
Veripagos Fast data (empty)
For example: "data": {}
Currency: BOB
Wavepay-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: MMK
Wing-l data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: KHR
Yape Bob P2P data (empty)
For example: "data": {}
Currency: BOB
Yape Pen P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: PEN
Yappy P2P data (empty)
This deposit requires activation Deposit activation
For example: "data": {}
Currency: USD
OK
Error
Unauthorized
POST /Remotes/create-deposit?project_id=1 HTTP/1.1
Host: <domain>
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 149
{
"amount": 10,
"currency": "BDT",
"payment_system": "bkash_b",
"custom_transaction_id": "custom123",
"custom_user_id": "user123",
"webhook_id": 42798,
"data": {}
}{
"success": true,
"status": "Pending",
"order_id": "7fa13dbc3b79e05e",
"data": {
"qr_code": "text",
"paymentpage_url": "text"
}
}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, and 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 the payment system
payment_system - name of the 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 PS. To find out what data should be sent, you should click on data and select the necessary PS. These data will be specified here
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 the 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
Examples of the responses:
Last updated