Webhooks
Webhooks are sent following creation and update events. Webhooks can be configured in the Control Center. For more information on webhooks, see the PaymentsOS documentation.
Reconciling webhooks with their transactions
The body of webhooks contains the "event_type" attribute, which specifies the event that the webhook relates to. These events include create and update events for the following:
- Authorization
- Capture
- Charge
- Refund
- Void
The body of webhooks also contains the "action_id" attribute, which identifies the resource to which the webhook relates.
Please note the "action_id" attribute is returned only in Webhook new version 1.0.1.
Example
A refund update webhook will contain the following:
- "event_type" value: "payment.refund.update"
- "action_id" value: abcd-1234-abcd (Refund ID)