Fees
The fee object
A fee is an extra charge you add to invoices, quotes, subscriptions and Checkout Sessions on top of their line items, as either a fixed amount or a percentage of the line-item total.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
activebooleanRequiredWhether the fee can be used. An inactive fee is refused on new invoices and quotes.
currencystringRequiredThree-letter ISO 4217 currency code of the fee, in lowercase. A fixed-amount fee can only be added to documents in this currency.
scaling_factorintegerRequiredNumber of smallest currency units in one major unit of
currency(for example,100for THB), sofixed_amount / scaling_factoris the fee in major units.descriptionstringRequiredDescription of the fee. Empty when none was given.
display_namestringRequiredName of the fee, for example
Service fee.fixed_amountintegerRequiredNullableFixed fee in the smallest unit of
currency(for example,2500is 25.00 THB). Null for a percentage fee.percentagenumberRequiredNullableFee as a percentage of the document's line-item total, from 0 to 100. Null for a fixed-amount fee.
metadataobjectRequiredKey-value pairs on the fee. The fee endpoints don't take metadata, so this is an empty object for fees created through the API.