Return Commission Policy
Choose whether a retailer's commission is reversed or retained when a sale is refunded, set it per retailer through the API, and see exactly how each refund is calculated.
When a shopper is refunded, the channel's commission on that sale can go one of two ways. It can be handed back to the retailer along with the refund, or the channel can keep it. The return commission policy decides which, for each retailer connected to your app.
REVERSE
The commission on the refunded goods is reversed. The retailer bears the refund net of your commission.
Sale-and-return (SAR)
RETAIN
You keep the commission. The retailer repays the full refund, including the commission you keep.
Sale-based retention (SBR), including SBR with Net Receipts
REVERSE is the platform default, and it is how every refund worked before this setting existed. You do not need to do anything for a retailer that should stay on REVERSE.
Where the Policy Is Set
The policy is resolved per retailer and app, in this order:
Retailer override. A value set for one retailer on your app, through the API below. Source
MERCHANT.App default. A value set for your whole app. Violet sets this on request; contact Violet support if you want every retailer to default to
RETAIN. SourceAPP.Platform default.
REVERSE. SourceDEFAULT.
The source tells you which level supplied the policy, and every read of the setting returns it.
Reading and Changing a Retailer's Policy
Both calls use your usual channel credentials: X-Violet-Token, X-Violet-App-Secret and X-Violet-App-Id. The token must belong to the developer account that owns the app in the path, and the retailer must be enabled on that app. Retailers cannot read or change this setting themselves.
Read the policy
overrides.return_commission_policy is the retailer's own value, or null when it has none. effective is what Violet applies to the retailer's next sale.
Change the policy
The body takes one field, return_commission_policy:
"REVERSE" or "RETAIN"
Sets the retailer's override. Values are case-sensitive.
null
Clears the override, so the retailer follows the app default again.
Field left out, or {}
Nothing changes.
The response is the same shape as the GET. Every change is recorded with who made it and the old and new values.
400
bad_request
The value is not REVERSE, RETAIN or null, the body has an unknown field, or the JSON is malformed.
400
empty_body
No body was sent.
403
insufficient_permissions
The token's developer does not own the app, the retailer is not connected to or enabled on the app, or the caller is a retailer.
409
bad_request
Another change to the same setting was made at the same moment. Read the setting and try again.
415
The body was not sent as application/json.
Nothing is changed when a request fails.
See the API reference: Get Return Commission Policy and Update Return Commission Policy.
Each Sale Keeps the Policy It Was Sold Under
Violet records the effective policy on a sale when it splits the bag into distributions, a few seconds after the order is accepted. From then on, every refund of that sale uses the recorded policy, however long the return takes to arrive. Changing a retailer's policy only affects sales made after the change.
Allow up to an hour. Settings are cached, so a change can take up to an hour to reach new sales. If the timing matters, for example when a new contract starts on a given date, make the change the day before.
Older sales. Sales split before Violet started recording the policy on sales (rolled out by 14 October 2026) have none, and are treated as
REVERSE.A changed contract is not retroactive. A retailer moving from SAR to SBR keeps
REVERSEon every sale made before you setRETAIN.
How a Refund Is Calculated
Both policies start from the same figure: the commission on the goods being refunded.
Shipping, tax and duty are never part of the commission, on the sale or on the refund. The commission base, including how tax-inclusive prices are handled, is described in Commission Base: Tax, Duty and Discounts. A refund uses the same base the sale used.
Each refund's figure is capped at the commission the sale charged. Under RETAIN it is also capped at what earlier refunds of the bag have left, so several partial refunds can never keep more commission than the sale earned.
Then the policies part ways:
REVERSE
RETAIN
Commission returned by the channel
commission_on_goods
0
Commission kept by the channel
0
commission_on_goods
Reversed from the retailer's transfer for this sale
refund − commission_on_goods (less any tax your app remits)
the same amount
Still owed by the retailer after that reversal
nothing
commission_on_goods, recovered from the retailer's payouts
Under RETAIN the retailer repays the shopper's full refund. Most of it comes back through the usual reversal of the sale's own transfer; the commission you keep is recovered on top of that, from the retailer's payouts, by Violet's recovery process. See Retained Commission Recovery.
Refunds Entered as an Amount
A retailer can refund in its store either by selecting items or by entering an amount. Some platforms, Shopify among them, send no line items for a refund entered as an amount, so Violet reads the amount itself, goods first:
The amount is goods, up to the goods the bag still has to refund (the subtotal less discounts, less goods earlier refunds returned).
Anything above that is shipping, tax and duty, in proportion to what remains of each.
Anything above everything left to refund on the bag is recorded as
refund_discrepancy, as a negative figure. On almost every refund there is none, and the field isnull.
Shipping, tax or duty that the platform does report on the refund is taken as reported, and only the rest of the amount is read this way.
So a partial refund entered as an amount returns commission under REVERSE in the same way as a refund of items, and a full refund entered as an amount gives the same result as a full refund of items or a cancellation. Goods first means that when a retailer refunds an item's price as an amount, all of it counts as goods, which is how retailers usually use it.
Examples
All examples use a 15% commission rate, a retailer that remits its own tax, and one bag paid by one transfer.
Transaction Fees on Refunds
If your app supplies a transaction fee for the bag (see Net Receipts), that fee is never returned on a refund, under either policy. Only commission depends on the policy. Who economically absorbs the fee is part of your contract with the retailer and is set by the retailer's fee settings, not by its return policy.
The same holds for a cancellation and for a full refund: neither returns the transaction fee.
The payment provider's processing fee (for example Stripe's) is not returned either. The provider keeps it when a payment is refunded, so whoever paid it on the sale has still paid it. Refund distributions record 0 for it, and no reversal is reduced by it.
Reading the Result on Distributions
Each refund writes a REFUND distribution for the retailer and one for your app. On those rows:
net_distribution_amountis the amount the refund takes back from that account, as a negative figure. It is the figure that moves.commission_reversed_amountis the commission the refund reversed. It is0underRETAIN.commission_retained_amountis the commission you kept underRETAIN, with the same sign convention ascommission_reversed_amount(negative on the channel's row, positive on the retailer's). It isnullunderREVERSE.commissionon a refund row is the whole bag's commission, repeated on every refund of the bag. Do not add it up across refunds.
To total the commission you kept on a bag, add commission_retained_amount across its refund rows. Every field's sign on refund rows, with a worked example under each policy, is in Reading Refund Rows.
Things to Know Before Using RETAIN
Subscribe to the recovery webhooks first. Every
RETAINrefund that leaves an amount owed opens a recovery case. Subscribe to the four Recovery Case Webhooks before you move the first retailer.Stripe only.
RETAINworks for orders paid through Stripe. A refund of aRETAINsale paid through Nuvei is refused. For other payment providers, Violet cannot recover the commission you keep.Commission deducted before payment. If your app's commission is taken before the retailer is paid (the bag's payment distributions show
totals_include_commissionasfalse), a refund reverses no commission and none is retained, under either policy.Retailers you pay yourself. Recovery works through the transfers Violet sends. For a retailer on custom or external transfers, Violet cannot recover retained commission automatically. Its cases are marked exhausted straight away, and you settle the amount with the retailer directly.
Common Questions
Does the policy apply to cancellations as well as returns? Yes. The policy applies to every refund of a sale, whatever the reason, including a cancellation before the order ships.
Why does an older partial refund show no commission reversed? If the retailer entered the refund as an amount and it was recorded before the goods-first rule, the whole amount was recorded as refund_discrepancy and no commission was reversed. Contact Violet support about any refund you need corrected.
Is a refund entered as an amount treated differently from a refund of items? No longer. Both return commission the same way; see Refunds Entered as an Amount.
Can I switch a retailer from RETAIN back to REVERSE? Yes, at any time. Sales already made keep RETAIN; new sales use REVERSE.
Does Violet work out the contract type? No. Violet applies the settings you set. Set each retailer's return policy and fee settings to match its contract.
Why does the retailer's reversal not include the commission I kept? A reversal can only take back money the transfer sent, and the transfer never included your commission. The commission is recovered separately, from the retailer's other payouts.
Related
Last updated
Was this helpful?