A-pay Documentation
  • Documentation
    • ❇️About A-pay Platform
    • 💵Supported currencies
  • API Documentation
    • 🚀Start Integration
    • 🈁Getting data about PS
    • 📃Payment Page Integration
      • Payment Gateway
    • 🖥️API Integration
      • 💰Deposit
        • Request to create a deposit
        • Deposit Activation
        • Deposit resend OTP
        • Deposit information
      • 📤Withdrawal
      • 🔍Lost transaction
        • Create lost transaction
        • Lost transaction information
    • 🔙Postback
    • 📈Settlement
    • ❗Errors
  • 👨‍💻OpenAPI Docs
Powered by GitBook
On this page
  1. API Documentation
  2. API Integration
  3. Deposit

Request to create a deposit

PreviousDepositNextDeposit Activation

Last updated 20 days ago

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, 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

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 the deposit creation

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

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"
}

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

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 in the response section. In this case, it is a link to the deposit payment

🖥️
💰
here
here
  • Request to create a deposit
  • POSTRequest to create a deposit
  • Responses

Request to create a deposit

post

Deposit creation.

When the deposit is confirmed, a callback request will be sent to the client's application handler with the Deposit webhook body

Authorizations
Query parameters
project_idnumberRequired

Project ID in the A-Pay system

Example: 123
Body
amountintegerRequired

Deposit amount

Example: 10
currencystring · enumRequired
Currency Payment systems
INR upi_fast, upi_fast_v, upi_fast_qr, upi_p2p, upi_a, paytm, phonepe, imps, imps_top, upi_link, upi_push, phonepe_fast, upi_fast_vip, imps
BDT nagad_api_v, bkash_a, apaybdt, upay, bkash_b, nagad_a, nagad_b, upay_w, bkash_p2p
PKR bankalfalah, easypaisa, jazzcash_l, nayapay_l, jazzcash_fast, pkr_w, jazzcash
KES mpesa
MMK wavepay_l
TND d17_l, flouci, flouci_l
BRL pix_p2p
MXN spei_p2p
KHR wing_l, ababank
NPR esewa, khalti, khalti_l, imepay_l
LKR ipay_l
ETB etb_fast
Example: INRPossible values:
payment_systemstring · enumRequired

Name of the payment system in A-Pay

Example: mpesaPossible values:
custom_transaction_idstring · max: 200Optional

Transaction ID in the client's system

Example: custom123
custom_user_idstring · max: 200Required

User ID in the client's system. Must be unique for each user

Example: user123
webhook_idstring · min: 7 · max: 7Optional

Id of a webhook that will be used to send a postback. If not filled then default webhook url will be used

Example: 42798
dataone ofRequired

Data depending on the specific payment system

or
or
or
or
object · upi_fastOptional

UPI Fast data (empty)

For example: "data": {}

Currency: INR

or
object · upi_fast_vOptional

UPI Fast V data (empty)

For example: "data": {}

Currency: INR

or
or
object · upi_p2pOptional

UPI-p2p data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: INR

or
object · upi_fast_qrOptional

UPI Fast QR data (empty)

For example: "data": {}

Currency: INR

or
object · paytmOptional

PayTM data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: INR

or
object · phonepeOptional

PhonePe data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: INR

or
or
or
or
or
object · upi_linkOptional

UPI Link data (empty)

For example: "data": {}

Currency: INR

or
or
or
object · easypaisa_lOptional

Easypaisa-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: PKR

or
or
object · jazzcash_lOptional

Jazzcash-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: PKR

or
object · wavepay_lOptional

Wavepay-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: MMK

or
object · d17_lOptional

D17-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: TND

or
object · pix_p2pOptional

Pix-p2p data (empty)

For example: "data": {}

Currency: BRL

or
object · spei_p2pOptional

Spei-p2p data (empty)

For example: "data": {}

Currency: MXN

or
object · phonepe_fastOptional

Phonepe_fast data (empty)

For example: "data": {}

Currency: INR

or
object · upi_fast_vipOptional

UPI Fast VIP data (empty)

For example: "data": {}

Currency: INR

or
object · wing_lOptional

Wing-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: KHR

or
or
or
object · nayapay_lOptional

Nayapay-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: PKR

or
object · ababankOptional

Ababank data (empty)

For example: "data": {}

Currency: KHR

or
or
or
object · ipay_lOptional

Ipay-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: LKR

or
object · impsOptional

Imps data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: INR

or
or
or
object · flouci_lOptional

Flouci-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: TND

or
object · imepay_lOptional

ImePay-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: NPR

or
object · khalti_lOptional

Khalti-l data (empty)

This deposit requires activation Deposit activation

For example: "data": {}

Currency: NPR

or
object · bkash_p2pOptional

Bkash P2P data (empty)

For example: "data": {}

Currency: BDT

Responses
200
OK
application/json
Responseone of
or
400
Error
application/json
post
POST /Remotes/create-deposit?project_id=1 HTTP/1.1
Host: <domain>
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 176

{
  "amount": 10,
  "currency": "INR",
  "payment_system": "mpesa",
  "custom_transaction_id": "custom123",
  "custom_user_id": "user123",
  "webhook_id": 42798,
  "data": {
    "phone_number": "254712345678"
  }
}
{
  "success": true,
  "status": "Pending",
  "order_id": "7fa13dbc3b79e05e",
  "data": {
    "paymentpage_url": "text"
  }
}