Fetch Available Codes
Fetch the active codes for the business before creating taxable invoices:Create Invoices With Tax Codes
Pass the code on each invoice line item:tax_code is valid and no explicit tax amount is supplied, Friday calculates the tax from the configured rate and persists the code on the line item. The same tax_code field is returned in invoice line-item responses.
sales_taxes Compatibility
If your system already sends structured tax lines, includesales_taxes[].code:
sales_taxes.name is accepted only when a code is also present. The code is the canonical value used for validation and audit.
Validation Rules
- Unknown or inactive tax codes return a 4xx validation error.
- Conflicting line-level codes, such as
tax_code: "BTW_21"plussales_taxes[].code: "EXEMPT", return a validation error. - If you provide both a tax code and explicit
sales_taxes[].amount, the amount must match the configured tax-code rate within rounding tolerance. - Customers marked
tax_exempt: truereject taxable invoice line items. UseEXEMPTor another zero-rated code. - Tax-exempt errors identify the customer and the offending
line_items[index].
Do not infer VAT treatment from the tax name alone. Always fetch and send a valid
code.