const crypto = require('crypto');
const signature = crypto.createHmac('sha256', signatureKey) .update(JSON.stringify(data)).digest('hex');
{
"id": "e1409c69-2b71-4137-8651-4d09b2ed723d",
"merchant_id": "577311c7-9788-4ec1-8501-86ae69b134e6",
"status": "SUCCESS",
"wire_id": "w_txn_e0354283426b44489840d9b8800901ec",
"order_id": "27862467",
"due_date": "2025-06-11T00:00:00.000Z",
"last_action": null,
"original_amount": "50",
"payee_name": "Devtes",
"currency": "SGD",
"beneficiary": "Devtes",
"beneficiary_bank": "sg_bank_fastpayment_sgd",
"beneficiary_account_number": null,
"beneficiary_account_iban": null,
"wire_origin": null,
"conversion": null,
"approval": "APPROVED",
"created_at": "2025-06-10T01:09:44.000Z",
"updated_at": "2025-06-10T01:09:45.000Z",
"approved_at": null,
"denied_at": null,
"pending_at": null,
"type": "PAYOUT"
}
curl --location --request POST 'https://api.paycombat.comurl_webhook_merchant' \
--header 'X-Signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "e1409c69-2b71-4137-8651-4d09b2ed723d",
"merchant_id": "577311c7-9788-4ec1-8501-86ae69b134e6",
"status": "SUCCESS",
"wire_id": "w_txn_e0354283426b44489840d9b8800901ec",
"order_id": "27862467",
"due_date": "2025-06-11T00:00:00.000Z",
"last_action": null,
"original_amount": "50",
"payee_name": "Devtes",
"currency": "SGD",
"beneficiary": "Devtes",
"beneficiary_bank": "sg_bank_fastpayment_sgd",
"beneficiary_account_number": null,
"beneficiary_account_iban": null,
"wire_origin": null,
"conversion": null,
"approval": "APPROVED",
"created_at": "2025-06-10T01:09:44.000Z",
"updated_at": "2025-06-10T01:09:45.000Z",
"approved_at": null,
"denied_at": null,
"pending_at": null,
"type": "PAYOUT"
}'
{}