Revenue share modes
The Revenue share selector on a consignor’s page has three modes.
A consignor on a formula, or inheriting a shop default that is a formula, shows as Formula in the consignors table. Where a percentage can be derived, including inheriting a shop percentage, the table shows that percentage.
Set the shop default
1
Open consignment settings
Go to Consignment.
2
Choose a mode
Under Default revenue share, select Percentage of sale or Formula. The default applies to every consignor that inherits it.
3
Enter the rate or the formula
For a percentage, enter a Revenue share percentage between 0 and 100. For a formula, select Add formula to open the editor.
4
Save
Select Save. The change applies to future earnings, and past entries keep their frozen amounts.
Write a formula
Select Add formula or Edit formula to open the formula editor. The sidebar shows a read-only preview, and your edits apply when you select Done and save the consignor or the settings form.Rules
- The formula must render a non-negative integer in cents. A $60.00 share is written as
6000. - Formulas run in strict mode. Referencing an undefined variable fails validation on save, or returns an error in Try it out.
- Money values are in cents throughout the formula context.
Variables
The editor lists clickable chips you can insert into the formula.
The system fields available in calculated fields are exposed here under
item.* and cycle.*.
Examples
A 60% share, which is the same as percentage mode:60% of the sale
60% minus a repair fee
Tiered rate
Test the formula before publishing
Check a formula before you save it.1
Pick an item
In the formula editor, select Try it out and pick any Item in your shop. A formula can read that item’s fields whoever consigns it.
2
Enter a sale amount
Enter a Sale amount to render the formula against.
3
Calculate
Select Calculate. Supercycle renders the draft through the real engine and shows what the consignor would receive.
What happens on a sale
1
Resolve the formula
Supercycle resolves the consignor’s mode: their percentage or formula, or the shop default when they inherit. Percentages compile to the same cents formula.
2
Render and freeze
When the charge is paid, the formula renders against that charge, cycle, item, and consignor. The amount, basis, formula text, and source (
consignor, shop, or fallback) are frozen on the entry.3
Fall back on failure
If a formula fails at earning time, Supercycle falls back to the shop default formula, or to zero if that fails too, writes the entry with
source: fallback, and logs the error. Money events are never dropped. Correct a mistake with an adjustment entry. The payout breakdown shows a Fallback badge on the affected lines.4
Reverse refunds proportionally
A refund reverses the earning amount multiplied by the refund basis and divided by the earning basis. The formula is never rendered again, which matches the old rate-based reversal for percentage entries.
Per-item exceptions
An item has no revenue share of its own, so different terms for one item are expressed through data the formula reads.- Add a money or integer custom field to items, such as
payout_rateorrepair_fee. - Reference it in the shop default or in the consignor’s formula as
item.fields.payout_rate. - Set the value per item in Inventory.