OptionalcatalogReference an existing CatalogTax by id.
OptionalnameOptionalpercentagePercentage as a string, e.g. "5" or "7.25". Required for an ad hoc tax.
OptionalscopeORDER applies to the whole order (Square auto-applies it to every line);
LINE_ITEM applies only to lines that list this tax's uid in their
appliedTaxes.
OptionaltypeDefault (Square's): ADDITIVE.
OptionaluidClient-side id. Reference it from a line item's appliedTaxes, and use it
to find this tax's appliedMoney on the returned order.
An order tax. Define an ad hoc tax inline with
name+percentage(for a rate the caller decides, with noCatalogTaxobject), or reference an existingCatalogTaxbycatalogObjectId.To charge only the taxes listed here, also set
pricingOptions.autoApplyTaxes: false, so Square doesn't add the location's enabled taxes on top.See
https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts