GET /api/v1/trades/:trade
| Key | Value |
|---|
| Accept | application/json |
| Key | Type | Required | Sign | Description |
|---|
| trade | string | Yes | No | The transaction ID you provided or DaYangPay provided. |
| Key | Type | Required | Sign | Description |
|---|
| client_key | string | Yes | Yes | The API access key. |
| signature | string | Yes | No | Signed value. |
curl -X GET \
https://example.com/api/v1/trades/20230101000000?client_key=01h6tn69wfcpy5q5x3vpb3x9me&signature=ba5df26991273c746960ce5238c6479e8ca6116381ac46cea96ffd30fafed082 \
-H "Accept: application/json"
| Key | Type | Description |
|---|
| client_key | string | The API access key. |
| amount | string | The amount for receive money. |
| trade_no | string | The transaction ID DaYangPay provided. |
| out_trade_no | string | The transaction ID you provided. |
| payment_url | string | The Cashier URL. |
| created_at | string | Created time. UTC±00:00 |
| paid_at | string | Paid time. UTC±00:00 |
| status | integer | The transaction status. |
| Code | Description |
|---|
| 0 | Unpaid |
| 1 | Paid |
| 2 | Expired |
{
"client_key": "01h6tn69wfcpy5q5x3vpb3x9me",
"amount": "100.00",
"trade_no": "100000012023072123389872",
"out_trade_no": "1698896652712",
"created_at": "2023-01-01T01:01:01.000000Z",
"paid_at": "2023-01-01T01:02:03.000000Z",
"status": 1
}