API Documentation

Deposit APIs

1. Create Order

URL: https://api.zapupi.com/api/create-order

Method: POST

Content-Type: application/x-www-form-urlencoded

Required Parameters:

ParameterTypeDescription
token_keystringAPI token key for authentication
secret_keystringSecret key for authorization
amountintOrder amount (e.g. 100)
order_idstringUnique order ID (e.g. Abc123)

Optional Parameters:

ParameterTypeDescription
custumer_mobilestringCustomer's mobile number
redirect_urlstringPost-payment redirect URL (e.g. https://zapupi.com)
remarkstringRemark for order

Success Response:

{
  "status": "success",
  "message": "Order created successfully",
  "payment_url": "https://api.zapupi.com/instent-pay-WkFQVVBJNjZmM2M3OWJjMDVlZg",
  "order_id": "ORDER1234"
}

Failed Response:

{
  "status": "error",
  "message": "Invalid customer mobile."
}

2. Order Status

URL: https://api.zapupi.com/api/order-status

Method: POST

Content-Type: application/x-www-form-urlencoded

Required Parameters:

ParameterTypeDescription
token_keystringAPI token key
secret_keystringSecret key
order_idstringUnique order ID

Success Response:

{
  "status": "success",
  "data": {
    "custumer_mobile": "1234567890",
    "utr": "44345545555",
    "remark": "Your Note",
    "txn_id": "ZAPUPI66f10bd3c1f28",
    "create_at": "2024-09-23 08:33:55",
    "order_id": "Abc123",
    "status": "Success",
    "amount": "1000"
  }
}

Failed Response:

{
  "status": "error",
  "message": "Order not found"
}

Recharge APIs

1. Recharge API

URL: https://api.zapupi.com/api/recharge

Method: POST

Content-Type: application/x-www-form-urlencoded

Required Parameters:

ParameterTypeDescription
token_keystringAPI token key
secret_keystringSecret key
order_idstringOrder ID
numberstringMobile/DTH number
operator_codeintOperator code
amountintRecharge amount

Operators:

1. Jio
2. Airtel
3. Vi
4. BSNL Topup
5. BSNL Special
6. Airtel Digital DTH TV
7. Sun TV
8. TATA Play
9. Videocon DTH
10. Dish TV
11. Airtel Postpaid
12. BSNL Postpaid
13. VI Postpaid
14. JIO Postpaid
15. Google Redeem Code
16. Myntra E Gift Card
17. Amazon Prime
18. Zee5
19. Sony Liv
20. Disney+ Hotstar
21. OTT Play
22. Amazon Shopping Voucher
23. Amazon Fresh Voucher
24. Swiggy Voucher
25. Zomato Voucher

Success Response:

{
  "status": "success",
  "message": "NA",
  "data": {
    "number": "9720450911",
    "amount": "13",
    "status": "Failed",
    "operator": "1",
    "operator_name": "Jio",
    "order_id": "123456",
    "referance": "Unknown Error- Please Try Again Later"
  }
}

Failed Response:

{
  "status": "error",
  "message": "Invalid amount."
}

2. Recharge Status

URL: https://api.zapupi.com/api/recharge-status

Method: POST

Content-Type: application/x-www-form-urlencoded

Required Parameters:

ParameterTypeDescription
token_keystringAPI token key
secret_keystringSecret key
order_idstringRecharge order ID

Success Response:

{
  "status": "success",
  "data": {
    "order_id": "123456",
    "number": "9720450911",
    "create_at": "2025-03-31 13:27:05",
    "status": "Failed",
    "txn_ref": "failed",
    "amount": "0",
    "operator": "Jio"
  }
}

Failed Response:

{
  "status": "error",
  "message": "Recharge not found"
}