Code:
const fetch = require('node-fetch');
const bodyData = {
"payoutId": "ea9fa01a-93cd-4be5-a44d-bbd7de6ab0f5",
"amount": "",
"currency": "XOF",
"country": "BEN",
"correspondent": "MTN_MOMO_BEN",
"payer": {
"type": "MSISDN",
"address": {
"value": "22951345089"
}
},
"customerTimestamp": "2026-06-26T21:05:32.369Z",
"statementDescription": ""
};
const resp =await fetch('https://api.sandbox.pawapay.com/payouts',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_API_KEY>',
},
body: bodyData
});
const data= await resp.json();
console.log(data);