Mayson Monorepo Documentation
    Preparing search index...

    A Tax Transaction records the tax collected from or refunded to your customer.

    Related guide: Calculate tax in your custom payment flow

    interface Transaction {
        id: string;
        object: "tax.transaction";
        created: number;
        currency: string;
        customer: string;
        customer_details: Stripe.Tax.Transaction.CustomerDetails;
        line_items?: ApiList<Stripe.Tax.TransactionLineItem>;
        livemode: boolean;
        metadata: Metadata;
        posted_at: number;
        reference: string;
        reversal: Stripe.Tax.Transaction.Reversal;
        ship_from_details: Stripe.Tax.Transaction.ShipFromDetails;
        shipping_cost: Stripe.Tax.Transaction.ShippingCost;
        tax_date: number;
        type: Stripe.Tax.Transaction.Type;
    }
    Index

    Properties

    id: string

    Unique identifier for the transaction.

    object: "tax.transaction"

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

    created: number

    Time at which the object was created. Measured in seconds since the Unix epoch.

    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.

    The tax collected or refunded, by line item.

    livemode: boolean

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

    metadata: Metadata

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

    posted_at: number

    The Unix timestamp representing when the tax liability is assumed or reduced.

    reference: string

    A custom unique identifier, such as 'myOrder_123'.

    If type=reversal, contains information about what was reversed.

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

    The shipping cost details for the transaction.

    tax_date: number

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

    If reversal, this transaction reverses an earlier transaction.