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

Webhook for receive money

Request method: POST

Content-Type: application/json

NOTE

DaYangPay will request the webhook URL you provided when the transaction status is Paid.

Body parameters Body

KeyTypeSignDescription
client_keystringYesThe API access key.
signaturestringNoSigned value.
amountstringYesThe amount for receive money.
channel_idstringYesThe payment method.
trade_nostringYesThe transaction ID DaYangPay provided.
out_trade_nostringYesThe transaction ID you provided.
created_atstringYesCreated time. UTC±00:00
paid_atstringYesPaid time. UTC±00:00
statusintegerYesThe transaction status.

Status code

CodeDescription
1Paid

Request example

curl -X POST \
  https://your-domain.com/webhook \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "client_key": "01h349bd08hk3ze70h3zyytaq6",
    "signature": "c3ddc1f29b3a4ea123c8df95bf6c6a43a29c90a8331b67ec4e5ad61fe9cdb3b2",
    "amount": "100.00",
    "channel_id": "1000",
    "trade_no": "100000012023072123389872",
    "out_trade_no": "20230101000000",
    "created_at": "2023-01-01T01:01:01.000000Z",
    "paid_at": "2023-01-01T01:02:03.000000Z",
    "status": 1
  }'

Response parameters

KeyValue
codeSUCCESS

The code is SUCCESS means the request is accepted. other code means that is failed.

Example:

HTTP Status code: 200

{
  "code": "SUCCESS"
}
Prev
Get a transaction for receive money
Next
Send money