Skip to content

Create Payout Order ​

API EndPoint

POST baseUrl + /api/payOut

Request Headers

HeaderRequiredValue
Content-TypeYapplication/json
MerchantIdYMerchantId
SignYSign

Request Parameters

ParameterRequiredTypeDescriptionExample
accountNameYstring(32)Beneficiary Account NameJohn
accountNoYstring(32)Beneficiary Account Number22-digit CBU/CVU or Alias
accountTypeYintAccount Type1 or 2, refer to Payout Account Type
currencyYstring(32)Currency codeARS
amountYdecimal(20,2)Amount1000.00
bankIdYintBank IdRefer to Payout Bank list query
mchOrderNoYstring(32)Merchant order numberP123456
notifyUrlYString(250)Webhooks urlhttp://abc.com/
nonceStrYstring(32)Random string16283812xxxx
idTypeYstring(32)Beneficiary ID TypeRefer to Payout Payee ID Type
idCardYstring(32)Beneficiary ID NumberUser's real ID number
phoneNstring(32)Beneficiary phone number+54xxxxxxx We do not verify the authenticity of the phone number, but a real one can improve the success rate and avoid risk control
emailNstring(64)Beneficiary emailexample@maildomain.com We do not verify the authenticity of the email, but a real one can improve the success rate and avoid risk control
remarkYstring(32)Remarkremark

TIP

Please note that the webhook url only supports https or http protocol. If the address is an IP address, please be sure to use a public domain name.

Response Parameters

ParameterTypeDescription
merchantIdintMerchantId
mchOrderNostring(32)Merchant order number
orderNostring(32)Platform order number
amountdecimal(20,2)Amount
feedecimal(20,2)Fee
orderStatusstringPayout Order Status Enum

Response Example

json
{
  "msg": "SUCCESS",
  "code": 200,
  "data": {
    "merchantId": "100001",
    "mchOrderNo": "M1656907083234",
    "orderNo": "PAYOUT8232147367892025344",
    "amount": 100.00,
    "fee": 0.00,
    "orderStatus": "PROCESSING"
  }
}

Query Payout Order ​

API EndPoint

POST baseUrl + /api/payOutQuery

Request Parameters

ParameterRequiredTypeExampleDescription
mchOrderNoNstring(32)1863484722378907648Merchant order number
orderNoNstring(32)PAYOUT8551739282639106048Platform order number
nonceStrYstring(32)9459931608Random string

TIP

We recommend using orderNo (platform order number) first. At least one of the platform order number and the merchant order number must be passed.

Request Example

bash
curl -L 'baseUrl/api/payOutQuery' \
-H 'MerchantId: 1002001' \
-H 'Sign: A6FC73F7D22EC8B4A064C8FFCC592CBF' \
-H 'Content-Type: application/json' \
-d '{"mchOrderNo":"1863484722378907648","nonceStr":"9459931608","orderNo":"PAYOUT8551739282639106048"}'

Response Parameters

ParameterTypeDescription
merchantIdintMerchant id
mchOrderNostring(32)Merchant order number
orderNostring(32)Platform order number
channelOrderNostring(32)Channel order number
amountdecimal(20,2)Amount
feedecimal(20,2)Fee
orderStatusstring(32)Payout Order Status Enum
resultDescstring(64)Order Status Description
completionTimeyyyy-MM-dd HH:mm:ssCompletion time

Response Example

json
{
  "msg": "SUCCESS",
  "code": 200,
  "data": {
    "merchantId": "1002001",
    "mchOrderNo": "1863484722378907648",
    "orderNo": "PAYOUT8551739282639106048",
    "amount": "60000",
    "fee": "5150",
    "orderStatus": "PAYING",
    "completionTime": null,
    "resultDesc": null
  }
}

Async Webhook Notification ​

The webhooks url is provided by the merchant

POST Merchant NotifyUrl

Webhook Request Parameters

ParameterTypeDescription
merchantIdintMerchant id
mchOrderNostring(32)Merchant order number
orderNostring(32)Platform order number
channelOrderNostring(32)Channel order number
amountdecimal(20,2)Amount
feedecimal(20,4)Fee
orderStatusstring(32)Payout Order Status Enum
resultDescstring(64)Order Status Description
completionTimeyyyy-MM-dd HH:mm:ssCompletion time

Webhook Request Example

bash
curl -L 'https://merchant.com/webhooks/payout' \
-H 'MerchantId: 1002001' \
-H 'Sign: A6FC73F7D22EC8B4A064C8FFCC592CBF' \
-H 'Content-Type: application/json' \
-d '{"amount":60000.00,"completionTime":"2024-12-02 08:42:54","fee":5150.0000,"mchOrderNo":"1863484722378907648","merchantId":"3002124","nonceStr":"1733103774518","orderNo":"PAYOUT8551739282639106048","orderStatus":"SUCCESS","payType":"11"}'
json
{
  "amount": 60000.0,
  "completionTime": "2024-12-02 08:42:54",
  "fee": 5150.0,
  "mchOrderNo": "1863484722378907648",
  "merchantId": "1002001",
  "nonceStr": "1733103774518",
  "orderNo": "PAYOUT8551739282639106048",
  "orderStatus": "SUCCESS",
  "payType": "11"
}
json
{
  "amount": 60000.0,
  "completionTime": "2024-12-02 08:42:54",
  "fee": 5150.0,
  "mchOrderNo": "1863484722378907648",
  "merchantId": "1002001",
  "nonceStr": "1733103774518",
  "orderNo": "PAYOUT8551739282639106048",
  "orderStatus": "FAIL",
  "resultDesc": "ACCOUNT NOT EXITS",
  "payType": "11"
}

Order result reversal processing

Please note that in rare cases, a payment order will have a result reversal notification. Your callback processing logic should consider the processing of success->failure and failure->success status.

Webhook Response Example

json
{
  "status": "SUCCESS"
}

TIP

When the webhooks response HTTP status code is 200, 301 or 302, we believe that the merchant has successfully received and processed the callback. For other statuses, we believe that the merchant has failed to process the callback.

After the webhooks fails, it will be retried in 1,3,7,11,16,22,29,37,46,56 minutes, and the webhooks will be retried 10 times in total

Released under the MIT License.