Webhook event notification request.
event_name
value: refund-completed
This request is sent to registered webhook event handlers after |
---|
Refund a line item from an invoice completes successfully |
Refund an invoice completes successfully |
The Request body described below is the message
property in the event notification request data. For more information about event notification requests, visit Webhooks.
Return a 2XX status to indicate that the data was received successfully
{- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "failed_refunds": [
- {
- "refund_id": "93034b3b-0855-4911-85be-577498e98377",
- "amount": "901",
- "currency": "USD"
}
], - "invoice_id": "inv_2V2Zx3paY8lMMwD6XIrRNKTGoiB",
- "payment_invoice_id": "inv_2V2Zx56BmcIhD80qftT8ErfpdBN",
- "successful_refunds": [
- {
- "refund_id": "0631ceba-d072-48c2-af0d-951310d469cc",
- "amount": "504",
- "currency": "USD"
}
]
}