---
updatedAt: 2025-08-07T12:19:43.000Z
agentTools:
  projectIndex: https://rivhit-api.readme.io/llms.txt
---

# 📓 VAT Rules

# Document VAT Settings - Exempt/Not Exempt

To define the document VAT settings send request parameter:

`'sort_code'`

**100** - With VAT

**150** - Exempt VAT

<Callout icon="📘" theme="info">
  #### This are the sort code default values in Rivhit (the settings can be different and changed in the specific business account)
</Callout>

<br />

Example of VAT Section in the document:

Set with VAT -

<Image align="center" className="border" border={true} src="https://files.readme.io/7e81b480cbdf9bf0c4bf728d0b3d3a3e8a65d1cd8f2c3100f81b5b3e3654f2f1-image.png" />

Exempt VAT -

<Image align="center" className="border" border={true} src="https://files.readme.io/8c656051cace1d867d0ca04df1b640e8148a13ebaadad7f6fef9cfa2f6cd8b88-image.png" />

<br />

# Items Total Amount Settings - With/Without VAT

To define if the document items amounts include the VAT or not send request parameter:

`'price_include_vat'`

<br />

**true**- the items amounts will includes the VAT

**false**- the items amounts will will not include the VAT

<br />

<Callout icon="📘" theme="info">
  #### The default value will be by the document settings
</Callout>

<br />

## The System VAT Calculation

The system will handle the VAT and Items total calculation by this settings and according to the document type.

<br />

### **Case 1: Document with Payments Array - like 'Invoice Receipt'**

<br />

Parameter value sent:

`'price include vat = true'`

Total Items array value should be ***equal to***  total payments array value.

<br />

> No need to calculate the VAT - the system will extend and display it accordingly.

<br />

<Accordion title="price include vat example" icon="fa-info-circle">
  ```json
  Request
  {
    "api_token": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
    "document_type": 2,
    "customer_id": 0,
    "last_name": "Doe",
    "first_name": "John",
    "price_include_vat": true,
    "currency_id": 1,
    "round_digits": 0,
    "items": [
        {
            "item_id": 0,
            "quantity": 1,
            "price_nis": 10,
            "description": "Item Test"
        }
    ],
    "payments": [
        {
            "payment_type": 2,
            "description": "Cash",
            "amount_nis": 10
        }
    ]
  }
  ```
</Accordion>

<br />

Document produced:

<Image align="center" className="border" border={true} src="https://files.readme.io/0b6cb4ab812630422cbc52301e0671805a48422a5a953eefa5b23b183e434bc5-image.png" />

<br />

Parameter value sent:

`'price include vat = false'`

Total items array value should ***not include*** the VAT.

Total Payments array value should ***include*** the VAT added.

<br />

> Calculation should be done and added on the merchant server and sent to the Document.New method accordingly.

<br />

<Accordion title="price not include vat example" icon="fa-info-circle">
  ```json
  Request
  {
    "api_token": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
    "document_type": 2,
    "customer_id": 0,
    "last_name": "Doe",
    "first_name": "John",
    "price_include_vat": false,
    "currency_id": 1,
    "round_digits": 0,
    "items": [
        {
            "item_id": 0,
            "quantity": 1,
            "price_nis": 10,
            "description": "Item Test"
        }
    ],
    "payments": [
        {
            "payment_type": 2,
            "description": "Cash",
            "amount_nis": 11.8
        }
    ]
  }
  ```
</Accordion>

<br />

Document produced:

<Image align="center" className="border" border={true} src="https://files.readme.io/3bbc6213e1a04e15b0b8376ba4b8c4140b5d1cd222d3319e0eb49c3ecbe7bdf4-image.png" />

<br />

### **Case 2: Document with items Array only - like 'Invoice' ,'Shipping Certificate' etc.**

<br />

Parameter value sent:

`'price include vat = true'`

The document total will be ***the same*** as it was sent.

<br />

> The system will extend and display the VAT from the items amount sent accordingly.

<br />

<Accordion title="price include vat example" icon="fa-info-circle">
  ```json
  Request
  {
    "api_token": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
    "document_type": 1,
    "customer_id": 0,
    "last_name": "Doe",
    "first_name": "John",
    "price_include_vat": true,
    "currency_id": 1,
    "round_digits": 0,
    "items": [
        {
            "item_id": 0,
            "quantity": 1,
            "price_nis": 10,
            "description": "Item Test"
        }
    ]
  }
  ```
</Accordion>

<br />

Document produced:

<Image align="center" className="border" border={true} src="https://files.readme.io/17db4738132865eccb5e81f942f2d28e924ee29584f3a68ca3725049259d5fcb-image.png" />

<br />

Parameter value sent:

`'price include vat = false'`

The document total will be ***with VAT added*** to the amount sent.

<br />

> The system will calculate the VAT and add it to the items total amount that was sent.

<br />

<Accordion title="price not include vat example" icon="fa-info-circle">
  ```json
  Request
  {
    "api_token": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
    "document_type": 1,
    "customer_id": 0,
    "last_name": "Doe",
    "first_name": "John",
    "price_include_vat": false,
    "currency_id": 1,
    "round_digits": 0,
    "items": [
        {
            "item_id": 0,
            "quantity": 1,
            "price_nis": 10,
            "description": "Item Test"
        }
    ]
  }
  ```
</Accordion>

<br />

Document produced:

<Image align="center" className="border" border={true} src="https://files.readme.io/8560c4735bf977a460a70cb0e8da67d66eb18e32c3e16644fc18408e83eb1dd0-image.png" />