Skip to Content
API 文档

API 文档

PonponPay API 接口说明。

基础信息

项目
Base URLhttps://api.ponponpay.com/api/v1/pay/sdk
认证方式API Key
数据格式JSON

认证

所有 API 请求需要在 Header 中携带 API Key 进行身份验证:

X-API-Key: your_api_key

创建订单

POST /order/add

请求参数

参数类型必填说明
currencystring币种(USDT/USDC)
networkstring区块链网络(tron/ethereum/bsc/solana 等)
amountnumber订单金额
mch_order_idstring商户订单号,最大32位
notify_urlstring支付成功回调地址
redirect_urlstring支付完成后重定向地址

响应参数

参数类型说明
trade_idstringPonponPay 交易号
currencystring币种
networkstring区块链网络
amountnumber订单金额
actual_amountnumber实际需支付金额
addressstring收款钱包地址
expiration_timenumber过期时间戳(秒)
payment_urlstring支付页面 URL

cURL 示例

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

查询订单

POST /order/detail

参数类型必填说明
trade_idstring否*PonponPay 交易号
mch_order_idstring否*商户订单号

* trade_id 和 mch_order_id 至少传一个

错误码

错误码说明
0成功
10001参数错误
10002签名错误
10003订单不存在
Last updated on