To configure your webhook URL, see the Webhook Configuration API reference.
How it works
When an event fires, DollarPe sends an HTTP POST to your configured endpoint. Your server must respond with a2xx status code to acknowledge receipt. Non-2xx responses are treated as delivery failures.
Webhook structure
All events share the same envelope:id to deduplicate events. Webhooks may occasionally be delivered more than once, so your handler should be idempotent.
Signature validation
Every request includes two headers:X-TIMESTAMPโ Unix timestamp when the webhook was generatedX-SIGNATUREโ HMAC-SHA256 of the request, Base64 encoded
Metadata fields
Themetadata object carries event-specific context.
Payin events
failure_reasonโ present onFAILED. Values:INCORRECT_UTR,PAYMENT_NOT_RECEIVED, and others. See Failure Reason Referencerefund_reasonโ present onREFUND_INITIATEDandREFUNDED. Values:INCORRECT_AMOUNT,PAYMENT_FROM_NON_WHITELISTED_ACCOUNT,THIRD_PARTY_PAYMENT
Payout events
utrโ present onSUCCESS. The UTR number for the bank transfer, usable as a reconciliation reference
Customer events
failure_reasonโ present onFAILED. Values:DOCUMENT_VERIFICATION_FAILED,TAX_VERIFICATION_FAILED,KYC_FAILED
Bank events
failure_reasonโ present onFAILED. Values:ACCOUNT_TYPE_NRE,PENNY_DROP_FAILED,NAME_MISMATCH,BANK_RISK_CHECK_FAILED
metadata object.

