{
"merchant_id": "10001",
"merchant_order_id": "PAYOUT-20001",
"amount": "500.00",
"bank_account": {
"beneficiary_name": "Ravi Kumar",
"account_number": "123456789012",
"ifsc": "HDFC0001234",
"bank_name": "HDFC Bank",
"phone": "9876543210",
"email": "ravi@example.com"
},
"notify_url": "https://merchant.example.com/payout/notify",
"sign": "<64 hex>"
}
# sign 的算法见“请求签名”
curl --request POST 'https://<api-host>/api/v1/payouts' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant_id": "10001",
"merchant_order_id": "PAYOUT-20001",
"amount": "500.00",
"bank_account": {
"beneficiary_name": "Ravi Kumar",
"account_number": "123456789012",
"ifsc": "HDFC0001234",
"bank_name": "HDFC Bank",
"phone": "9876543210",
"email": "ravi@example.com"
},
"notify_url": "https://merchant.example.com/payout/notify",
"sign": "<64 hex>"
}'
# call() 见“请求签名”
result = call("/api/v1/payouts", {
"merchant_order_id": "PAYOUT-20001",
"amount": "500.00",
"bank_account": {
"beneficiary_name": "Ravi Kumar",
"account_number": "123456789012",
"ifsc": "HDFC0001234",
"bank_name": "HDFC Bank",
"phone": "9876543210",
"email": "ravi@example.com",
},
"notify_url": "https://merchant.example.com/payout/notify",
})
// call() 见“请求签名”
$result = call('/api/v1/payouts', [
'merchant_order_id' => 'PAYOUT-20001',
'amount' => '500.00',
'bank_account' => [
'beneficiary_name' => 'Ravi Kumar',
'account_number' => '123456789012',
'ifsc' => 'HDFC0001234',
'bank_name' => 'HDFC Bank',
'phone' => '9876543210',
'email' => 'ravi@example.com',
],
'notify_url' => 'https://merchant.example.com/payout/notify',
]);
// call() 见“请求签名”
String result = call("/api/v1/payouts", Map.of(
"merchant_order_id", "PAYOUT-20001",
"amount", "500.00",
"bank_account", Map.of(
"beneficiary_name", "Ravi Kumar",
"account_number", "123456789012",
"ifsc", "HDFC0001234",
"bank_name", "HDFC Bank",
"phone", "9876543210",
"email", "ravi@example.com"),
"notify_url", "https://merchant.example.com/payout/notify"));
// call() 见“请求签名”
const result = await call("/api/v1/payouts", {
"merchant_order_id": "PAYOUT-20001",
"amount": "500.00",
"bank_account": {
"beneficiary_name": "Ravi Kumar",
"account_number": "123456789012",
"ifsc": "HDFC0001234",
"bank_name": "HDFC Bank",
"phone": "9876543210",
"email": "ravi@example.com",
},
"notify_url": "https://merchant.example.com/payout/notify",
});