A refund was processed. The data is the refund sale document, which points at its parent sale
Sent to the URL of a webhook created for sale.refunded. The body is the event envelope. The request is signed; verify it as the Webhooks guide describes. Delivery is at least once, so dedupe on id.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
When the change was detected.
object
object
Signed: positive for a surcharge, negative for a cash discount. Integer minor units (cents).
The tax charged on this adjustment. Integer minor units (cents).
Total cash-discount adjustment. Integer minor units (cents).
Reporting total: line + order + promo discount. Integer minor units (cents).
object
Cents when value_type is fixed; basis points when percent.
The line-level part of discount_total. Integer minor units (cents).
object
object
The amount of this line allocated to the discount. Integer minor units (cents).
The total discount allocated to this line. Integer minor units (cents).
The line total, net of the line discount. Integer minor units (cents).
Decimal, 3 places. Negative on a refund line.
Decimal, 3 places. Cumulative quantity refunded against this line.
The tax charged on this line. Integer minor units (cents).
The per-unit discount. Integer, 4 decimal places (1.2345 = 12345).
The snapshot unit price. Integer, 4 decimal places (1.2345 = 12345).
Total tendered. Integer minor units (cents).
object
The tender amount. Integer minor units (cents).
The cumulative amount refunded against this tender. Integer minor units (cents).
Total rounding adjustment. Integer minor units (cents).
Already net of the line discount. Integer minor units (cents).
Total surcharge adjustment. Integer minor units (cents).
Total tax charged. Integer minor units (cents).
object
The snapshot tax rate. Integer basis points (1/100 of a percent).
The tax charged at this rate. Integer minor units (cents).
The amount this rate was applied to. Integer minor units (cents).
The sale total. Integer minor units (cents).
Decimal, 3 places. Sum of line quantities.
Opaque delta-sync version. Increases with every change; use it to detect updates.
Only the id, when the full document is withheld or too large.
object
The event id. It is the same on every retry and for every webhook of the event; receivers dedupe on it.
True when data was cut down to the id because the document was too large.
Responses
Section titled “Responses”Return any 2xx status within 10 seconds to acknowledge the delivery.