{"info":{"_postman_id":"816f917f-fcbd-4453-afd9-76ba039194e8","name":"VAT Care","description":"<html><head></head><body><p>The VAT Care API is designed to simplify and automate your VAT and e-invoicing processes. With a secure and reliable system, it helps your business stay compliant with VAT regulations while saving time and reducing errors.</p>\n<p>Using this API, you can:</p>\n<ul>\n<li><p>Easily generate and share VAT-compliant invoices.</p>\n</li>\n<li><p>Cancel or update invoices whenever needed.</p>\n</li>\n<li><p>Keep track of all transactions with detailed logs.</p>\n</li>\n<li><p>Ensure smooth integration with your existing business systems.</p>\n</li>\n</ul>\n<p>This documentation provides clear guidance on how the VAT Care API works, so your business can focus on growth while we handle the complexity of VAT compliance in the background.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"4829790","collectionId":"816f917f-fcbd-4453-afd9-76ba039194e8","publishedId":"2sA3dvirr3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-01T09:43:19.000Z"},"item":[{"name":"Authentication","item":[{"name":"Company Login","id":"63576fa8-49c7-47d8-8f70-dd50b6ffbaaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"abcmanager@gmail.com","type":"text"},{"key":"password","value":"123456","type":"text"}]},"url":"https://api.dev.v2.vatcare.app/api/login","description":"<p>This API allows a user to log in to the VAT-Care portal and generates a <strong>Bearer Token</strong>, which must be included in the <strong>Authorization header</strong> for all other APIs in this collection.</p>\n<p>Only the user account specifically set up for API integration with VAT-Care services can use this endpoint. Other company users can continue to access their accounts through the VAT-Care web portal.</p>\n<p>The response provides important details that you will use in other APIs:</p>\n<ul>\n<li><p><strong>id</strong> – This will serve as the <code>user_id</code> wherever required.</p>\n</li>\n<li><p><strong>access_token</strong> – This will be your <code>Bearer Token</code>, included in the Authorization header of subsequent API requests.</p>\n</li>\n</ul>\n","urlObject":{"host":["https://api.dev.v2.vatcare.app/api/login"],"query":[],"variable":[]}},"response":[],"_postman_id":"63576fa8-49c7-47d8-8f70-dd50b6ffbaaf"}],"id":"7ac2c29c-dfb1-4962-aa1c-0fa89060f0a7","description":"<p>To keep your data safe and ensure only authorized users can access the VAT Care API, every request must be authenticated. The API uses secure API keys (or tokens) that act like a digital pass for your business.</p>\n<ul>\n<li><p>Each business receives a unique key or token.</p>\n</li>\n<li><p>This key must be included in your requests to prove your identity.</p>\n</li>\n<li><p>Without the correct authentication, the system will block the request for security reasons.</p>\n</li>\n</ul>\n<p>Think of it as your business’s secure ID card when interacting with the API—it ensures that only you can create, cancel, or view your invoices.</p>\n","_postman_id":"7ac2c29c-dfb1-4962-aa1c-0fa89060f0a7"},{"name":"Invoice","item":[{"name":"Generate Invoice","id":"53f389b9-a539-4ecc-908f-582aaec54efa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer abcd"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"scope\": {\r\n        \"qr_html\": false,\r\n        \"qr_base64\": false,\r\n        \"qr_base64_format\": \"jpg\",\r\n        \"qr_svg\": false,\r\n        \"qr_string\": true,\r\n        \"invoice_pdf\": false,\r\n        \"invoice_xml\": false\r\n    },\r\n    \"origin\": \"API\",\r\n    \"user_id\": 22,\r\n    \"invoice_number\": \"CS-001702\",\r\n    \"invoice_date\": \"2024-09-17\",\r\n    \"supply_date\": \"2024-09-17\",\r\n    \"invoice_type\": \"Standard\",\r\n    \"document_reference\": \"\",\r\n    \"advance_invoice_uuid\": \"\",\r\n    \"business_type\": \"B2B\",\r\n    \"time_stamp\": \"2024-09-17 18:46:04\",\r\n    \"operator_name\": \"\",\r\n    \"invoice_id\": \"123458\",\r\n    \"vc_uuid\": \"\",\r\n    \"seller_id\": 3,\r\n    \"buyer_id\": 2482,\r\n    \"allowance\": [],\r\n    \"charges\": [],\r\n    \"seller_english\": {\r\n        \"name\": \"HAL TEST SERVER\",\r\n        \"building_number\": \"1234\",\r\n        \"street_name_1\": \"King Salman Road\",\r\n        \"street_name_2\": \"line two\",\r\n        \"district\": \"Riyadh\",\r\n        \"city\": \"Riyadh\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"123456\",\r\n        \"vat_number\": \"311278518500003\",\r\n        \"cr_number\": \"4030605038\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"seller_arabic\": {\r\n        \"name\": \"\",\r\n        \"building_number\": \"\",\r\n        \"street_name_1\": \"\",\r\n        \"street_name_2\": \"\",\r\n        \"district\": \"\",\r\n        \"city\": \"\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"123456\",\r\n        \"vat_number\": \"311278518500003\",\r\n        \"cr_number\": \"4030605038\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"buyer_english\": {\r\n        \"name\": \"Udaya\",\r\n        \"building_number\": \"-\",\r\n        \"street_name_1\": \"-\",\r\n        \"street_name_2\": \"-\",\r\n        \"district\": \"-\",\r\n        \"city\": \"-\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"00000\",\r\n        \"vat_number\": \"-\",\r\n        \"cr_number\": \"\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\",\r\n        \"other_buyer_id\": \"123ABC12\"\r\n    },\r\n    \"buyer_arabic\": {\r\n        \"name\": null,\r\n        \"building_number\": \"-\",\r\n        \"street_name_1\": \"-\",\r\n        \"street_name_2\": \"-\",\r\n        \"district\": \"-\",\r\n        \"city\": \"-\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"00000\",\r\n        \"vat_number\": \"-\",\r\n        \"cr_number\": \"\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"items\": [\r\n        {\r\n            \"item_id\": 30469,\r\n            \"name_english\": \"Charging Base for Sonos Move White\",\r\n            \"description_english\": \"Enter Item Description\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 1000,\r\n            \"quantity\": \"4.0000\",\r\n            \"item_price\": 1000,\r\n            \"discount_percent\": 50,\r\n            \"discount_amount\": 2000,\r\n            \"taxable_amount\": 1739.13,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 260.87,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 2000,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        },\r\n        {\r\n            \"item_id\": 30470,\r\n            \"name_english\": \"Era 300 Stand WW (White)\",\r\n            \"description_english\": \"Enter Item Description\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 2000,\r\n            \"quantity\": \"5.0000\",\r\n            \"item_price\": 2000,\r\n            \"discount_percent\": 10,\r\n            \"discount_amount\": 1000,\r\n            \"taxable_amount\": 7826.09,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 1173.91,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 9000,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        },\r\n        {\r\n            \"item_id\": 30471,\r\n            \"name_english\": \"Fabircation\",\r\n            \"description_english\": \"Non Inventory\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 3000,\r\n            \"quantity\": \"7.0000\",\r\n            \"item_price\": 3000,\r\n            \"discount_percent\": \"40\",\r\n            \"discount_amount\": 8400,\r\n            \"taxable_amount\": 10956.52,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 1643.48,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 12600,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        }\r\n    ],\r\n    \"total\": {\r\n        \"sub_total\": 23600,\r\n        \"discount\": 11400,\r\n        \"taxable_total\": 20521.74,\r\n        \"vat_total\": 3078.26,\r\n        \"net_amount\": 23600\r\n    },\r\n    \"additional_data\": {\r\n        \"request_id\": \"JPeffczzYAvTFYAM7xDNuyiWQ6u7tjVpQaMEH3CBSMVwLw5lZa\",\r\n        \"rootmodel_id\": 12900,\r\n        \"valtranstypes_id\": 3\r\n    }\r\n}"},"url":"https://api.dev.v2.vatcare.app/api/invoice/generate","description":"<h3 id=\"tax-exemption-codes-and-reasons\">Tax Exemption Codes and Reasons</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Tax Exemption Code</th>\n<th>Tax Mode</th>\n<th>Sample Reason (EN / AR)</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>VATEX-SA-29</td>\n<td>Exempt</td>\n<td>Financial services mentioned in Article 29 of the VAT Regulations / الخدمات المالية المذكورة في المادة 29 من لائحة ضريبة القيمة المضافة</td>\n</tr>\n<tr>\n<td>VATEX-SA-29-7</td>\n<td>Exempt</td>\n<td>Life insurance services mentioned in Article 29 of the VAT Regulations / اللوائح خدمات التأمين على الحياة المذكورة في المادة 29 من لائحة ضريبة القيمة المضافة</td>\n</tr>\n<tr>\n<td>VATEX-SA-30</td>\n<td>Exempt</td>\n<td>Real estate transactions mentioned in Article 30 of the VAT Regulations / المعاملات العقارية المذكورة في المادة 30 من لائحة ضريبة القيمة المضافة</td>\n</tr>\n<tr>\n<td>VATEX-SA-32</td>\n<td>Zero</td>\n<td>Export of goods / تصدير السلع</td>\n</tr>\n<tr>\n<td>VATEX-SA-33</td>\n<td>Zero</td>\n<td>Export of services / تصدير الخدمات</td>\n</tr>\n<tr>\n<td>VATEX-SA-34-1</td>\n<td>Zero</td>\n<td>The international transport of Goods / النقل الدولي للسلع</td>\n</tr>\n<tr>\n<td>VATEX-SA-34-2</td>\n<td>Zero</td>\n<td>International transport of passengers / النقل الدولي للركاب</td>\n</tr>\n<tr>\n<td>VATEX-SA-34-3</td>\n<td>Zero</td>\n<td>Services directly connected and incidental to a Supply of international passenger transport / الخدمات المرتبطة بشكل مباشر والمرتبطة بتوريد النقل الدولي للركاب</td>\n</tr>\n<tr>\n<td>VATEX-SA-34-4</td>\n<td>Zero</td>\n<td>Supply of a qualifying means of transport / توريد وسيلة نقل مؤهلة</td>\n</tr>\n<tr>\n<td>VATEX-SA-34-5</td>\n<td>Zero</td>\n<td>Any services relating to Goods or passenger transportation, as defined in article twenty five of these Regulations / أي خدمات تتعلق بالسلع أو نقل الركاب، كما هو محدد في المادة الخامسة والعشرين من هذه اللائحة</td>\n</tr>\n<tr>\n<td>VATEX-SA-35</td>\n<td>Zero</td>\n<td>Medicines and medical equipment / الأدوية والمعدات الطبية</td>\n</tr>\n<tr>\n<td>VATEX-SA-36</td>\n<td>Zero</td>\n<td>Qualifying metals / المعادن المؤهلة</td>\n</tr>\n<tr>\n<td>VATEX-SA-EDU</td>\n<td>Zero</td>\n<td>Private education to citizen / التعليم الخاص للمواطنين</td>\n</tr>\n<tr>\n<td>VATEX-SA-HEA</td>\n<td>Zero</td>\n<td>Private healthcare to citizen / الرعاية الصحية الخاصة للمواطنين</td>\n</tr>\n<tr>\n<td>VATEX-SA-MLTRY</td>\n<td>Zero</td>\n<td>Supply of qualified military goods / توريد السلع العسكرية المؤهلة</td>\n</tr>\n<tr>\n<td>VATEX-SA-OOS</td>\n<td>NA</td>\n<td>Free Text</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>403</td>\n<td>No Access</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Validation Error</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n</tr>\n<tr>\n<td>1001</td>\n<td>Invalid User Id</td>\n</tr>\n<tr>\n<td>2001</td>\n<td>Your Profile is Not Approved</td>\n</tr>\n<tr>\n<td>2002</td>\n<td>You Don't Have Any Active Plan</td>\n</tr>\n<tr>\n<td>2003</td>\n<td>Your Plan has Expired</td>\n</tr>\n<tr>\n<td>2101</td>\n<td>Duplicate Invoice ID</td>\n</tr>\n<tr>\n<td>3001</td>\n<td>Origin is Inactive</td>\n</tr>\n<tr>\n<td>3002</td>\n<td>Validation error based on Invoice creation</td>\n</tr>\n<tr>\n<td>3003</td>\n<td>Validation error based on credit note</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"vatcare-response\">VATCare Response</h3>\n<p>Response from VATCare Portal is as follows</p>\n<p>$response = [<br />    'status' =&gt; 'success', // string: success or error<br />    'code' =&gt; $code,        // int<br />    'message' =&gt; $message,  // string<br />    'data' =&gt; $data,        // array (sometimes this may not be included)<br />];</p>\n<hr />\n<h3 id=\"invoice-object\">Invoice Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Yes</td>\n<td>enum : \"API\"</td>\n<td>Origin of the request</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td></td>\n<td>User ID in VAT Care Portal</td>\n</tr>\n<tr>\n<td>invoice_number</td>\n<td>String</td>\n<td>Yes</td>\n<td></td>\n<td>Document Number in ERP</td>\n</tr>\n<tr>\n<td>invoice_date</td>\n<td>String</td>\n<td>Yes</td>\n<td>minLength : 10  <br />maxLength : 10  <br />Format : YYYY-MM-DD</td>\n<td>Invoice Date</td>\n</tr>\n<tr>\n<td>supply_date</td>\n<td>String</td>\n<td>Yes</td>\n<td>minLength : 10  <br />maxLength : 10  <br />Format : YYYY-MM-DD</td>\n<td>Supply Date</td>\n</tr>\n<tr>\n<td>invoice_type</td>\n<td>String</td>\n<td>Yes</td>\n<td>enum : \"Standard\", 'Simplified\", \"Standard Return\", Simplified Return\", \"Credit Note\", \"Debit Note\"</td>\n<td>Type of Invoice</td>\n</tr>\n<tr>\n<td>business_type</td>\n<td>String</td>\n<td>No</td>\n<td>Conditional Validation  <br />enum : \"B2B\", \"B2B-Exempted\",\"B2C\"</td>\n<td>Type of Business Transaction  <br />B2B : Business to Business  <br />B2B-Exempted : Business to Business in which Buyer is Exempted from VAT  <br />B2C : Business to Customer  <br />Default Value is B2B</td>\n</tr>\n<tr>\n<td>time_stamp</td>\n<td>String</td>\n<td>Yes</td>\n<td>Format : \"YYYY-MM-DD HH:MM:SS\"</td>\n<td>Time Stamp from ERP</td>\n</tr>\n<tr>\n<td>operator_name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>User Name in ERP</td>\n</tr>\n<tr>\n<td>invoice_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Invoice ID in ERP</td>\n</tr>\n<tr>\n<td>vc_uuid</td>\n<td>Number</td>\n<td>No</td>\n<td>Big Integer</td>\n<td>UUID of the Invoice (Corrected Invoice)</td>\n</tr>\n<tr>\n<td>seller_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Seller ID in ERP</td>\n</tr>\n<tr>\n<td>buyer_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Buyer ID in ERP</td>\n</tr>\n<tr>\n<td>seller_english</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>seller_arabic</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_english</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_arabic</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>items</td>\n<td>Object Array</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>total</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>additional_data</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>scope</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Allowance</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Charges</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"seller-english-object\">Seller English Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Name in English. Mandatory, if 'name' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 4</td>\n<td>Seller Building in English. Mandatory, if 'building' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name in English. Mandatory, if 'street_name_1' in 'Seller Arabic' object is Null.</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name : Additional Line in English. Mandatory, if 'street_name_2' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Seller District in English. Mandatory, if 'district' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller City in English. Mandatory, if 'city' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Country in English. Mandatory, if 'country' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 5</td>\n<td>Seller Postal Code. Mandatory, if 'postal_code' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller VAT Number. Mandatory, if 'vat_number' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the seller</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the seller</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"seller-arabic-object\">Seller Arabic Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Name in Arabic</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 4</td>\n<td>Seller Building in Arabic</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name in Arabic</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name : Additional Line in Arabic</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller District in Arabic</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller City in Arabic</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Country in Arabic</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 5</td>\n<td>Seller Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller VAT Number</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the seller</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the seller</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"buyer-english-object\">Buyer English Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Name in English. Mandatory, if 'name' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 4</td>\n<td>Buyer Building in English. Mandatory, if 'building' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name in English. Mandatory, if 'street_name_1' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name : Additional Line in English. Mandatory, if 'street_name_2' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Buyer District in English. Mandatory, if 'district' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer City in English. Mandatory, if 'city' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Country in English. Mandatory, if 'country' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 5</td>\n<td>Buyer Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer VAT Number. Mandatory, if 'business_type' is \"B2B\" and 'vat_number' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Company Registration Number (PartyIdentification:schemeID = CRN)</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the buyer</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id related to buyer for internal use</td>\n</tr>\n<tr>\n<td>other_buyer_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>OTH ID - Other Buyer ID - (PartyIdentification:schemeID = OTH)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"buyer-arabic-object\">Buyer Arabic Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Name in Arabic</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 1</td>\n<td>Buyer Building in Arabic</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name in Arabic</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name : Additional Line in Arabic</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Buyer District in Arabic</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer City in Arabic</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Country in Arabic</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 5</td>\n<td>Buyer Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer VAT Number</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Company Registration Number (PartyIdentification:schemeID = CRN)</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the buyer</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id related to buyer for internal use</td>\n</tr>\n<tr>\n<td>other_buyer_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>OTH ID - Other Buyer ID - (PartyIdentification:schemeID = OTH)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"item-object\">Item Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>item_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Integer</td>\n<td>Item ID</td>\n</tr>\n<tr>\n<td>name_english</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Name in English. Mandatory, if 'name_arabic' is Null</td>\n</tr>\n<tr>\n<td>description_english</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Description in English</td>\n</tr>\n<tr>\n<td>name_arabic</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Name in Arabic</td>\n</tr>\n<tr>\n<td>description_arabic</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Description in Arabic</td>\n</tr>\n<tr>\n<td>unit_of_measurement</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Unit of Measurement</td>\n</tr>\n<tr>\n<td>unit_price</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Unit price of the item</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Quantity sold</td>\n</tr>\n<tr>\n<td>item_price</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Unit price X Quantity</td>\n</tr>\n<tr>\n<td>discount_percent</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Percent</td>\n</tr>\n<tr>\n<td>discount_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Amount</td>\n</tr>\n<tr>\n<td>taxable_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Item Price - Discount Amount</td>\n</tr>\n<tr>\n<td>rate_of_tax</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Rate of Tax</td>\n</tr>\n<tr>\n<td>tax_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Amount * Rate of Tax / 100</td>\n</tr>\n<tr>\n<td>tax_mode</td>\n<td>String</td>\n<td>Yes</td>\n<td>Enum : \"Inclusive\", \"Exclusive\", \"Exempt\", \"Saudi Citizen Service\", \"Zero\"</td>\n<td></td>\n</tr>\n<tr>\n<td>tax_exemption_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Enum</td>\n<td>VATEX-SA-29,VATEX-SA-29-7,VATEX-SA-30,VATEX-SA-32,VATEX-SA-33,VATEX-SA-34-1,VATEX-SA-34-2,VATEX-SA-34-3,VATEX-SA-34-4,VATEX-SA-34-5,VATEX-SA-35,VATEX-SA-36,VATEX-SA-EDU,VATEX-SA-HEA,VATEX-SA-MLTRY,VATEX-SA-OOS</td>\n</tr>\n<tr>\n<td>tax_exemption_reason</td>\n<td>String</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Free Text</td>\n</tr>\n<tr>\n<td>sub_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Amount + Tax Amount</td>\n</tr>\n<tr>\n<td>additonal_data</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"total-object\">Total Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sub_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Total</td>\n</tr>\n<tr>\n<td>taxable_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total - Discount Total</td>\n</tr>\n<tr>\n<td>vat_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>VAT Amount Total</td>\n</tr>\n<tr>\n<td>net_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Total + VAT Total</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"allowance-object--reduces-the-total-by-its-value\">Allowance <strong>Object — Reduces the total by its value.</strong></h3>\n<p>Reason Codes - <a href=\"https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm\">https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm</a></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>reason_code</td>\n<td>Number</td>\n<td>Yes</td>\n<td>String</td>\n<td>Reason Codes - <a href=\"https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm\">https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm</a></td>\n</tr>\n<tr>\n<td>reason</td>\n<td>Number</td>\n<td>Yes</td>\n<td>String</td>\n<td>Free text</td>\n</tr>\n<tr>\n<td>taxable_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total - Discount Total</td>\n</tr>\n<tr>\n<td>rate_of_tax</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Rate of Tax</td>\n</tr>\n<tr>\n<td>tax_exemption_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Enum</td>\n<td>VATEX-SA-29,VATEX-SA-29-7,VATEX-SA-30,VATEX-SA-32,VATEX-SA-33,VATEX-SA-34-1,VATEX-SA-34-2,VATEX-SA-34-3,VATEX-SA-34-4,VATEX-SA-34-5,VATEX-SA-35,VATEX-SA-36,VATEX-SA-EDU,VATEX-SA-HEA,VATEX-SA-MLTRY,VATEX-SA-OOS</td>\n</tr>\n<tr>\n<td>tax_exemption_reason</td>\n<td>String</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Free Text</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"charges-object--adds-its-value-into-the-overall-total\">Charges <strong>Object — Adds its value into the overall total.</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>reason_code</td>\n<td>Number</td>\n<td>Yes</td>\n<td>String</td>\n<td>Reason Codes - <a href=\"https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm\">https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm</a></td>\n</tr>\n<tr>\n<td>reason</td>\n<td>Number</td>\n<td>Yes</td>\n<td>String</td>\n<td>Free text</td>\n</tr>\n<tr>\n<td>taxable_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total - Discount Total</td>\n</tr>\n<tr>\n<td>rate_of_tax</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Rate of Tax</td>\n</tr>\n<tr>\n<td>tax_exemption_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Enum</td>\n<td>VATEX-SA-29,VATEX-SA-29-7,VATEX-SA-30,VATEX-SA-32,VATEX-SA-33,VATEX-SA-34-1,VATEX-SA-34-2,VATEX-SA-34-3,VATEX-SA-34-4,VATEX-SA-34-5,VATEX-SA-35,VATEX-SA-36,VATEX-SA-EDU,VATEX-SA-HEA,VATEX-SA-MLTRY,VATEX-SA-OOS</td>\n</tr>\n<tr>\n<td>tax_exemption_reason</td>\n<td>String</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Free Text</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"scope-object\">Scope Object</h3>\n<p>Required Response parameters can be flagged through this object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>qr_html</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in HTML Format</td>\n</tr>\n<tr>\n<td>qr_base64</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in Base64 Encoded Format</td>\n</tr>\n<tr>\n<td>qr_svg</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in SVG Format</td>\n</tr>\n<tr>\n<td>qr_string</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice as String</td>\n</tr>\n<tr>\n<td>qr_base64_format</td>\n<td>String</td>\n<td>No</td>\n<td>Enum : \"png\", \"jpg\", \"svg\"</td>\n<td>Base64 response format. Default is \"png\"</td>\n</tr>\n<tr>\n<td>invoice_pdf</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>E-Invoice in PDF Format</td>\n</tr>\n<tr>\n<td>invoice_xml</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>E-Invoice in XML Format</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["generate"],"host":["https://api.dev.v2.vatcare.app/api/invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"53f389b9-a539-4ecc-908f-582aaec54efa"},{"name":"Generate Invoice - Doc Level Allowance and Charges","id":"230b13fb-36c4-43dd-9d82-1e2afd6313f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer abcd"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"scope\": {\r\n        \"qr_html\": false,\r\n        \"qr_base64\": false,\r\n        \"qr_base64_format\": \"jpg\",\r\n        \"qr_svg\": false,\r\n        \"qr_string\": true,\r\n        \"invoice_pdf\": false,\r\n        \"invoice_xml\": false\r\n    },\r\n    \"origin\": \"API\",\r\n    \"user_id\": 22,\r\n    \"invoice_number\": \"CS-001702\",\r\n    \"invoice_date\": \"2024-09-17\",\r\n    \"supply_date\": \"2024-09-17\",\r\n    \"invoice_type\": \"Standard\",\r\n    \"document_reference\": \"\",\r\n    \"advance_invoice_uuid\": \"\",\r\n    \"business_type\": \"B2B\",\r\n    \"time_stamp\": \"2024-09-17 18:46:04\",\r\n    \"operator_name\": \"\",\r\n    \"invoice_id\": \"123458\",\r\n    \"vc_uuid\": \"\",\r\n    \"seller_id\": 3,\r\n    \"buyer_id\": 2482,\r\n    \"allowance\": [\r\n        {\r\n        \"reason_code\": \"47\",\r\n        \"reason\": \"Retention or Contractual charges\",\r\n        \"taxable_amount\": 100,\r\n        \"rate_of_tax\": 0,\r\n        \"tax_exemption_code\": \"VATEX-SA-OOS\",\r\n        \"tax_exemption_reason\": \"Retention or Contractual charges\"\r\n        }\r\n    ],\r\n    \"charges\": [\r\n        {\r\n            \"reason_code\" : \"47\",\r\n            \"reason\" : \"Handling\",\r\n            \"taxable_amount\" : 0,\r\n            \"rate_of_tax\" : 0,\r\n            \"tax_exemption_code\" : \"VATEX-SA-OOS\",\r\n            \"tax_exemption_reason\" : \"Discount\"\r\n        }\r\n    ],\r\n    \"seller_english\": {\r\n        \"name\": \"HAL TEST SERVER\",\r\n        \"building_number\": \"1234\",\r\n        \"street_name_1\": \"King Salman Road\",\r\n        \"street_name_2\": \"line two\",\r\n        \"district\": \"Riyadh\",\r\n        \"city\": \"Riyadh\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"123456\",\r\n        \"vat_number\": \"311278518500003\",\r\n        \"cr_number\": \"4030605038\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"seller_arabic\": {\r\n        \"name\": \"\",\r\n        \"building_number\": \"\",\r\n        \"street_name_1\": \"\",\r\n        \"street_name_2\": \"\",\r\n        \"district\": \"\",\r\n        \"city\": \"\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"123456\",\r\n        \"vat_number\": \"311278518500003\",\r\n        \"cr_number\": \"4030605038\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"buyer_english\": {\r\n        \"name\": \"Udaya\",\r\n        \"building_number\": \"-\",\r\n        \"street_name_1\": \"-\",\r\n        \"street_name_2\": \"-\",\r\n        \"district\": \"-\",\r\n        \"city\": \"-\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"00000\",\r\n        \"vat_number\": \"-\",\r\n        \"cr_number\": \"\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\",\r\n        \"other_buyer_id\": \"123ABC12\"\r\n    },\r\n    \"buyer_arabic\": {\r\n        \"name\": null,\r\n        \"building_number\": \"-\",\r\n        \"street_name_1\": \"-\",\r\n        \"street_name_2\": \"-\",\r\n        \"district\": \"-\",\r\n        \"city\": \"-\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"00000\",\r\n        \"vat_number\": \"-\",\r\n        \"cr_number\": \"\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"items\": [\r\n        {\r\n            \"item_id\": 30469,\r\n            \"name_english\": \"Charging Base for Sonos Move White\",\r\n            \"description_english\": \"Enter Item Description\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 1000,\r\n            \"quantity\": \"4.0000\",\r\n            \"item_price\": 1000,\r\n            \"discount_percent\": 50,\r\n            \"discount_amount\": 2000,\r\n            \"taxable_amount\": 1739.13,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 260.87,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 2000,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        },\r\n        {\r\n            \"item_id\": 30470,\r\n            \"name_english\": \"Era 300 Stand WW (White)\",\r\n            \"description_english\": \"Enter Item Description\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 2000,\r\n            \"quantity\": \"5.0000\",\r\n            \"item_price\": 2000,\r\n            \"discount_percent\": 10,\r\n            \"discount_amount\": 1000,\r\n            \"taxable_amount\": 7826.09,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 1173.91,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 9000,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        },\r\n        {\r\n            \"item_id\": 30471,\r\n            \"name_english\": \"Fabircation\",\r\n            \"description_english\": \"Non Inventory\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 3000,\r\n            \"quantity\": \"7.0000\",\r\n            \"item_price\": 3000,\r\n            \"discount_percent\": \"40\",\r\n            \"discount_amount\": 8400,\r\n            \"taxable_amount\": 10956.52,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 1643.48,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 12600,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        }\r\n    ],\r\n    \"total\": {\r\n        \"sub_total\": 23600,\r\n        \"discount\": 11400,\r\n        \"taxable_total\": 20521.74,\r\n        \"vat_total\": 3078.26,\r\n        \"net_amount\": 23600\r\n    },\r\n    \"additional_data\": {\r\n        \"request_id\": \"JPeffczzYAvTFYAM7xDNuyiWQ6u7tjVpQaMEH3CBSMVwLw5lZa\",\r\n        \"rootmodel_id\": 12900,\r\n        \"valtranstypes_id\": 3\r\n    }\r\n}"},"url":"https://api.dev.v2.vatcare.app/api/invoice/generate","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Yes</td>\n<td>enum : \"API\"</td>\n<td>Origin of the request</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td></td>\n<td>User ID in VAT Care Portal</td>\n</tr>\n<tr>\n<td>invoice_number</td>\n<td>String</td>\n<td>Yes</td>\n<td></td>\n<td>Document Number in ERP</td>\n</tr>\n<tr>\n<td>invoice_date</td>\n<td>String</td>\n<td>Yes</td>\n<td>minLength : 10  <br />maxLength : 10  <br />Format : YYYY-MM-DD</td>\n<td>Invoice Date</td>\n</tr>\n<tr>\n<td>supply_date</td>\n<td>String</td>\n<td>Yes</td>\n<td>minLength : 10  <br />maxLength : 10  <br />Format : YYYY-MM-DD</td>\n<td>Supply Date</td>\n</tr>\n<tr>\n<td>invoice_type</td>\n<td>String</td>\n<td>Yes</td>\n<td>enum : \"Standard\", 'Simplified\", \"Standard Return\", Simplified Return\", \"Credit Note\", \"Debit Note\"</td>\n<td>Type of Invoice</td>\n</tr>\n<tr>\n<td>business_type</td>\n<td>String</td>\n<td>No</td>\n<td>Conditional Validation  <br />enum : \"B2B\", \"B2B-Exempted\",\"B2G\",\"B2C\"</td>\n<td>Type of Business Transaction  <br />B2B : Business to Business  <br />B2B-Exempted : Business to Business in which Buyer is Exempted from VAT  <br />B2G : Business to Government  <br />B2C : Business to Customer  <br />Default Value is B2B</td>\n</tr>\n<tr>\n<td>time_stamp</td>\n<td>String</td>\n<td>Yes</td>\n<td>Format : \"YYYY-MM-DD HH:MM:SS\"</td>\n<td>Time Stamp from ERP</td>\n</tr>\n<tr>\n<td>operator_name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>User Name in ERP</td>\n</tr>\n<tr>\n<td>invoice_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Invoice ID in ERP</td>\n</tr>\n<tr>\n<td>seller_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Seller ID in ERP</td>\n</tr>\n<tr>\n<td>buyer_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Buyer ID in ERP</td>\n</tr>\n<tr>\n<td>seller_english</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>seller_arabic</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_english</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_arabic</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>items</td>\n<td>Object Array</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>total</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>additional_data</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>scope</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"seller-english-object\">Seller English Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Name in English. Mandatory, if 'name' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 4</td>\n<td>Seller Building in English. Mandatory, if 'building' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name in English. Mandatory, if 'street_name_1' in 'Seller Arabic' object is Null.</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name : Additional Line in English. Mandatory, if 'street_name_2' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Seller District in English. Mandatory, if 'district' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller City in English. Mandatory, if 'city' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Country in English. Mandatory, if 'country' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 5</td>\n<td>Seller Postal Code. Mandatory, if 'postal_code' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller VAT Number. Mandatory, if 'vat_number' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the seller</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the seller</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"seller-arabic-object\">Seller Arabic Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Name in Arabic</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 4</td>\n<td>Seller Building in Arabic</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name in Arabic</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name : Additional Line in Arabic</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller District in Arabic</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller City in Arabic</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Country in Arabic</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 5</td>\n<td>Seller Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller VAT Number</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the seller</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the seller</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"buyer-english-object\">Buyer English Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Name in English. Mandatory, if 'name' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 4</td>\n<td>Buyer Building in English. Mandatory, if 'building' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name in English. Mandatory, if 'street_name_1' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name : Additional Line in English. Mandatory, if 'street_name_2' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Buyer District in English. Mandatory, if 'district' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer City in English. Mandatory, if 'city' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Country in English. Mandatory, if 'country' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 5</td>\n<td>Buyer Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer VAT Number. Mandatory, if 'business_type' is \"B2B\" and 'vat_number' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the buyer</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the buyer</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"buyer-arabic-object\">Buyer Arabic Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Name in Arabic</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 1</td>\n<td>Buyer Building in Arabic</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name in Arabic</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name : Additional Line in Arabic</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Buyer District in Arabic</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer City in Arabic</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Country in Arabic</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 5</td>\n<td>Buyer Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer VAT Number</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the buyer</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the buyer</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"item-object\">Item Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>item_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Integer</td>\n<td>Item ID</td>\n</tr>\n<tr>\n<td>name_english</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Name in English. Mandatory, if 'name_arabic' is Null</td>\n</tr>\n<tr>\n<td>description_english</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Description in English</td>\n</tr>\n<tr>\n<td>name_arabic</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Name in Arabic</td>\n</tr>\n<tr>\n<td>description_arabic</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Description in Arabic</td>\n</tr>\n<tr>\n<td>unit_of_measurement</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Unit of Measurement</td>\n</tr>\n<tr>\n<td>unit_price</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Unit price of the item</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Quantity sold</td>\n</tr>\n<tr>\n<td>item_price</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Unit price X Quantity</td>\n</tr>\n<tr>\n<td>discount_percent</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Percent</td>\n</tr>\n<tr>\n<td>discount_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Amount</td>\n</tr>\n<tr>\n<td>taxable_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Item Price - Discount Amount</td>\n</tr>\n<tr>\n<td>rate_of_tax</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Rate of Tax</td>\n</tr>\n<tr>\n<td>tax_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Amount * Rate of Tax / 100</td>\n</tr>\n<tr>\n<td>tax_mode</td>\n<td>String</td>\n<td>Yes</td>\n<td>Enum : \"Inclusive\", \"Exclusive\", \"Exempt\", \"Saudi Citizen Service\", \"Zero\"</td>\n<td></td>\n</tr>\n<tr>\n<td>sub_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Amount + Tax Amount</td>\n</tr>\n<tr>\n<td>additonal_data</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"total-object\">Total Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sub_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Total</td>\n</tr>\n<tr>\n<td>taxable_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total - Discount Total</td>\n</tr>\n<tr>\n<td>vat_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>VAT Amount Total</td>\n</tr>\n<tr>\n<td>net_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Total + VAT Total</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"scope-object\">Scope Object</h3>\n<p>Required Response parameters can be flagged through this object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>qr_html</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in HTML Format</td>\n</tr>\n<tr>\n<td>qr_base64</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in Base64 Encoded Format</td>\n</tr>\n<tr>\n<td>qr_svg</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in SVG Format</td>\n</tr>\n<tr>\n<td>qr_string</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice as String</td>\n</tr>\n<tr>\n<td>qr_base64_format</td>\n<td>String</td>\n<td>No</td>\n<td>Enum : \"png\", \"jpg\", \"svg\"</td>\n<td>Base64 response format. Default is \"png\"</td>\n</tr>\n<tr>\n<td>invoice_pdf</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>E-Invoice in PDF Format</td>\n</tr>\n<tr>\n<td>invoice_xml</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>E-Invoice in XML Format</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["generate"],"host":["https://api.dev.v2.vatcare.app/api/invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"230b13fb-36c4-43dd-9d82-1e2afd6313f4"},{"name":"Generate Invoice - Item Level Allowance and Charges","id":"003133c7-2c15-41ed-80db-3d784f3b8fae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer abcd"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"scope\": {\r\n        \"qr_html\": false,\r\n        \"qr_base64\": false,\r\n        \"qr_base64_format\": \"jpg\",\r\n        \"qr_svg\": false,\r\n        \"qr_string\": true,\r\n        \"invoice_pdf\": false,\r\n        \"invoice_xml\": false\r\n    },\r\n    \"origin\": \"API\",\r\n    \"user_id\": 22,\r\n    \"invoice_number\": \"CS-001702\",\r\n    \"invoice_date\": \"2024-09-17\",\r\n    \"supply_date\": \"2024-09-17\",\r\n    \"invoice_type\": \"Standard\",\r\n    \"document_reference\": \"\",\r\n    \"advance_invoice_uuid\": \"\",\r\n    \"business_type\": \"B2B\",\r\n    \"time_stamp\": \"2024-09-17 18:46:04\",\r\n    \"operator_name\": \"\",\r\n    \"invoice_id\": \"123458\",\r\n    \"vc_uuid\": \"\",\r\n    \"seller_id\": 3,\r\n    \"buyer_id\": 2482,\r\n    \"allowance\": [],\r\n    \"charges\": [],\r\n    \"seller_english\": {\r\n        \"name\": \"HAL TEST SERVER\",\r\n        \"building_number\": \"1234\",\r\n        \"street_name_1\": \"King Salman Road\",\r\n        \"street_name_2\": \"line two\",\r\n        \"district\": \"Riyadh\",\r\n        \"city\": \"Riyadh\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"123456\",\r\n        \"vat_number\": \"311278518500003\",\r\n        \"cr_number\": \"4030605038\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"seller_arabic\": {\r\n        \"name\": \"\",\r\n        \"building_number\": \"\",\r\n        \"street_name_1\": \"\",\r\n        \"street_name_2\": \"\",\r\n        \"district\": \"\",\r\n        \"city\": \"\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"123456\",\r\n        \"vat_number\": \"311278518500003\",\r\n        \"cr_number\": \"4030605038\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"buyer_english\": {\r\n        \"name\": \"Udaya\",\r\n        \"building_number\": \"-\",\r\n        \"street_name_1\": \"-\",\r\n        \"street_name_2\": \"-\",\r\n        \"district\": \"-\",\r\n        \"city\": \"-\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"00000\",\r\n        \"vat_number\": \"-\",\r\n        \"cr_number\": \"\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\",\r\n        \"other_buyer_id\": \"123ABC12\"\r\n    },\r\n    \"buyer_arabic\": {\r\n        \"name\": null,\r\n        \"building_number\": \"-\",\r\n        \"street_name_1\": \"-\",\r\n        \"street_name_2\": \"-\",\r\n        \"district\": \"-\",\r\n        \"city\": \"-\",\r\n        \"country\": \"SAU\",\r\n        \"postal_code\": \"00000\",\r\n        \"vat_number\": \"-\",\r\n        \"cr_number\": \"\",\r\n        \"additional_number\": \"\",\r\n        \"other_id\": \"\"\r\n    },\r\n    \"items\": [\r\n        {\r\n            \"item_id\": 30469,\r\n            \"name_english\": \"Charging Base for Sonos Move White\",\r\n            \"description_english\": \"Enter Item Description\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 1000,\r\n            \"quantity\": \"4.0000\",\r\n            \"item_price\": 1000,\r\n            \"discount_percent\": 50,\r\n            \"discount_amount\": 2000,\r\n            \"taxable_amount\": 1739.13,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 260.87,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 2000,\r\n            \"additional_data\": [],\r\n            \"allowance\": [\r\n                {\r\n                    \"reason_code\" : \"47\",\r\n                    \"reason\" : \"Retention\",\r\n                    \"amount\" : 0\r\n                }\r\n            ],\r\n            \"charges\": [\r\n                {\r\n                    \"reason_code\" : \"47\",\r\n                    \"reason\" : \"Handling\",\r\n                    \"amount\" : 0\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"item_id\": 30470,\r\n            \"name_english\": \"Era 300 Stand WW (White)\",\r\n            \"description_english\": \"Enter Item Description\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 2000,\r\n            \"quantity\": \"5.0000\",\r\n            \"item_price\": 2000,\r\n            \"discount_percent\": 10,\r\n            \"discount_amount\": 1000,\r\n            \"taxable_amount\": 7826.09,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 1173.91,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 9000,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        },\r\n        {\r\n            \"item_id\": 30471,\r\n            \"name_english\": \"Fabircation\",\r\n            \"description_english\": \"Non Inventory\",\r\n            \"name_arabic\": null,\r\n            \"description_arabic\": \"-\",\r\n            \"unit_of_measurement\": \"\",\r\n            \"unit_price\": 3000,\r\n            \"quantity\": \"7.0000\",\r\n            \"item_price\": 3000,\r\n            \"discount_percent\": \"40\",\r\n            \"discount_amount\": 8400,\r\n            \"taxable_amount\": 10956.52,\r\n            \"rate_of_tax\": 15,\r\n            \"tax_amount\": 1643.48,\r\n            \"tax_mode\": \"Inclusive\",\r\n            \"exemption_code\": \"\",\r\n            \"exemption_reason\": \"\",\r\n            \"sub_total\": 12600,\r\n            \"additional_data\": [],\r\n            \"allowance\": [],\r\n            \"charges\": []\r\n        }\r\n    ],\r\n    \"total\": {\r\n        \"sub_total\": 23600,\r\n        \"discount\": 11400,\r\n        \"taxable_total\": 20521.74,\r\n        \"vat_total\": 3078.26,\r\n        \"net_amount\": 23600\r\n    },\r\n    \"additional_data\": {\r\n        \"request_id\": \"JPeffczzYAvTFYAM7xDNuyiWQ6u7tjVpQaMEH3CBSMVwLw5lZa\",\r\n        \"rootmodel_id\": 12900,\r\n        \"valtranstypes_id\": 3\r\n    }\r\n}"},"url":"https://api.dev.v2.vatcare.app/api/invoice/generate","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>origin</td>\n<td>String</td>\n<td>Yes</td>\n<td>enum : \"API\"</td>\n<td>Origin of the request</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td></td>\n<td>User ID in VAT Care Portal</td>\n</tr>\n<tr>\n<td>invoice_number</td>\n<td>String</td>\n<td>Yes</td>\n<td></td>\n<td>Document Number in ERP</td>\n</tr>\n<tr>\n<td>invoice_date</td>\n<td>String</td>\n<td>Yes</td>\n<td>minLength : 10  <br />maxLength : 10  <br />Format : YYYY-MM-DD</td>\n<td>Invoice Date</td>\n</tr>\n<tr>\n<td>supply_date</td>\n<td>String</td>\n<td>Yes</td>\n<td>minLength : 10  <br />maxLength : 10  <br />Format : YYYY-MM-DD</td>\n<td>Supply Date</td>\n</tr>\n<tr>\n<td>invoice_type</td>\n<td>String</td>\n<td>Yes</td>\n<td>enum : \"Standard\", 'Simplified\", \"Standard Return\", Simplified Return\", \"Credit Note\", \"Debit Note\"</td>\n<td>Type of Invoice</td>\n</tr>\n<tr>\n<td>business_type</td>\n<td>String</td>\n<td>No</td>\n<td>Conditional Validation  <br />enum : \"B2B\", \"B2B-Exempted\",\"B2G\",\"B2C\"</td>\n<td>Type of Business Transaction  <br />B2B : Business to Business  <br />B2B-Exempted : Business to Business in which Buyer is Exempted from VAT  <br />B2G : Business to Government  <br />B2C : Business to Customer  <br />Default Value is B2B</td>\n</tr>\n<tr>\n<td>time_stamp</td>\n<td>String</td>\n<td>Yes</td>\n<td>Format : \"YYYY-MM-DD HH:MM:SS\"</td>\n<td>Time Stamp from ERP</td>\n</tr>\n<tr>\n<td>operator_name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>User Name in ERP</td>\n</tr>\n<tr>\n<td>invoice_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Invoice ID in ERP</td>\n</tr>\n<tr>\n<td>seller_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Seller ID in ERP</td>\n</tr>\n<tr>\n<td>buyer_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Big Integer</td>\n<td>Buyer ID in ERP</td>\n</tr>\n<tr>\n<td>seller_english</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>seller_arabic</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_english</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_arabic</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>items</td>\n<td>Object Array</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>total</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>additional_data</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>scope</td>\n<td>Object</td>\n<td>Yes</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"seller-english-object\">Seller English Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Name in English. Mandatory, if 'name' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 4</td>\n<td>Seller Building in English. Mandatory, if 'building' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name in English. Mandatory, if 'street_name_1' in 'Seller Arabic' object is Null.</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name : Additional Line in English. Mandatory, if 'street_name_2' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Seller District in English. Mandatory, if 'district' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller City in English. Mandatory, if 'city' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Country in English. Mandatory, if 'country' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 5</td>\n<td>Seller Postal Code. Mandatory, if 'postal_code' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller VAT Number. Mandatory, if 'vat_number' in 'Seller Arabic' object is Null</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the seller</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the seller</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"seller-arabic-object\">Seller Arabic Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Name in Arabic</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 4</td>\n<td>Seller Building in Arabic</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name in Arabic</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Street Name : Additional Line in Arabic</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller District in Arabic</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller City in Arabic</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Country in Arabic</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 5</td>\n<td>Seller Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller VAT Number</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Seller Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the seller</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the seller</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"buyer-english-object\">Buyer English Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Name in English. Mandatory, if 'name' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 4</td>\n<td>Buyer Building in English. Mandatory, if 'building' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name in English. Mandatory, if 'street_name_1' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name : Additional Line in English. Mandatory, if 'street_name_2' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Buyer District in English. Mandatory, if 'district' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer City in English. Mandatory, if 'city' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Country in English. Mandatory, if 'country' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>Length : 5</td>\n<td>Buyer Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer VAT Number. Mandatory, if 'business_type' is \"B2B\" and 'vat_number' in 'Buyer Arabic' object is Null</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the buyer</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the buyer</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"buyer-arabic-object\">Buyer Arabic Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Name in Arabic</td>\n</tr>\n<tr>\n<td>building</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 1</td>\n<td>Buyer Building in Arabic</td>\n</tr>\n<tr>\n<td>street_name_1</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name in Arabic</td>\n</tr>\n<tr>\n<td>street_name_2</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Street Name : Additional Line in Arabic</td>\n</tr>\n<tr>\n<td>district</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 4  <br />maxLength : 190</td>\n<td>Buyer District in Arabic</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer City in Arabic</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Country in Arabic</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td>String</td>\n<td>No</td>\n<td>Length : 5</td>\n<td>Buyer Postal Code</td>\n</tr>\n<tr>\n<td>vat_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer VAT Number</td>\n</tr>\n<tr>\n<td>cr_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Buyer Company Registration Number</td>\n</tr>\n<tr>\n<td>additional_number</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other additional numbers of the buyer</td>\n</tr>\n<tr>\n<td>other_id</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Any other id of the buyer</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"item-object\">Item Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>item_id</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Integer</td>\n<td>Item ID</td>\n</tr>\n<tr>\n<td>name_english</td>\n<td>String</td>\n<td>Conditional Yes</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Name in English. Mandatory, if 'name_arabic' is Null</td>\n</tr>\n<tr>\n<td>description_english</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Description in English</td>\n</tr>\n<tr>\n<td>name_arabic</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Name in Arabic</td>\n</tr>\n<tr>\n<td>description_arabic</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Item Description in Arabic</td>\n</tr>\n<tr>\n<td>unit_of_measurement</td>\n<td>String</td>\n<td>No</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Unit of Measurement</td>\n</tr>\n<tr>\n<td>unit_price</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Unit price of the item</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Quantity sold</td>\n</tr>\n<tr>\n<td>item_price</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Unit price X Quantity</td>\n</tr>\n<tr>\n<td>discount_percent</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Percent</td>\n</tr>\n<tr>\n<td>discount_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Amount</td>\n</tr>\n<tr>\n<td>taxable_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Item Price - Discount Amount</td>\n</tr>\n<tr>\n<td>rate_of_tax</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Rate of Tax</td>\n</tr>\n<tr>\n<td>tax_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Amount * Rate of Tax / 100</td>\n</tr>\n<tr>\n<td>tax_mode</td>\n<td>String</td>\n<td>Yes</td>\n<td>Enum : \"Inclusive\", \"Exclusive\", \"Exempt\", \"Saudi Citizen Service\", \"Zero\"</td>\n<td></td>\n</tr>\n<tr>\n<td>sub_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Amount + Tax Amount</td>\n</tr>\n<tr>\n<td>additonal_data</td>\n<td>Object</td>\n<td>No</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"total-object\">Total Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sub_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Discount Total</td>\n</tr>\n<tr>\n<td>taxable_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Sub Total - Discount Total</td>\n</tr>\n<tr>\n<td>vat_total</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>VAT Amount Total</td>\n</tr>\n<tr>\n<td>net_amount</td>\n<td>Number</td>\n<td>Yes</td>\n<td>Float</td>\n<td>Taxable Total + VAT Total</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"scope-object\">Scope Object</h3>\n<p>Required Response parameters can be flagged through this object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Validations</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>qr_html</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in HTML Format</td>\n</tr>\n<tr>\n<td>qr_base64</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in Base64 Encoded Format</td>\n</tr>\n<tr>\n<td>qr_svg</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice in SVG Format</td>\n</tr>\n<tr>\n<td>qr_string</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>QR Code of E-Invoice as String</td>\n</tr>\n<tr>\n<td>qr_base64_format</td>\n<td>String</td>\n<td>No</td>\n<td>Enum : \"png\", \"jpg\", \"svg\"</td>\n<td>Base64 response format. Default is \"png\"</td>\n</tr>\n<tr>\n<td>invoice_pdf</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>E-Invoice in PDF Format</td>\n</tr>\n<tr>\n<td>invoice_xml</td>\n<td>Boolean</td>\n<td>Yes</td>\n<td>true OR false</td>\n<td>E-Invoice in XML Format</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["generate"],"host":["https://api.dev.v2.vatcare.app/api/invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"003133c7-2c15-41ed-80db-3d784f3b8fae"},{"name":"Get Invoice","id":"e2c307a9-fe76-4767-83cb-62e54b492a5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer abcd"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"scope\": {\r\n\t\t\"qr_html\": true,\r\n\t\t\"qr_base64\": true,\r\n\t\t\"qr_svg\": true,\r\n\t\t\"qr_string\": true,\r\n\t\t\"qr_base64_format\": \"jpg\",\r\n        \"invoice_pdf\": true,\r\n\t\t\"invoice_xml\": true\r\n\t},\r\n    \"invoice_id\":\"16\"\r\n}\r\n"},"url":"https://api.dev.v2.vatcare.app/api/invoice/get","urlObject":{"path":["get"],"host":["https://api.dev.v2.vatcare.app/api/invoice"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2c307a9-fe76-4767-83cb-62e54b492a5a"}],"id":"939c610c-5f9d-43e9-aa55-a775304d4896","description":"<p><strong>Generate Invoice API</strong> : This API can be used to generate E-Invoices conforming to ZATCA regulations related to VAT. For Authorization, please use 'Bearer Token' which you have retrieved as 'access_token' through 'Company Login' API</p>\n<p><strong>Get Invoice API</strong> : This API can be used to access the already generated E-Invoices. For Authorization, please use 'Bearer Token' which you have retrieved as 'access_token' through 'Company Login' API</p>\n","_postman_id":"939c610c-5f9d-43e9-aa55-a775304d4896"},{"name":"SSL Certificate","item":[{"name":"Secret","id":"27d58b20-191f-454b-9b2e-1b47d8adaeb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer abcd"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.dev.v2.vatcare.app/api/sslcerts/fetch?get=secret","description":"<p>To fetch SSL Certificate (Public Key)</p>\n","urlObject":{"path":["fetch"],"host":["https://api.dev.v2.vatcare.app/api/sslcerts"],"query":[{"key":"get","value":"secret"}],"variable":[]}},"response":[],"_postman_id":"27d58b20-191f-454b-9b2e-1b47d8adaeb4"},{"name":"Key","id":"c3bcf8b8-755b-4834-bd21-973353712c83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Bearer abcd"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.dev.v2.vatcare.app/api/sslcerts/fetch?get=key","description":"<p>To fetch SSL Certificate (Private Key)</p>\n","urlObject":{"path":["fetch"],"host":["https://api.dev.v2.vatcare.app/api/sslcerts"],"query":[{"key":"get","value":"key"}],"variable":[]}},"response":[],"_postman_id":"c3bcf8b8-755b-4834-bd21-973353712c83"}],"id":"96265661-61ed-4618-b5a6-4e82ccf56670","description":"<p><strong>SSL Secret</strong> : This API can be used to provide you SSL Certificate.</p>\n<p><strong>SSL Key</strong> : This API can be used to provide you SSL Key.</p>\n<p>Note: For Authorization, please use 'Bearer Token' which you have retrieved as 'access_token' through 'Company Login' API</p>\n","_postman_id":"96265661-61ed-4618-b5a6-4e82ccf56670"},{"name":"Company Creation","item":[{"name":"Create Company","id":"f15e8484-7e44-4022-81cc-e389e69aa496","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer abcd","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1,\n    \"company\": {\n        \"business_name\": \"Test Company\",\n        \"vat_number\": \"123456789032124\",\n        \"vat_group_number\": \"\",\n        \"company_crn\": \"\",\n        \"branch_name\": \"Test Server\",\n        \"short_address\": \"ABCD\",\n        \"industry\": \"IT\",\n        \"status\": \"Applied\" \n    },\n    \"configs\": {\n        \"fatoora\": \"Yes\", \n        \"live_mode\": \"No\", \n        \"push_to_zatca\": \"Yes\", \n        \"logs\": \"Yes\", \n        \"needs_auth_for_scope_assets\": \"Y\",  \n        \"send_optimized_url_to_fetch_assets\": \"Y\",  \n        \"skip_revoke_previous_token\": \"Y\" \n    },\n    \"task\": \"add\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/company/create","description":"<h3 id=\"request-body-parameters\">Request Body Parameters</h3>\n<h4 id=\"root-level\">Root Level</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Validations</th>\n<th>Mandatory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>origin</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>Always set as <code>\"API\"</code>. Identifies the request source.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>Integer</td>\n<td>ID from user</td>\n<td>Yes</td>\n<td>The ID of the authenticated user (from login API).</td>\n</tr>\n<tr>\n<td><code>company</code></td>\n<td>Object</td>\n<td></td>\n<td>Yes</td>\n<td>Contains the company’s registration and profile details.</td>\n</tr>\n<tr>\n<td><code>configs</code></td>\n<td>Object</td>\n<td></td>\n<td>Yes</td>\n<td>Defines configuration options for invoice handling and compliance.</td>\n</tr>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>add/edit</td>\n<td>Yes</td>\n<td>Use \"add\" for creating a new company.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"company\">Company</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Validations</th>\n<th>Mandatory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>business_name</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>vat_number</code></td>\n<td>String</td>\n<td></td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>vat_group_number</code></td>\n<td>String</td>\n<td></td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>company_crn</code></td>\n<td>String</td>\n<td></td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>branch_name</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>short_address</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>industry</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td>Industry type (e.g., IT, Manufacturing, Retail).</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>String</td>\n<td>enum(Applied, Approved, Rejected, Suspended, Terminated)</td>\n<td>Yes</td>\n<td>Status of the company - Applied, Approved, Rejected, Suspended, Terminated  <br />Only Approved companies can Post Invoices to ZATCA</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"configs\">Configs</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Validations</th>\n<th>Mandatory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>fatoora</code></td>\n<td>String</td>\n<td>enum(Yes,No)</td>\n<td>Yes</td>\n<td>\"Yes\" by default. Enables Fatoora compliance.</td>\n</tr>\n<tr>\n<td><code>live_mode</code></td>\n<td>String</td>\n<td>enum(Yes,No)</td>\n<td>Yes</td>\n<td>\"Yes\" - Production mode  <br />\"No\" - Simulation mode.</td>\n</tr>\n<tr>\n<td><code>push_to_zatca</code></td>\n<td>String</td>\n<td>enum(Yes,No)</td>\n<td>Yes</td>\n<td>\"Yes\" - Generate QR for B2C invoices and report them to ZATCA queue  <br />  <br />\"No\" - Generate QR for B2C invoice and push to ZATCA on the same time  <br />  <br />B2B - will always pushed to ZATCA</td>\n</tr>\n<tr>\n<td><code>logs</code></td>\n<td>String</td>\n<td>enum(Yes,No)</td>\n<td>Yes</td>\n<td>\"Yes\" - Save Logs  <br />\"No\" - No Logs</td>\n</tr>\n<tr>\n<td><code>needs_auth_for_scope_assets</code></td>\n<td>String</td>\n<td>enum(Y,N)</td>\n<td>Yes</td>\n<td>\"Y\" - Assets are private and require authentication.  <br />\"N\" - Assets can be viewed publicly</td>\n</tr>\n<tr>\n<td><code>send_optimized_url_to_fetch_assets</code></td>\n<td>String</td>\n<td>enum(Y,N)</td>\n<td>Yes</td>\n<td>\"Y\" - API will return asset IDs \"N\" - Return filenames.</td>\n</tr>\n<tr>\n<td><code>skip_revoke_previous_token</code></td>\n<td>String</td>\n<td>enum(Y,N)</td>\n<td>Yes</td>\n<td>\"Y\" - Cannot generate invoice using old tokens  <br />\"N\" - Can create invoice using old tokens</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["create"],"host":["https://api.dev.v2.vatcare.app/api/company"],"query":[],"variable":[]}},"response":[],"_postman_id":"f15e8484-7e44-4022-81cc-e389e69aa496"},{"name":"Edit Company","id":"96395050-7832-491a-bfb1-422dbfebb29e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer abcd","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1,\n    \"company\": {\n        \"business_name\": \"Test Company\",\n        \"vat_number\": \"123456781212245\",\n        \"vat_group_number\": \"512345678901234\",\n        \"company_crn\": \"CRN0001\",\n        \"branch_name\": \"Test Server\",\n        \"short_address\": \"ABCD\",\n        \"industry\": \"IT\",\n        \"status\": \"Applied\"\n    },\n    \"configs\": {\n        \"fatoora\": \"Yes\",\n        \"live_mode\": \"No\",\n        \"push_to_zatca\": \"Yes\",\n        \"logs\": \"Yes\",\n        \"needs_auth_for_scope_assets\": \"Y\",\n        \"send_optimized_url_to_fetch_assets\": \"Y\",\n        \"skip_revoke_previous_token\": \"Y\"\n    },\n    \"task\": \"edit\",\n    \"id\": \"14\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/company/edit","description":"<p>This API is used to update an existing company’s information in the VAT-Care system. It allows you to keep your company profile accurate and up to date for VAT compliance and invoicing.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Modify company details such as name, VAT number, address, or industry.</p>\n</li>\n<li><p>Update configurations (e.g., live/simulation mode, logging, or ZATCA push settings).</p>\n</li>\n<li><p>Ensure that all future invoices and reports reflect the latest company information.</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Use \"Edit\" for Editing the company - id will be required if you edit a company</td>\n</tr>\n<tr>\n<td><code>id</code></td>\n<td>Integer</td>\n<td>The unique ID (<code>company_id</code>) of the company to be updated.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["edit"],"host":["https://api.dev.v2.vatcare.app/api/company"],"query":[],"variable":[]}},"response":[],"_postman_id":"96395050-7832-491a-bfb1-422dbfebb29e"},{"name":"Get Company","id":"d8c5bd7b-f9ff-4f00-b08d-b3a8312b98bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer abcd","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1,\n    \"task\": \"fetch\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/company/fetch?id=1","description":"<p>This API is used to retrieve details of a company registered in the VAT-Care system. It helps you view the company’s profile, VAT registration details, and configuration settings that are currently active.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Fetch company information by providing the <strong>company_id</strong>.</p>\n</li>\n<li><p>View key details such as business name, VAT number, branch, and industry.</p>\n</li>\n<li><p>Check the company’s configuration (e.g., live/simulation mode, logging, ZATCA push).</p>\n</li>\n<li><p>Ensure that you are working with the most up-to-date company data before creating or managing invoices.</p>\n</li>\n</ul>\n<p>The response will include both <strong>company details</strong> and <strong>configuration details</strong>, which can be used across other APIs in this collection.</p>\n<h3 id=\"request-body-parameters--get-company\">Request Body Parameters – Get Company</h3>\n<h4 id=\"root-level\">Root Level</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>origin</code></td>\n<td>String</td>\n<td>Always set as <code>\"API\"</code>. Identifies the request source.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>Integer</td>\n<td>The ID of the authenticated user (from login API).</td>\n</tr>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Use <code>\"fetch\"</code> to retrieve company details.</td>\n</tr>\n<tr>\n<td><code>id</code></td>\n<td>String</td>\n<td>Use <code>\"get\"</code> the particular company details.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["fetch"],"host":["https://api.dev.v2.vatcare.app/api/company"],"query":[{"key":"id","value":"1"}],"variable":[]}},"response":[],"_postman_id":"d8c5bd7b-f9ff-4f00-b08d-b3a8312b98bd"}],"id":"54096af4-9cee-4113-8bba-3b18ac0a69f4","description":"<p>This API is used to register a new company in the VAT-Care system. By creating a company profile, you enable VAT-Care to manage all VAT compliance and e-invoicing activities under that business entity.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Create a unique company record in VAT-Care.(VAT No and CR No must be unique for each company)</p>\n</li>\n<li><p>Store key company details such as name, tax registration, and contact information.</p>\n</li>\n<li><p>Prepare the company profile for issuing and managing VAT-compliant invoices.</p>\n</li>\n</ul>\n","_postman_id":"54096af4-9cee-4113-8bba-3b18ac0a69f4"},{"name":"User Creation","item":[{"name":"Create User","id":"8668593a-bbf1-4ea9-a0b8-350589d38bf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer abcd","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1, \n    \"user\": {\n        \"name\": \"Test User\",\n        \"email\": \"dummy@hal.com\", \n        \"password\": \"ABCDEF\",\n        \"mobile\": \"9876543210\",\n        \"company_id\": \"136\",\n        \"status\": \"Active\"\n    },\n    \"task\": \"add\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/user/create","description":"<h3 id=\"request-body-parameters--create-user\">Request Body Parameters – Create User</h3>\n<h4 id=\"root-level\">Root Level</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>origin</code></td>\n<td>String</td>\n<td>Always set as <code>\"API\"</code>. Identifies the request source.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>Integer</td>\n<td>The ID of the authenticated user (from login API).</td>\n</tr>\n<tr>\n<td><code>user</code></td>\n<td>Object</td>\n<td>Contains the new user’s profile details.</td>\n</tr>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Use <code>\"add\"</code> to create a new user.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"user-object\">User Object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Validations</th>\n<th>Mandatory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td>Full name of the user.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td>User’s email address. Must be unique within the company. One user per company</td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td>Password for the user account.</td>\n</tr>\n<tr>\n<td><code>mobile</code></td>\n<td>String</td>\n<td>minLength : 1  <br />maxLength : 190</td>\n<td>Yes</td>\n<td>Mobile number of the user.</td>\n</tr>\n<tr>\n<td><code>company_id</code></td>\n<td>Integer</td>\n<td></td>\n<td>Yes</td>\n<td>The ID of the company to which the user belongs.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>String</td>\n<td>enum('Active', 'Inactive')</td>\n<td>Yes</td>\n<td>Current status of the user (e.g., <code>Active</code>, <code>Inactive</code>).</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["create"],"host":["https://api.dev.v2.vatcare.app/api/user"],"query":[],"variable":[]}},"response":[],"_postman_id":"8668593a-bbf1-4ea9-a0b8-350589d38bf2"},{"name":"Edit User","id":"be5bf6c0-d803-45f2-9914-aba643d1a8ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer abcd","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1, \n    \"user\": {\n        \"name\": \"Test User\",\n        \"email\": \"dummy@hal.com\",\n        \"password\": \"ABCDEF\",\n        \"mobile\": \"9876543210\",\n        \"company_id\": \"1\",\n        \"status\": \"Active\"\n    },\n    \"task\": \"edit\",\n    \"id\": 5\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/user/edit","description":"<p>This API is used to update an existing user’s details in the VAT-Care system. It allows companies to manage user information, update login credentials, or change account status while keeping the user linked to the correct company.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Update user details such as name, email, mobile, or password.</p>\n</li>\n<li><p>Change the company association of a user if required.</p>\n</li>\n<li><p>Activate, deactivate, or modify user access settings.</p>\n</li>\n</ul>\n<p>You will need to provide the <strong>user’s ID (<strong><strong><code>id</code></strong></strong>)</strong> to identify which user account should be updated.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Use <code>\"edit\"</code> to update an existing user.</td>\n</tr>\n<tr>\n<td><code>id</code></td>\n<td>Integer</td>\n<td>The unique ID of the user to be updated.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["edit"],"host":["https://api.dev.v2.vatcare.app/api/user"],"query":[],"variable":[]}},"response":[],"_postman_id":"be5bf6c0-d803-45f2-9914-aba643d1a8ba"},{"name":"Get User","id":"fc23040b-e54b-43a8-8de2-65d2de3088e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer abcd","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1,\n    \"task\": \"fetch\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/user/fetch?id=5","description":"<p>This API is used to retrieve details of users created under a company in the VAT-Care system. It helps administrators view and manage all user accounts associated with their company.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Fetch a list of all users linked to a company.</p>\n</li>\n<li><p>View user details such as name, email, mobile number, company ID, and status.</p>\n</li>\n<li><p>Verify user information before assigning roles, generating invoices, or updating accounts.</p>\n</li>\n</ul>\n<p>The response will return one or more user records, each containing the user’s <strong>ID</strong>, contact details, company association, and status.</p>\n<h3 id=\"request-body-parameters--get-user\">Request Body Parameters – Get User</h3>\n<h4 id=\"root-level\">Root Level</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>origin</code></td>\n<td>String</td>\n<td>Always set as <code>\"API\"</code>. Identifies the request source.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>Integer</td>\n<td>The ID of the authenticated user (from login API).</td>\n</tr>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Use <code>\"fetch\"</code> to retrieve user details.</td>\n</tr>\n<tr>\n<td><code>id</code></td>\n<td>String</td>\n<td>Use <code>\"get\"</code> the particular user details.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["fetch"],"host":["https://api.dev.v2.vatcare.app/api/user"],"query":[{"key":"id","value":"5"}],"variable":[]}},"response":[],"_postman_id":"fc23040b-e54b-43a8-8de2-65d2de3088e4"}],"id":"504842b4-fd0a-4f63-9d8f-f6514f8da612","description":"<p>This API is used to add a new user account under a company in the VAT-Care system. By creating users, companies can provide controlled access to team members who need to work with VAT compliance, e-invoicing, or reporting.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Create a user profile linked to a specific company.</p>\n</li>\n<li><p>Define user details such as name, email, role, and status.</p>\n</li>\n</ul>\n<p>Each newly created user will be assigned a unique <strong>user_id</strong>, which can be referenced in other API requests when needed.</p>\n","_postman_id":"504842b4-fd0a-4f63-9d8f-f6514f8da612"},{"name":"CSR-Certificate","item":[{"name":"Generate CSR","id":"c18723f2-3e40-4639-8f41-234b505fd1a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer abcd","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 137, \n    \"company_id\": 135,   \n    \"csr_certificates\": {\n        \"type\": \"Local\", \n        \"standard_tax_invoice\": \"Yes\", \n        \"simplified_tax_invoice\": \"Yes\", \n        \"otp\": \"123456\" \n    },\n    \"task\": \"add\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/csrcertificates/create","description":"<p>FATOORA Portal Guide – <a href=\"https://zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/Fatoora_Portal_User_Manual_English.pdf\">https://zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/Fatoora_Portal_User_Manual_English.pdf</a></p>\n<p>As per the FATOORA portal guide, please obtain the OTP (Simulation/Production) from the FATOORA portal using the Company Login before proceeding with CSR certificate creation or onboarding an EGS unit.</p>\n<h3 id=\"request-body-parameters--generate-csr\">Request Body Parameters – Generate CSR</h3>\n<h4 id=\"root-level\">Root Level</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>origin</code></td>\n<td>String</td>\n<td>Always set as <code>\"API\"</code>. Identifies the request source.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>Integer</td>\n<td>Admin user ID who is generating the CSR.</td>\n</tr>\n<tr>\n<td><code>company_id</code></td>\n<td>Integer</td>\n<td>The ID of the company for which the CSR is being generated.</td>\n</tr>\n<tr>\n<td><code>csr_certificates</code></td>\n<td>Object</td>\n<td>Contains details about the CSR to be generated.</td>\n</tr>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Action to perform. Use <code>\"add\"</code> to generate a new CSR.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"csr-certificates\">CSR Certificates</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>String</td>\n<td>Type of CSR. Options: <code>\"Local\"</code> or <code>\"Production\"</code>.  <br />Local - Simulation</td>\n</tr>\n<tr>\n<td><code>standard_tax_invoice</code></td>\n<td>String</td>\n<td><code>\"Yes\"</code> to generate CSR for standard tax invoices, <code>\"No\"</code> otherwise.</td>\n</tr>\n<tr>\n<td><code>simplified_tax_invoice</code></td>\n<td>String</td>\n<td><code>\"Yes\"</code> to generate CSR for simplified tax invoices, <code>\"No\"</code> otherwise.</td>\n</tr>\n<tr>\n<td><code>otp</code></td>\n<td>String</td>\n<td>OTP from the Fatoora portal - <a href=\"https://fatoora.zatca.gov.sa/onboard-solution\">https://fatoora.zatca.gov.sa/onboard-solution</a></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["create"],"host":["https://api.dev.v2.vatcare.app/api/csrcertificates"],"query":[],"variable":[]}},"response":[],"_postman_id":"c18723f2-3e40-4639-8f41-234b505fd1a5"},{"name":"Get CSR","id":"546adfb2-86f5-41cd-bc6a-baa8c16f45bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer abcd","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"origin\": \"API\",\n    \"user_id\": 1,\n    \"task\": \"fetch\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.dev.v2.vatcare.app/api/csrcertificates/fetch","description":"<p>This API is used to retrieve all CSRs generated for a company in the VAT-Care system. It allows administrators to:</p>\n<ul>\n<li><p>View CSR details such as type, invoice settings, and submission status.</p>\n</li>\n<li><p>Track the CSR workflow for certificate issuance with ZATCA.</p>\n</li>\n<li><p>Ensure that digital certificates are ready and properly linked to the company for secure e-invoicing.</p>\n</li>\n</ul>\n<p>The response includes all CSR records associated with the authenticated user and company.</p>\n<p>Root Level</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>origin</code></td>\n<td>String</td>\n<td>Always set as <code>\"API\"</code>. Identifies the request source.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>Integer</td>\n<td>The ID of the authenticated user (from login API).</td>\n</tr>\n<tr>\n<td><code>task</code></td>\n<td>String</td>\n<td>Use <code>\"fetch\"</code> to retrieve CSR records.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["fetch"],"host":["https://api.dev.v2.vatcare.app/api/csrcertificates"],"query":[],"variable":[]}},"response":[],"_postman_id":"546adfb2-86f5-41cd-bc6a-baa8c16f45bc"}],"id":"e25b088d-41c0-4c23-9865-ba3d35edff93","description":"<p>This API is used to generate a <strong>Certificate Signing Request (CSR)</strong> for a company in the VAT-Care system. A CSR is required for issuing digital certificates, which are necessary for secure e-invoicing and VAT compliance with ZATCA.</p>\n<p>With this API, you can:</p>\n<ul>\n<li><p>Generate a CSR for a company registered in VAT-Care.</p>\n</li>\n<li><p>Enable the company to request and obtain a digital certificate.</p>\n</li>\n<li><p>Ensure all invoices and transactions are signed and encrypted for compliance and security.</p>\n</li>\n</ul>\n<p>The response will include CSR details that must be submitted to the certification authority (ZATCA) to complete the onboarding process.</p>\n","_postman_id":"e25b088d-41c0-4c23-9865-ba3d35edff93"}],"event":[{"listen":"prerequest","script":{"id":"900000c5-fae8-42ac-8ca1-67bfbe18c096","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"25bb58a9-bfae-457d-b5e7-da65bf54d6de","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"https://api.dev.v2.vatcare.app/api/"},{"key":"bearer_token","value":"abcd"}]}