API REFERENCE
Consulter une commande
Paramètres
| Parameter | Type | Description | Obligatoire |
|---|---|---|---|
| data.trade_id | string | YabandPay订单编号 | ✓ |
| Paramètre | Type | Description | Obligatoire |
|---|---|---|---|
| user | String | UID du compte caissier ou super administrateur | Obligatoire |
| sign | String | Signature | Obligatoire |
| method | String | v3.QueryOrder | Obligatoire |
| time | Long | Timestamp | Obligatoire |
- Parameters | Paramètre | Type | Description | Obligatoire | |:--- |:--- |:--- |:--- | | trade_id | String | Numéro de commande YabandPay | Obligatoire |
Exemple de signature :
Paramètres triés et concaténés dans une chaîne de requête au format URL
"method=v3.QueryOrder&time=1728566835&trade_id=2eb629a8-96ad-d495-38f2-41f5bebf31cd&user=YOUR_CASHIER_UID"
Signer stringA avec secret_key
La signature obtenue est :
"YOUR_SIGNATURE"
Exemple de requête :
{
"user": "YOUR_CASHIER_UID",
"sign": "YOUR_SIGNATURE",
"method": "v3.QueryOrder",
"time": 1728566835,
"data": {
"trade_id": "2eb629a8-96ad-d495-38f2-41f5bebf31cd"
}
}
Exemple de réponse :
{
"status": true,
"code": "200",
"data": {
"transaction_info": {
"trade_id": "2eb629a8-96ad-d495-38f2-41f5bebf31cd",
"merchant_name": "Yaband Telecom B.V",
"store_name": "YabandPay",
"cashier_name": "YabandPay Test",
"pay_method": "online",
"sub_pay_method": "WeChat Pay",
"order_id": "YOUR_ORDER_ID",
"amount": "0.01",
"tip_amount": "0.01",
"currency": "EUR",
"settlement_amount": "0.01",
"settlement_currency": "EUR",
"exchange_rate": "1",
"description": "YabandPay Test",
"redirect_url": "https://yabandpay.com/",
"notify_url": "https://ordergoapi.yabandpay.com/api/Test/notify",
"state": "paid",
"time_out": "1440",
"amount_cny": "0.07",
"merchant_cost": "0.10",
"transaction_id": "4200002425202409032894611438",
"paid_at": "1725349108",
"yb_transaction_id": "b228f7d3-b56b-5210-d270-5e5f23690db0",
"icon_url": "https://partner.yabandpay.com/Public/Admin/image/wechat3x.png?v=202310201461",
"payer_profile": {
"payer_name": "UNKNOWN",
"payer_ip": "208.87.243.129",
"payer_bank_account": "451761***1527",
"issuer_name": "",
"expiry_month": "",
"expiry_year": "",
"par": "XXXXXXXXXXXXXXXXXXX"
},
"refund_info": [
{
"transaction_id": "20240903153820059756",
"refund_id": "20240903154342497308",
"m_refund_id": null,
"refund_time": "1725349422",
"state": "refunded",
"refund_amount": "0.01",
"refund_currency": "EUR",
"refund_description": "gary",
"notify_url": "null",
"demo": "",
"settlement_refund_amount": "0.01",
"settlement_refund_currency": "EUR",
"merchant_cost": "0.1",
"yb_transaction_id": "c07859aa-3d12-69d4-ef2f-a9556d9c4d33"
}
],
"createDate": "1725349082",
"user": "YOUR_CASHIER_UID"
}
},
"message": ""
}
Informations complémentaires :
Codes et descriptions des statuts des fonds :
| fund_flow_status | fund_flow_description |
|---|---|
| 0 | non compensé |
| 1 | compensé |
| 2 | réglé |
Descriptions des paramètres :
Pour les descriptions des paramètres de réponse, consultez Notifications asynchrones.
