A fee adds a charge to a product's price, such as a setup or admin fee. It's either a fixed amount or a percentage:
value_type | Set | Example |
|---|---|---|
amount_type | amount | 5.00 added |
percentage_type | percentage, up to 100 | 10% added |
Percentage fees aren't supported yetOnly fixed-amount fees (
amount_type) are supported right now. Don't create fees withvalue_typeset topercentage_type.
Attach a fee to a product with product_fee_id. On a subscription, set fee_for_initial_payment_only to charge it on the first payment only.
A fixed fee is charged in the product's currency. Set apply_conversion_rate to true to convert it when an order uses another currency.
To stop using a fee, set is_active to false.
How a fee is charged
The fee is added after any discount. Tax is then taken out of the total, not added on top.
A percentage fee is taken from the line total (price × quantity) on an order, or from the price alone in a product preview.