TaxConfig
Type: schema
TypeScript Definition
typescript
TaxConfig: {{
/** @enum {unknown} */
tax_type?: "GST";
/** @enum {unknown} */
taxable_location?: "shipping-address" | "billing-address";
/** @description Whether product selling prices include tax. GST is extracted from the price after supply-time discounts. */
is_product_price_include_tax?: boolean;
/** @description Whether quoted shipping and handling amounts include tax. Tax is extracted according to each charge’s treatment and applicable rates. */
is_shipping_price_include_tax?: boolean;
/** @description Controls non-GST tax calculation. For GST, supply-time coupons and promotions always reduce taxable value. */
is_tax_apply_after_discount?: boolean;
is_discount_apply_after_tax?: boolean;
/** @description Applies only when shipping_tax_treatment is fixed-rate. */
shipping_tax_rate?: number;
/** @description Applies only when handling_charge_tax_treatment is fixed-rate. */
handling_charge_tax_rate?: number;
/**
* @description Shipping tax treatment, regardless of tax type. Follow-goods splits the charge by discounted goods taxable value at their rates; free-only shipments use the highest goods rate. Not-taxed leaves the charge untaxed. Fixed-rate uses the configured charge rate. Omission on update preserves the stored treatment.
* @default follow-goods
* @enum {string}
*/
shipping_tax_treatment: "follow-goods" | "not-taxed" | "fixed-rate";
/**
* @description Handling tax treatment, regardless of tax type. Follow-goods splits the charge by discounted goods taxable value at their rates; free-only shipments use the highest goods rate. Not-taxed leaves the charge untaxed. Fixed-rate uses the configured charge rate. Omission on update preserves the stored treatment.
* @default follow-goods
* @enum {string}
*/
handling_charge_tax_treatment: "follow-goods" | "not-taxed" | "fixed-rate";
};
/**
* TextAttribute
* @description Attribute for text values
*/
}OpenAPI Schema
json
{
"title": "TaxConfig",
"type": "object",
"properties": {
"tax_type": {
"enum": [
"GST"
]
},
"taxable_location": {
"enum": [
"shipping-address",
"billing-address"
]
},
"is_product_price_include_tax": {
"description": "Whether product selling prices include tax. GST is extracted from the price after supply-time discounts.",
"type": "boolean"
},
"is_shipping_price_include_tax": {
"description": "Whether quoted shipping and handling amounts include tax. Tax is extracted according to each charge’s treatment and applicable rates.",
"type": "boolean"
},
"is_tax_apply_after_discount": {
"description": "Controls non-GST tax calculation. For GST, supply-time coupons and promotions always reduce taxable value.",
"type": "boolean"
},
"is_discount_apply_after_tax": {
"type": "boolean"
},
"shipping_tax_rate": {
"description": "Applies only when shipping_tax_treatment is fixed-rate.",
"type": "number"
},
"handling_charge_tax_rate": {
"description": "Applies only when handling_charge_tax_treatment is fixed-rate.",
"type": "number"
},
"shipping_tax_treatment": {
"description": "Shipping tax treatment, regardless of tax type. Follow-goods splits the charge by discounted goods taxable value at their rates; free-only shipments use the highest goods rate. Not-taxed leaves the charge untaxed. Fixed-rate uses the configured charge rate. Omission on update preserves the stored treatment.",
"type": "string",
"default": "follow-goods",
"enum": [
"follow-goods",
"not-taxed",
"fixed-rate"
]
},
"handling_charge_tax_treatment": {
"description": "Handling tax treatment, regardless of tax type. Follow-goods splits the charge by discounted goods taxable value at their rates; free-only shipments use the highest goods rate. Not-taxed leaves the charge untaxed. Fixed-rate uses the configured charge rate. Omission on update preserves the stored treatment.",
"type": "string",
"default": "follow-goods",
"enum": [
"follow-goods",
"not-taxed",
"fixed-rate"
]
}
},
"x-tags": [
"Store"
]
}Auto-generated from OpenAPI spec and TypeScript definitions