Header x-pixer-api-key
● SHA256 base = ApiKeyWebHook;txId;Value;Status
● SHA256: abcd;739704828;19;completed
● SHA256: be43cde2f52fb17ddf9289dd45cfa4476f00db44c52659ff4cd887a150722fbc
Example: ApiKeyWebHook: abcd (This ApiKeyWebHook will change in the production environment and by merchant)
--header 'x-pixer-api-key: be43cde2f52fb17ddf9289dd45cfa4476f00db44c52659ff4cd887a150722fbc' \
--header 'Content-Type: application/json' \
--date '{
"txid":"739704828","value":19,"status":"completed","paidAt":"2024-04-29T16:57:00.000Z"
}
Completed transaction example
Webhook (POST) Example:
{
"txid":"739704828","
"value":19,
"status":"completed",
"paidAt":"2024-04-29T16:57:00.000Z"
}
Failed transaction example
Webhook (POST) Example:
{
"txid":"739704828","
"value":19,
"status":"failed",
"paidAt":"2024-04-29T16:57:00.000Z",
"reason": "Deposit rejected because user does not attend compliance rules" (Optional)
}