Skip to Content
Paycose Docs
Tax rates

Tax rates

The tax_rate object

A tax rate is a percentage tax, such as VAT, that you apply to invoices, quotes, subscriptions and Checkout Sessions. It is either added on top of prices or already included in them.

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 rate can be applied. An inactive rate is refused on new invoices.

  • descriptionstringRequired

    Description of the rate. Empty when none was given.

  • display_namestringRequired

    Name of the tax as shown on documents, for example VAT.

  • inclusivebooleanRequired

    true when the tax is already included in the prices it applies to, false when it is added on top.

  • percentagenumberRequired

    Tax rate in percent, for example 7 for 7%.

  • metadataobjectRequired

    Key-value pairs for your own use, set when the rate is created. An update merges the metadata it sends: each key is set, and a key sent as an empty string or null is removed.

  • regionobjectRequiredNullable

    Where the tax applies: country, state, jurisdiction and kind of tax. Null when none of them is set.

    Show child attributes
    • region.countrystringRequired

      Two-letter ISO 3166-1 country code, for example TH. Empty when not set.

    • region.statestringRequired

      State, province or region within the country. Empty when not set.

    • region.jurisdictionstringRequired

      Name of the tax jurisdiction, for rates that come from a provider account. Empty otherwise.

    • region.jurisdiction_levelstringRequired

      Level of the tax jurisdiction, for example state, for rates that come from a provider account. Empty otherwise.

    • region.tax_typestringRequired

      Kind of tax, for example vat. Empty when not set.

      Show 13 possible values
      • amusement_tax

        Amusement tax.

      • communications_tax

        Communications tax.

      • gst

        Goods and services tax.

      • hst

        Harmonized sales tax.

      • igst

        Integrated goods and services tax.

      • jct

        Japanese consumption tax.

      • lease_tax

        Lease tax.

      • pst

        Provincial sales tax.

      • qst

        Quebec sales tax.

      • rst

        Retail sales tax.

      • sales_tax

        Sales tax.

      • service_tax

        Service tax.

      • vat

        Value-added tax.

  • effective_percentagenumberRequiredNullable

    Percentage the payment provider actually applies, for rates that come from a provider account. Null for rates created through the API.

  • rate_typestringRequired

    How the provider charges the rate, for example percentage or flat_amount, for rates that come from a provider account. Empty for rates created through the API.

  • flat_amountintegerRequiredNullable

    Fixed tax amount in the smallest unit of flat_amount_currency, for flat-amount rates that come from a provider account. Null otherwise.

  • flat_amount_currencystringRequired

    Currency of flat_amount, in lowercase. Empty when flat_amount is null.