The TAX segment specifies tax information for a line item or the whole transaction. TAX+7+VAT means the tax is GST/VAT. Element 5 sub-element 3 carries the tax rate (e.g. 10 for 10% GST). Element 6 is the category code (S=standard rate, Z=zero rated, E=exempt). The TAX segment is usually followed by MOA+124 for the tax amount.
TAXHover any part of the segment to see what it is. Open What your system receives to see the JSON or XML CleanEDI delivers.
TAX+7+VAT+++:::10+S'Value added tax at 10%.
| 1 | Function | 7Tax |
| 2 | Tax type | VATValue added tax |
| 5.4 | Rate: Rate % | 10 |
| 6 | Category | S |
{
"tax": {
"type": "VAT",
"ratePercent": 10,
"category": "S"
}
}Example shape. In production the field names and structure follow your own API contract.
Elements are separated by + and their parts by :. Positions match the explainer, so 2.3 is the third part of the second element.
| Position | Element | Parts |
|---|---|---|
| 1 | Function | 1.1 Code |
| 2 | Tax type | 2.1 Code |
| 3 | Tax account | Single value |
| 4 | Assessment basis | Single value |
| 5 | Rate | 5.1 Part 1, 5.2 Part 2, 5.3 Part 3, 5.4 Rate % |
| 6 | Category | Single value |
| Code | Meaning |
|---|---|
7 | Tax |
| Code | Meaning |
|---|---|
GST | Goods and services tax |
VAT | Value added tax |
Common EANCOM and UN/EDIFACT values. Your trading partner's implementation guide is the final word on which codes they send.
Have a real message with TAX in it? The explainer breaks down every segment and runs in your browser.
Explain my message