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
string
required
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.
number
Refund amount to apply. Must be greater than zero and cannot exceed the
remaining sale amount on the conversion.
string
Optional three-letter currency code for your refund record, such as
USD or
EUR.string
Optional free-form reason, such as
customer_cancellation or chargeback.string
Optional idempotency key for the refund event. Reuse the same value when
retrying the same upstream refund.
string
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.boolean
Always
true for successful responses.object
Updated conversion object.
Example Request
Example Response
Full refunds emit
transaction.rejected. Partial refunds emit
transaction.updated.