YfpayYfpay
  • Introduction
  • Signing API requests
  • Receive money
  • Get a transaction for receive money
  • Webhook for receive money
  • Send money
  • Get a transaction for send money
  • Webhook for send money
  • Account Balance
  • All Channels
  • Responses
  • Brazil
  • China
  • India
  • Indonesia
  • Mexico
  • Nigeria
  • Philippines
  • South Africa
  • Thailand
  • Ukraine
  • Vietnam
  • Usdt
  • English
  • 简体中文
  • Introduction
  • Signing API requests
  • Receive money
  • Get a transaction for receive money
  • Webhook for receive money
  • Send money
  • Get a transaction for send money
  • Webhook for send money
  • Account Balance
  • All Channels
  • Responses
  • Brazil
  • China
  • India
  • Indonesia
  • Mexico
  • Nigeria
  • Philippines
  • South Africa
  • Thailand
  • Ukraine
  • Vietnam
  • Usdt
  • English
  • 简体中文
  • Guide

    • Introduction
    • Signing API requests
    • Receive money
    • Get a transaction for receive money
    • Webhook for receive money
    • Send money
    • Get a transaction for send money
    • Webhook for send money
    • Account Balance
    • All Channels
    • Responses

Get a transaction for receive money

GET /api/v1/trades/:trade

HTTP Headers Header

KeyValue
Acceptapplication/json

Path parameters Path

KeyTypeRequiredSignDescription
tradestringYesNoThe transaction ID you provided or DaYangPay provided.

Query parameters Query

KeyTypeRequiredSignDescription
client_keystringYesYesThe API access key.
signaturestringYesNoSigned value.

Request example

curl -X GET \
  https://example.com/api/v1/trades/20230101000000?client_key=01h6tn69wfcpy5q5x3vpb3x9me&signature=ba5df26991273c746960ce5238c6479e8ca6116381ac46cea96ffd30fafed082 \
  -H "Accept: application/json"

Response parameters

KeyTypeDescription
client_keystringThe API access key.
amountstringThe amount for receive money.
trade_nostringThe transaction ID DaYangPay provided.
out_trade_nostringThe transaction ID you provided.
payment_urlstringThe Cashier URL.
created_atstringCreated time. UTC±00:00
paid_atstringPaid time. UTC±00:00
statusintegerThe transaction status.

Status codes

CodeDescription
0Unpaid
1Paid
2Expired

Response example

{
  "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
}
Prev
Receive money
Next
Webhook for receive money