const crypto = require('crypto');
const signature = crypto.createHmac('sha256', signatureKey) .update(JSON.stringify(data)).digest('hex');
{
"id": "e3e229ca-a38f-4af0-95a0-89732c815045",
"merchant_id": "a1fe780b-94cb-4f6a-966c-ceefeb6ca3b0",
"status": "FAILED",
"wire_id": "w_txn_59376ed600464042b37e53625297fb00",
"order_id": null,
"due_date": "2025-05-16T00:00:00.000Z",
"last_action": null,
"original_amount": "31",
"payee_name": "Fajar NZD",
"currency": "NZD",
"beneficiary": "Fajar NZD",
"beneficiary_bank": "nz_bank_directcredit_nzd",
"beneficiary_account_number": null,
"beneficiary_account_iban": null,
"wire_origin": null,
"conversion": null,
"approval": "FAILED",
"created_at": "2025-05-15T04:15:38.000Z",
"updated_at": "2025-05-15T04:16:08.000Z",
"approved_at": null,
"denied_at": null,
"pending_at": null,
"type": "PAYOUT"
}
curl --location --request POST 'https://api.paycombat.commerchant_url_here' \
--header 'X-Signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "e3e229ca-a38f-4af0-95a0-89732c815045",
"merchant_id": "a1fe780b-94cb-4f6a-966c-ceefeb6ca3b0",
"status": "FAILED",
"wire_id": "w_txn_59376ed600464042b37e53625297fb00",
"order_id": null,
"due_date": "2025-05-16T00:00:00.000Z",
"last_action": null,
"original_amount": "31",
"payee_name": "Fajar NZD",
"currency": "NZD",
"beneficiary": "Fajar NZD",
"beneficiary_bank": "nz_bank_directcredit_nzd",
"beneficiary_account_number": null,
"beneficiary_account_iban": null,
"wire_origin": null,
"conversion": null,
"approval": "FAILED",
"created_at": "2025-05-15T04:15:38.000Z",
"updated_at": "2025-05-15T04:16:08.000Z",
"approved_at": null,
"denied_at": null,
"pending_at": null,
"type": "PAYOUT"
}'
{}