Mayson Monorepo Documentation
    Preparing search index...

    A Tax Calculation allows you to calculate the tax to collect from your customer.

    Related guide: Calculate tax in your custom payment flow

    interface Calculation {
        id: string;
        object: "tax.calculation";
        amount_total: number;
        currency: string;
        customer: string;
        customer_details: Stripe.Tax.Calculation.CustomerDetails;
        expires_at: number;
        line_items?: ApiList<Stripe.Tax.CalculationLineItem>;
        livemode: boolean;
        ship_from_details: Stripe.Tax.Calculation.ShipFromDetails;
        shipping_cost: Stripe.Tax.Calculation.ShippingCost;
        tax_amount_exclusive: number;
        tax_amount_inclusive: number;
        tax_breakdown: Stripe.Tax.Calculation.TaxBreakdown[];
        tax_date: number;
    }
    Index

    Properties

    id: string

    Unique identifier for the calculation.

    object: "tax.calculation"

    String representing the object's type. Objects of the same type share the same value.

    amount_total: number

    Total amount after taxes in the smallest currency unit.

    currency: string

    Three-letter ISO currency code, in lowercase. Must be a supported currency.

    customer: string

    The ID of an existing Customer used for the resource.

    expires_at: number

    Timestamp of date at which the tax calculation will expire.

    The list of items the customer is purchasing.

    livemode: boolean

    Has the value true if the object exists in live mode or the value false if the object exists in test mode.

    The details of the ship from location, such as the address.

    The shipping cost details for the calculation.

    tax_amount_exclusive: number

    The amount of tax to be collected on top of the line item prices.

    tax_amount_inclusive: number

    The amount of tax already included in the line item prices.

    Breakdown of individual tax amounts that add up to the total.

    tax_date: number

    Timestamp of date at which the tax rules and rates in effect applies for the calculation.