Code:
const fetch = require('node-fetch');
const bodyData = {
"payoutId": "75e50d37-126c-4ec9-9a2d-7bc868b716b5",
"amount": "",
"currency": "XOF",
"country": "BEN",
"correspondent": "MOOV_BEN",
"payer": {
"type": "MSISDN",
"address": {
"value": ""
}
},
"customerTimestamp": "2025-07-01T05:53:00.705Z",
"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);