Mayson Monorepo Documentation
    Preparing search index...
    Index

    Properties

    currency: string

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

    A list of items the customer is purchasing.

    customer?: string

    The ID of an existing customer to use for this calculation. If provided, the customer's address and tax IDs are copied to customer_details.

    Details about the customer, including address and tax IDs.

    expand?: string[]

    Specifies which fields in the response should be expanded.

    Details about the address from which the goods are being shipped.

    Shipping cost details to be used for the calculation.

    tax_date?: number

    Timestamp of date at which the tax rules and rates in effect applies for the calculation. Measured in seconds since the Unix epoch. Can be up to 48 hours in the past, and up to 48 hours in the future.