PonponPay

API Reference

PonponPay API documentation.

Base Information

Base URLhttps://api.ponponpay.com/api/v1/pay/sdk
AuthenticationAPI Key
Data FormatJSON

Authentication

All API requests require an API Key in the header:

HeaderDescription
X-API-KeyYour API Key

Create Order

POST /order/add

Request Parameters

ParameterTypeRequiredDescription
currencystringYesCurrency (USDT/USDC)
networkstringYesBlockchain network (tron/ethereum/bsc/solana etc.)
amountnumberYesOrder amount
mch_order_idstringNoYour merchant order ID, max 32 chars, auto-generated if not provided
notify_urlstringNoPayment success callback URL
redirect_urlstringNoRedirect URL after payment completion

Response Parameters

ParameterTypeDescription
trade_idstringPonponPay transaction ID
currencystringCurrency
networkstringBlockchain network
amountnumberOrder amount
actual_amountnumberActual payment amount (4 decimal places)
addressstringReceiving wallet address
expiration_timenumberExpiration timestamp (seconds)
payment_urlstringPayment page URL

cURL Example

curl -X POST 'https://api.ponponpay.com/api/v1/pay/sdk/order/add' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: your_api_key' \
  -d '{
    "mch_order_id": "ORDER_123456",
    "currency": "USDT",
    "network": "tron",
    "amount": 100.00,
    "notify_url": "https://your-site.com/callback",
    "redirect_url": "https://your-site.com/success"
  }'

Response Example

{
  "code": 0,
  "message": "success",
  "data": {
    "trade_id": "PP202412110001",
    "currency": "USDT",
    "network": "tron",
    "amount": 100.00,
    "actual_amount": 100.0001,
    "address": "TXxx...xxx",
    "expiration_time": 1704067200,
    "payment_url": "https://pay.ponponpay.com/checkout/PP202412110001"
  }
}

Query Order

POST /order/detail

Request Parameters

ParameterTypeRequiredDescription
trade_idstringNo*PonponPay transaction ID
mch_order_idstringNo*Merchant order ID

* Either trade_id or mch_order_id must be provided

cURL Example

curl -X POST 'https://api.ponponpay.com/api/v1/pay/sdk/order/detail' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: your_api_key' \
  -d '{
    "trade_id": "PP202412110001"
  }'

Response Example

{
  "code": 0,
  "message": "success",
  "data": {
    "trade_id": "PP202412110001",
    "mch_order_id": "ORDER_123456",
    "currency": "USDT",
    "network": "tron",
    "amount": 100.00,
    "actual_amount": 100.0001,
    "status": "paid",
    "address": "TXxx...xxx",
    "tx_hash": "abc123...",
    "created_at": 1704063600,
    "paid_at": 1704064200
  }
}

Error Codes

CodeDescription
0Success
10001Invalid parameters
10002Invalid signature
10003Order not found