Conversions
Refund Conversion
Apply a full or partial refund to an existing server-side conversion
POST
Use this endpoint after a conversion has already been recorded in Affonso and
you need to reflect a refund or chargeback.
Path Parameters
The unique identifier of the conversion/transaction to refund.
Body Parameters
All body parameters are optional. If you omitamount, Affonso applies a full
refund for the remaining sale balance on the conversion.
Refund amount to apply. Must be greater than zero and cannot exceed the
remaining sale amount on the conversion.
Optional three-letter currency code for your refund record, such as
USD or
EUR.Optional free-form reason, such as
customer_cancellation or chargeback.Optional idempotency key for the refund event. Reuse the same value when
retrying the same upstream refund.
Optional ISO 8601 timestamp describing when the refund happened upstream.
Refund Behavior
- Omitting
amountcreates a full refund for the remaining balance. - Partial refunds set
sales_statustopartial_refunded. - Full refunds set
sales_statustorefunded. - If an affiliate earning exists, its commission amount is reduced proportionally.
- A full refund marks the commission status as
refunded.
Response
The response returns the updated conversion object.Always
true for successful responses.Updated conversion object.
Example Request
Example Response
Full refunds emit
transaction.rejected. Partial refunds emit
transaction.updated.