Client Transaction's Notification Webhook
POST
{{client-url}}
Will notify 3 possible states: CAPTURED, RECEIVED,FAILED
Algorithm: HMAC-SHA256
Length: 64-character hexadecimal string
Computation: The signature is generated by hashing the full JSON body (excluding the signature field) using HMAC-SHA256 with the secret key.
Before sending the webhook, the signature must be computed:
event: "Transaction.Captured",
data: {
transaction: {
id: "67a0307eaddea901a60144ec",
purchaseAmount: "50000",
totalAmount: "50000",
externalId: "123456",
currency: "COP",
status: "CAPTURED"
}
}
});
const signature = crypto
.createHmac('sha256', secret)
.update(payload)
.digest('hex');
const signedPayload = { ...JSON.parse(payload), signature };
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{client-url}}'
Response Response Example
{
"event": "Transaction.Captured",
"data": {
"transaction": {
"id": "67a0307eaddea901a60144ec",
"purchaseAmount": "50000",
"totalAmount": "50000",
"externalId": "{{CLIENT_TRANSACTION_ID}}",
"currency": "COP",
"status": "CAPTURED"
}
},
"signature": "f8a23d5e0c7c2b6e4a8f9d0c5b3d7e1a7f6c4e2d9b0a5f8c3e1d6b9a7c4e2d1f"
}
Request
Responses
Modified at 2025-04-23 19:47:14