Create a platform fee rule for a specific transaction type. The rule defines the markup your platform charges customers on top of Lightspark and counterparty fees. Only one rule per transaction type is allowed.
Fee rules are evaluated at quote creation time. The resulting platform fee is included in the quote’s rateDetails and collected in real time during settlement — no manual reconciliation is needed.
Fee types:
FIXED — a flat amount per transaction (requires fixedFee)PERCENTAGE — a rate of the transaction amount (requires variableFeeRate)HYBRID — both a fixed amount and a percentage rate (requires both)API token authentication using format <api token id>:<api client secret>
Request body for creating a new platform fee rule.
The type of transaction the fee rule applies to. Platform fee rules are scoped to a single transaction type — only one rule per type is allowed.
TRANSFER_IN, TRANSFER_OUT, RAMP_ON, RAMP_OFF, CROSS_BORDER_PAYOUT "CROSS_BORDER_PAYOUT"
Determines which fee components apply. FIXED charges a flat amount per transaction. PERCENTAGE charges a rate of the transaction amount. HYBRID applies both a fixed amount and a percentage rate.
FIXED, PERCENTAGE, HYBRID "HYBRID"
Fixed fee in the smallest unit of USD (cents). Required when feeType is FIXED or HYBRID. Must be between 0 and 10000 ($100.00).
0 <= x <= 10000150
Variable fee as a decimal rate (e.g., 0.005 = 0.5%). Required when feeType is PERCENTAGE or HYBRID. Must be between 0 and 0.20 (20%).
0 <= x <= 0.20.005
Whether the rule should be active immediately. Defaults to true.
true
Fee rule created successfully
A platform fee rule defines the markup a platform charges its customers on a specific transaction type, on top of Lightspark and counterparty fees. Rules are evaluated at quote creation and the resulting platform fee is collected in real time during settlement.
System-generated unique identifier
"FeeRule:019c6a2b-4f8e-7d01-0000-000000000001"
The type of transaction the fee rule applies to. Platform fee rules are scoped to a single transaction type — only one rule per type is allowed.
TRANSFER_IN, TRANSFER_OUT, RAMP_ON, RAMP_OFF, CROSS_BORDER_PAYOUT "CROSS_BORDER_PAYOUT"
Determines which fee components apply. FIXED charges a flat amount per transaction. PERCENTAGE charges a rate of the transaction amount. HYBRID applies both a fixed amount and a percentage rate.
FIXED, PERCENTAGE, HYBRID "HYBRID"
Whether this fee rule is actively applied to new transactions. Disabled rules are retained for reporting but do not affect new quotes.
true
When the fee rule was created
"2026-01-15T00:00:00Z"
When the fee rule was last modified
"2026-02-01T12:30:00Z"
Fixed fee in the smallest unit of USD (cents). Applied per transaction. Required when feeType is FIXED or HYBRID.
x >= 0150
Variable fee as a decimal rate of the transaction amount (e.g., 0.005 = 0.5%). Applied to the sending amount at quote creation. Required when feeType is PERCENTAGE or HYBRID.
0 <= x <= 0.20.005