Skip to Content
Paycose Docs
Fees

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

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • activebooleanRequired

    Whether the fee can be used. An inactive fee is refused on new invoices and quotes.

  • currencystringRequired

    Three-letter ISO 4217 currency code of the fee, in lowercase. A fixed-amount fee can only be added to documents in this currency.

  • scaling_factorintegerRequired

    Number of smallest currency units in one major unit of currency (for example, 100 for THB), so fixed_amount / scaling_factor is the fee in major units.

  • descriptionstringRequired

    Description of the fee. Empty when none was given.

  • display_namestringRequired

    Name of the fee, for example Service fee.

  • fixed_amountintegerRequiredNullable

    Fixed fee in the smallest unit of currency (for example, 2500 is 25.00 THB). Null for a percentage fee.

  • percentagenumberRequiredNullable

    Fee as a percentage of the document's line-item total, from 0 to 100. Null for a fixed-amount fee.

  • metadataobjectRequired

    Key-value pairs on the fee. The fee endpoints don't take metadata, so this is an empty object for fees created through the API.