{"info":{"_postman_id":"fe7a9a96-f278-423f-a305-89313c923240","name":"Fai System Public APIs","description":"<html><head></head><body><h2 id=\"welcome-to-fai-public-apis-documentation-we-are-delighted-to-provide-you-with-comprehensive-information-and-resources-to-empower-you-in-harnessing-the-full-potential-of-our-apis\">Welcome to Fai public APIs documentation, We are delighted to provide you with comprehensive information and resources to empower you in harnessing the full potential of our APIs</h2>\n<h4 id=\"for-using-our-public-apis-you-need-to-have-a-signed-up-user-with-an-active-account-on-fai-the-second-step-is-to-create-an-entity--company-update-settings-and-information-then-you-should-be-able-to-create-a-3rd-party-create-an-invoice-and-generate-your-vat-report-worth-mentioning-that-adding-products-is-optional\">For using our public APIs you need to have a signed up user with an active account on Fai, the second step is to create an entity / company, update settings and information. Then you should be able to create a 3rd party, create an invoice and generate your VAT report, worth mentioning that adding products is optional.</h4>\n<h5 id=\"please-ensure-that-all-required-fields-are-provided-in-the-request-body-the-fields-marked-with-required-must-be-included-for-a-successful-request\">Please ensure that all required fields are provided in the request body. The fields marked with <code>[required]</code> must be included for a successful request.</h5>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25693439","collectionId":"fe7a9a96-f278-423f-a305-89313c923240","publishedId":"2s9YRGxpL2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-18T09:20:56.000Z"},"item":[{"name":"Auth","item":[{"name":"refresh token","event":[{"listen":"test","script":{"id":"aa95ca04-0e9a-4dab-91ba-b6d94346e7c5","exec":["var response = JSON.parse(responseBody);","console.log(response)","pm.environment.set(\"token\", response.token);"],"type":"text/javascript"}}],"id":"718bfb4b-301c-44a3-95d7-60125535859d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"refresh_token\" : \"def50200c477862ff56ada8813344cbaff0515c680e98f907018fac63b3ad4e96c1d3e2dc073235d6365bda3c5dc6d9a00d8b7462abf37206d08004d57dfcd0d8b64d1d4dc74aaf6e3db99c485ea2f7efdc9b6a5514eac9442afa731cd0323a9569f073ff376c2dfd83b00b05b12c49bc6c67215f4f8ab6452171f163ce4bf1959fa4fca02a32890daec5c6d767980e0359359605563572d7589913d736bfbd1869c4b4d335c139a0a57bc5fe611c9223c00c475cb3a47c5d3b21b0b4763c5cf8aef3be574c6f5b888feaf831c076433aba65af09e6f0b3ab0469f1d34360fff539c31c96852cebfe3e539c4d1702749b4b7033a24ed17a457d7b3afcdf96ed4c57de266809c9d5d1c0f222bbc038e967aafae81094fcd0ae9f318166d2a8ad174ed7e32fa084fa329049d42ceca214c38a3f3546d15283b797a4011f58ec997eca69a75d93dcdf02cf81720acf2626c87afc9821fbb95a05d26230ccb4175a1e0\",\n    \"grant_type\" : \"refresh_token\",\n    \"client_id\" : \"2\",\n    \"client_secret\" : \"uJzM04UxlJTtD4JojY0c7fX2O5WHs0VJdGeyTqUl\",\n    \"scope\" : \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/oauth/token","urlObject":{"path":["api","v1","oauth","token"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"718bfb4b-301c-44a3-95d7-60125535859d"},{"name":"get auth user","event":[{"listen":"test","script":{"id":"aa95ca04-0e9a-4dab-91ba-b6d94346e7c5","exec":["var response = JSON.parse(responseBody);","console.log(response)","pm.environment.set(\"token\", response.token);"],"type":"text/javascript","packages":{}}}],"id":"e0bffd2f-e729-48c2-9fcf-f8328d9da559","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/user","urlObject":{"path":["public","api","v1","user"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0bffd2f-e729-48c2-9fcf-f8328d9da559"},{"name":"create client","event":[{"listen":"test","script":{"id":"aa95ca04-0e9a-4dab-91ba-b6d94346e7c5","exec":["var response = JSON.parse(responseBody);","console.log(response)","pm.environment.set(\"token\", response.token);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"48482723-79bf-4f2c-9b00-77971bb5690b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"altflow-test\",\n    \"redirect\": \"http://example.com/callback\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/oauth/clients","urlObject":{"path":["api","v1","oauth","clients"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"91ae6e58-b395-4e65-9d44-e6387072aabf","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"altflow-test\",\n    \"redirect\": \"http://example.com/callback\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/oauth/clients"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 20 Feb 2024 09:48:13 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Ikw4aHNYV3B6OGhLMHcrTGdLanJxekE9PSIsInZhbHVlIjoiTE1BQlYrT1lzU2FiQmVOME5mTTdyd0lVay9VUXdqVmxlTUxWeTFhY2NNUnJQMzJpN1BCblFhQUlLUGpucmJMT1gwcXFsdEFKc1dHSmhPcnJ4Q0lvZVBBdGxpcXp2TmtYLzlBQ3hXZi9tY29jKzV5MGlFU2lTVUI2TXJaeFhSSjMiLCJtYWMiOiI1YjY1YTdlNDNmNGIwZWYzOGM1MjEwMDc2MDZiNjc5NGJlZDFkZWFlZTk3OTczY2QyMDY1MjZjMTRmZmEwMDM5IiwidGFnIjoiIn0%3D; expires=Tue, 20-Feb-2024 11:48:13 GMT; Max-Age=7200; path=/; samesite=lax"},{"key":"Set-Cookie","value":"ahad_session=eyJpdiI6InFldDN6NXR6aGlqMEdsU3BrSWM1R1E9PSIsInZhbHVlIjoiaHhpd2tNZ3hiRGoyS0FnbVY2eDAwTTJhVUlhOEhOdmMydHZlNFhFbkZmTFBqRUUvZFhvS3ZPRHJIQ1IwNmlmQ2o2SjBqa0FVcitUZjhWNEZrQzFYRFRlRVJTYWxrSnlQRGFpcnIybzVqdTNiaVpvd093REk3NkREMDNWOWRwYjEiLCJtYWMiOiIxN2RiZDMxNzFkN2Q5NDQ2ODBjNDgxYmFmNWY4ZWViZjcyY2I3YjZiNmQ1Njk4ODk3OWE5YzRkNzJiMDM2NWU1IiwidGFnIjoiIn0%3D; expires=Tue, 20-Feb-2024 11:48:13 GMT; Max-Age=7200; path=/; httponly; samesite=lax"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 2,\n    \"name\": \"altflow-test\",\n    \"secret\": \"37OUMkH8wwI5s8oEXSvXA47ddjjbaR6oNUevKqKB\",\n    \"provider\": null,\n    \"redirect\": \"http://example.com/callback\",\n    \"personal_access_client\": false,\n    \"password_client\": false,\n    \"revoked\": false,\n    \"updated_at\": \"2024-02-20T09:48:13.000000Z\",\n    \"created_at\": \"2024-02-20T09:48:13.000000Z\",\n    \"id\": 3\n}"}],"_postman_id":"48482723-79bf-4f2c-9b00-77971bb5690b"},{"name":"update client","event":[{"listen":"test","script":{"id":"aa95ca04-0e9a-4dab-91ba-b6d94346e7c5","exec":["var response = JSON.parse(responseBody);","console.log(response)","pm.environment.set(\"token\", response.token);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"93e63d3f-6b1e-4970-a5f9-a4fffcc6e038","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"altflow-test\",\n    \"redirect\": \"http://sync.com/callback\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/oauth/clients/:client_id","urlObject":{"path":["api","v1","oauth","clients",":client_id"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"3","key":"client_id"}]}},"response":[{"id":"62f65341-99f4-42db-938d-92f3f4d0cf56","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"altflow-test\",\n    \"redirect\": \"http://example.com/callback\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/oauth/clients"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 20 Feb 2024 09:48:13 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Ikw4aHNYV3B6OGhLMHcrTGdLanJxekE9PSIsInZhbHVlIjoiTE1BQlYrT1lzU2FiQmVOME5mTTdyd0lVay9VUXdqVmxlTUxWeTFhY2NNUnJQMzJpN1BCblFhQUlLUGpucmJMT1gwcXFsdEFKc1dHSmhPcnJ4Q0lvZVBBdGxpcXp2TmtYLzlBQ3hXZi9tY29jKzV5MGlFU2lTVUI2TXJaeFhSSjMiLCJtYWMiOiI1YjY1YTdlNDNmNGIwZWYzOGM1MjEwMDc2MDZiNjc5NGJlZDFkZWFlZTk3OTczY2QyMDY1MjZjMTRmZmEwMDM5IiwidGFnIjoiIn0%3D; expires=Tue, 20-Feb-2024 11:48:13 GMT; Max-Age=7200; path=/; samesite=lax"},{"key":"Set-Cookie","value":"ahad_session=eyJpdiI6InFldDN6NXR6aGlqMEdsU3BrSWM1R1E9PSIsInZhbHVlIjoiaHhpd2tNZ3hiRGoyS0FnbVY2eDAwTTJhVUlhOEhOdmMydHZlNFhFbkZmTFBqRUUvZFhvS3ZPRHJIQ1IwNmlmQ2o2SjBqa0FVcitUZjhWNEZrQzFYRFRlRVJTYWxrSnlQRGFpcnIybzVqdTNiaVpvd093REk3NkREMDNWOWRwYjEiLCJtYWMiOiIxN2RiZDMxNzFkN2Q5NDQ2ODBjNDgxYmFmNWY4ZWViZjcyY2I3YjZiNmQ1Njk4ODk3OWE5YzRkNzJiMDM2NWU1IiwidGFnIjoiIn0%3D; expires=Tue, 20-Feb-2024 11:48:13 GMT; Max-Age=7200; path=/; httponly; samesite=lax"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 2,\n    \"name\": \"altflow-test\",\n    \"secret\": \"37OUMkH8wwI5s8oEXSvXA47ddjjbaR6oNUevKqKB\",\n    \"provider\": null,\n    \"redirect\": \"http://example.com/callback\",\n    \"personal_access_client\": false,\n    \"password_client\": false,\n    \"revoked\": false,\n    \"updated_at\": \"2024-02-20T09:48:13.000000Z\",\n    \"created_at\": \"2024-02-20T09:48:13.000000Z\",\n    \"id\": 3\n}"}],"_postman_id":"93e63d3f-6b1e-4970-a5f9-a4fffcc6e038"},{"name":"issue token from code","event":[{"listen":"test","script":{"id":"aa95ca04-0e9a-4dab-91ba-b6d94346e7c5","exec":["var response = JSON.parse(responseBody);","console.log(response)","pm.environment.set(\"token\", response.token);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"37919127-019d-4f78-950f-7d1889637d4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"code\" : \"def502001e071d32f04379618b09f6852ba93baf11311a496737112474deee0e39a70ba8da40dfeb90e787a6a0abcbcf6465a6ec48396e2e6d6bcf5c56dd4e22358d49a157072b9375487538d5110dcd1e7a1b168e936000a0b1d7efc3fa05fd369936040c1d5160854ac55a03ad9acfc263ff9698c2fecc59b08bcc2d8123c461d0cb50c7f754ffb4c63f7203aa5e00109de0bddd3f71e00de5fc57c3f512807abfedd66c12bf903ca17c8236e1b91706e4c8a4fdb7cb6543dedf741342669f180414d24750353a9d50178ef64dfb818aa506d3d2a6c1a4cc8d8a771d83e7e006e18558e20fd8f829ac2bf4940a1bc1742501c7435bdbec87ffebf687395feaa98ba791e10e2f0cdb7c883f91d4d6064675215b2b1177236108e6932dfd559d2260de1d3ffe9b1c46ef231640345e2b1bae9bc98779636d47622f098f3cb9c7dfb027dea1de5edd8a7a0f92d55e0a08b4e7c977c3a2a182ff75f1\",\n    \"grant_type\" : \"authorization_code\",\n    \"client_id\" : \"3\",\n    \"redirect_uri\": \"http://example.com/callback\",\n    \"client_secret\" : \"tTGwl2NcJgzKz2HlaZKFSUPO00DRLfqaAKi0ybXd\"\n\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/oauth/token","description":"<p>To obtain an authorization code, the user needs to visit the URL.<br /><em><strong>\"{baseURL}?client_id={client_id}&amp;redirect_uri={redirectUrl}&amp;response_type=code\"</strong></em> and enter their credentials. After submitting the form, they will be redirected to the specified redirectURL with the authorization code.</p>\n","urlObject":{"path":["api","v1","oauth","token"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"37919127-019d-4f78-950f-7d1889637d4d"},{"name":"Login","event":[{"listen":"test","script":{"id":"aa95ca04-0e9a-4dab-91ba-b6d94346e7c5","exec":["var response = JSON.parse(responseBody);","console.log(response)","pm.environment.set(\"token\", response.token);"],"type":"text/javascript","packages":{}}}],"id":"dcb423ad-c173-4e37-b84f-55e1f55af523","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\" : \"ahmed@example.com\",\n    \"password\" : \"password\",\n    \"grant_type\" : \"password\",\n    \"client_id\" : \"2\",\n    \"client_secret\" : \"hf8lbXG1eTIZYxPHXrIUZEQvtKDJ6RtqWHeiafZJ\",\n    \"scope\" : \"*\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v2/oauth/token","urlObject":{"path":["api","v2","oauth","token"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b5ed9594-660a-45d9-a593-0789a61265dc","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\" : \"ahmed.kamel1192@gmail.com\",\n    \"password\" : \"123456\",\n    \"grant_type\" : \"password\",\n    \"client_id\" : \"2\",\n    \"client_secret\" : \"hf8lbXG1eTIZYxPHXrIUZEQvtKDJ6RtqWHeiafZJ\",\n    \"scope\" : \"*\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v2/oauth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 20 Feb 2024 09:47:39 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"pragma","value":"no-cache"},{"key":"Cache-Control","value":"no-store, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Vary","value":"Origin"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 31622400,\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIyIiwianRpIjoiYjIwMTZkODY4MTlkNWQ1Y2U5OTA3ZjIyMTg1YWE3ZTNiMTI1OGQxNDgwMDdlN2EzOWE4N2ZiMDI3NzZmMTE4M2Q1ODI0YzhhY2YxNDk0ZDMiLCJpYXQiOjE3MDg0MjI0NTguOTYzMTYyLCJuYmYiOjE3MDg0MjI0NTguOTYzMTYzLCJleHAiOjE3NDAwNDQ4NTguOTU3MDQsInN1YiI6IjIiLCJzY29wZXMiOlsiKiJdfQ.HsWcS3vZnIoL9xhCLii9BI_aSxMOh0ob-n2VOwlGTyLyTjLJvREQNtng0k8OPMIQoViT8Cvv7YFhQ8MRBnp5ZxDzQfdPR7TBK4LTP1Loe0CjEs6MK2ZBYBUe5_qs-nilQdvb8fHpWWFP3wjv0PT0JmDZVuT6B_YpiprN7T7wTK06BOIEkC9L0FL9FvG8fMupjzrX9p2bj8CHycWQyv_L_sqwdVNHSvftbrjBY9X46Px4YZRz7TUvzlb1V4ot9KFLXyqKsZC1vLaIzZN3i4pWlqNjPG_yCo9d1Cg8ukInTi3x7DIdGK8mF8_Vs0OJwp0GDFFx1YniOqYf0YleAlI59MVDg7WQqv3yFINUrKMpE2p3erORmT8DUVBI1vdx9C8D_gYFdZgX7fzcEPlXNFerRYmINq6dZlr6crBTO9PF7F7BIxZWYdwQpHlKZUifWm2ezGqqRgYVdZuAvp8NvfG4m365cXy1S1Cmuzx1h2TdSDZvqEu5cWZMgS542UCavdFQstckjgQOmSa-oW9sQ6ImY4Exw5AFixBc9ONOAnjPzMgYh3cR4b8njjKdMa6pKLKwuLQKbbM8Arh_MU-NrGtEKuEnpmmXcyxSkLbbaqVOYIK5BjDd7Dj237XVAyMd2nMQ5JAnMRayFmq4phxD3kqCaj_qzwUljOj6oBRQt8zWLDo\",\n    \"refresh_token\": \"def50200b24f2f2a7f542273c5ee3723c86a736237e1a1a3898787e5273872eabc996607d6aff1c812a8435e666c248db63cf110b4cdb18c643221d6d593fb6bd064b08cf2815cd35595d59bed44876b1c98abaf8a7499caf9ad543988c78d016eeab7d8f62d914c007b40404d94275568726bf0fc58a251506c3bc177c4514cdd171960a1fe22c7e83f0682877c82019cafedadbc06998cab2faef932dfcf8fb9b0cf4cfe60984493f5141b85620e87375473cffd7f4b57df38f960c1b00cb9155ad29ee1bf71154e7b158a2cf189167e3f4d50a62907dfaf9d915ae5c8a90fa94020a9b8df307da56bf8c7624c7db917545ea87e3e40b2fbfb8c8c852cc23fc9c8fe3ae79ff802e905a3a7b3cc938935bec255a21de14d11187eea4ad25a29ed78bf2bfdc6dd0da9fa485163037ceab572b3ff9a57676408693047e7f75743aba2518d8c18bebb6de57e30c5ccb251a1f4a0a22295c0f032886d22cada5bbe5fa52a91\"\n}"}],"_postman_id":"dcb423ad-c173-4e37-b84f-55e1f55af523"}],"id":"866d73de-a941-4b96-b8a8-dfe0c4440d00","description":"<p>Auth specific endpoints.</p>\n","event":[{"listen":"prerequest","script":{"id":"4e3a8107-68f0-4cde-b31a-332ae1739d7f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f6cff6af-821b-406e-b2e7-d2feda58bca5","type":"text/javascript","exec":[""]}}],"_postman_id":"866d73de-a941-4b96-b8a8-dfe0c4440d00"},{"name":"companies","item":[{"name":"company update setting","item":[{"name":"invoice Setting","id":"a907af21-de12-4118-b830-259df5dac68f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"invoice_number_method\": \"2\",\n// \"sales_invoice_number_prefix\": \"INVr\",\n\"return_sales_invoice_number_prefix\": \"INVr_RE\",\n\"sales_invoice_number_start\": \"1\",\n\"return_sales_invoice_number_start\": \"1\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/invoice-setting","description":"<p><strong>-invoice_number_method</strong></p>\n<p>1- non sequential | 2- sequential</p>\n<p>Sequential means that the invoices will be generated from ahad sequentially with the invoice number assigned to the generated invoices automatically from the system.</p>\n<p>Non sequential means that the invoices number of the generated invoices will not be added automatically and will be added by the user through the UI or public API</p>\n<p><strong>-sales_invoice_number_prefix</strong></p>\n<p>Mandatory if invoice_number_method is 2 (sequential)</p>\n<p>This is used as prefix for the auto. Generated invoice number</p>\n<p><strong>return_sales_invoice_number_prefix</strong></p>\n<p>Mandatory if invoice_number_method is 2 (sequential)</p>\n<p>This is used as prefix for the auto. Generated return invoice number<br /><strong>-sales_invoice_number_start</strong></p>\n<p>Mandatory if invoice_number_method is 2 (sequential)</p>\n<p>This is used to start the sequential numbering for the generated invoice numbers<br /><strong>-return_sales_invoice_number_start</strong></p>\n<p>Mandatory if invoice_number_method is 2 (sequential)</p>\n<p>This is used to start the sequential numbering for the generated invoice numbers</p>\n","urlObject":{"path":["public","api","v1",":company","invoice-setting"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[],"_postman_id":"a907af21-de12-4118-b830-259df5dac68f"},{"name":"notification Setting","id":"46bf11b7-2955-4129-af81-3648b583da05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"tax_notifications_enabled\": 0\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/notification-setting","urlObject":{"path":["public","api","v1",":company","notification-setting"],"host":["{{url}}"],"query":[],"variable":[{"id":"19276d31-1861-4c84-a902-b2e925e3b622","type":"any","value":"2","key":"company"}]}},"response":[],"_postman_id":"46bf11b7-2955-4129-af81-3648b583da05"}],"id":"190585cf-46e5-440a-b99e-2260ae2e312c","_postman_id":"190585cf-46e5-440a-b99e-2260ae2e312c","description":""},{"name":"Company update information","item":[{"name":"Update basic information","id":"c2e468eb-b24e-42b5-9ad6-e6b48949edc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"logo","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-03-03 19-54-15.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-03-03 19-54-15.png","disabled":true},{"key":"name","value":"Test Company","type":"text"},{"key":"short_name","value":"test","type":"text"},{"key":"type","value":"2","description":"<p>1 = Freelancer | 2 = Corporate</p>\n","type":"text"},{"key":"website","value":"www.facebook.com","type":"text"},{"key":"commercial_registration","value":"","type":"text","description":"<p>add it if type CORPORATE</p>\n"},{"key":"organization_type","value":"1","description":"<p>add it if type CORPORATE \n3 type\n1 - Institution\n2 - Limited Liability Company (One Person)\n3-  Limited Liability Company</p>\n","type":"text"},{"key":"tax_number","value":"1233215","type":"text","description":"<p>add it if type CORPORATE</p>\n"},{"key":"unified_number","value":"1000000","type":"default","description":"<p>add it if type CORPORATE</p>\n"},{"key":"certificate_number","value":"45455","type":"text","description":"<p>add it if type Freelancer</p>\n"},{"key":"national_id","value":"100000","type":"default","description":"<p>add it if type Freelancer</p>\n"},{"key":"email","value":"ahmed@example.com","type":"text"},{"key":"phone","value":"01140404040","type":"text"},{"key":"zip","value":"1234","type":"text"},{"key":"address[en]","value":"test","type":"text"},{"key":"address[ar]","value":"تيست","type":"text"},{"key":"country[label]","value":"makka","type":"text"},{"key":"country[value]","value":"sa","type":"text","description":"<p>must be ISO2</p>\n"},{"key":"city[label]","value":"alex","type":"text"},{"key":"city[value]","value":"12","type":"text"}]},"url":"{{url}}/public/api/v1/:company/company-basic-information","urlObject":{"path":["public","api","v1",":company","company-basic-information"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"6a84503f-fcfc-4751-8671-f1c76eea390e","name":"Update basic information","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Test Company","type":"text"},{"key":"type","value":"2","description":"1 = Freelancer | 2 = Corporate","type":"text"},{"key":"website","value":"www.facebook.com","type":"text"},{"key":"commercial_registration","value":"","type":"text","description":"add it if type CORPORATE"},{"key":"organization_type","value":"1","description":"add it if type CORPORATE","type":"text"},{"key":"tax_number","value":"123321","type":"text","description":"add it if type CORPORATE"},{"key":"unified_number","value":"1000000","type":"default","description":"add it if type CORPORATE"},{"key":"certificate_number","value":"","type":"text","description":"add it if type Freelancer"},{"key":"national_id","value":"100000","type":"default","description":"add it if type Freelancer"},{"key":"email","value":"ahmed@example.com","type":"text"},{"key":"phone","value":"01140404040","type":"text"},{"key":"zip","value":"1234","type":"text"},{"key":"address[en]","value":"test","type":"text"},{"key":"address[ar]","value":"تيست","type":"text"},{"key":"country[label]","value":"egypt","type":"text"},{"key":"country[value]","value":"EG","type":"text"},{"key":"city[label]","value":"alex","type":"text"},{"key":"city[value]","value":"12","type":"text"}]},"url":{"raw":"{{url}}/api/v2/:company/company-basic-information","host":["{{url}}"],"path":["api","v2",":company","company-basic-information"],"variable":[{"key":"company","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Feb 2024 17:09:45 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"slug\": \"company\",\n    \"short_name\": \"company\",\n    \"type\": 2,\n    \"vat_registered\": null\n}"}],"_postman_id":"c2e468eb-b24e-42b5-9ad6-e6b48949edc5"},{"name":"update branding","id":"95f76c30-1526-4c19-9696-c4c9de3def5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"logo_light","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-03-03 19-54-08.png"],"description":"<p>Needed if you want to add it to view the logo on the generated invoice </p>\n","src":"/home/cheetos/Pictures/Screenshot from 2024-03-03 19-54-08.png"},{"key":"logo_dark","type":"file","value":null,"disabled":true},{"key":"logo_light_mark","type":"file","value":null,"disabled":true},{"key":"logo_dark_mark","type":"file","value":null,"disabled":true}]},"url":"{{url}}/public/api/v1/:company/company-branding","description":"<p>logo_light is needed if you want to add it to view the logo on the generated invoices</p>\n<p>Kindly note that the maximum size of the uploaded files shouldn't exceed 2 megabytes per each one, also our supported files are JPG, PNG, &amp; SVG.</p>\n","urlObject":{"path":["public","api","v1",":company","company-branding"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"5dd94584-2516-4458-abe7-8367517c30a2","name":"update branding","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"logo_light","type":"file","src":"/home/cheetos/Pictures/Screenshot from 2024-02-27 16-35-32.png"},{"key":"logo_dark","type":"file","value":null},{"key":"logo_light_mark","type":"file","value":null},{"key":"logo_dark_mark","type":"file","value":null}]},"url":{"raw":"{{url}}/api/v2/:company/company-branding","host":["{{url}}"],"path":["api","v2",":company","company-branding"],"variable":[{"id":"8db87faf-26bd-4a8a-8b3d-3e00b71450a4","key":"company","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Feb 2024 17:37:39 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"slug\": \"company\",\n    \"short_name\": \"company\",\n    \"type\": 2,\n    \"vat_registered\": null\n}"}],"_postman_id":"95f76c30-1526-4c19-9696-c4c9de3def5a"},{"name":"update bank information","id":"8f289380-089b-4414-a404-5e41704ddcd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"iban\": \"EG1234556\",\n\"account_number\": \"123456\",\n\"bank_name\": \"arab bank\",\n\"account_name\": \"ahmed s\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/company-bank-information","description":"<p>To view the section of bank information in the generated invoices you need this section updated with the right information</p>\n","urlObject":{"path":["public","api","v1",":company","company-bank-information"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"b44eb1a1-dbf7-45c0-950c-a6cd7872b1ac","name":"update bank information","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"iban","type":"text","value":"EG1234556"},{"key":"account_number","type":"text","value":"123456"},{"key":"bank_name","type":"text","value":"arab bank"},{"key":"account_name","type":"text","value":"ahmed"}]},"url":{"raw":"{{url}}/api/v2/:company/company-bank-information","host":["{{url}}"],"path":["api","v2",":company","company-bank-information"],"variable":[{"id":"8db87faf-26bd-4a8a-8b3d-3e00b71450a4","key":"company","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Feb 2024 18:31:17 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"slug\": \"company\",\n    \"short_name\": \"company\",\n    \"type\": 2,\n    \"vat_registered\": null\n}"}],"_postman_id":"8f289380-089b-4414-a404-5e41704ddcd4"},{"name":"update company national address","id":"2783f014-ba1c-4c36-9ee2-56b50a87113e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"short_address\": \"ABCD1234\",\n  \"building_number\": \"1234\",\n  \"secondary_number\": \"1234\",\n  \"postal_code\": \"12345\",\n  \"street\": {\n    \"ar\": \"اسم الشارع\",\n    \"en\": \"street name\"\n  },\n  \"district\": {\n    \"ar\": \"اسم الحي\",\n    \"en\": \"district name\"\n  },\n  \"city\": {\n     \"label\" : \"Riyadh\",\n     \"value\" : \"27098\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/company-national-address","urlObject":{"path":["public","api","v1",":company","company-national-address"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[],"_postman_id":"2783f014-ba1c-4c36-9ee2-56b50a87113e"},{"name":"attach activities and categories","id":"9f0e9db0-ad82-4fbb-8e7d-95776b9c0480","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"activities\": [1,2,3],\n\"categories\": [1,2]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/attach-activities-categories","urlObject":{"path":["public","api","v1",":company","attach-activities-categories"],"host":["{{url}}"],"query":[],"variable":[{"id":"8fb4eef2-d366-41eb-afd8-8949e5b8f641","type":"any","value":"1","key":"company"}]}},"response":[],"_postman_id":"9f0e9db0-ad82-4fbb-8e7d-95776b9c0480"},{"name":"update tax information","id":"8592c5d1-7f48-431e-813d-1ce6111a81fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"vat_registered","type":"text","value":"1"},{"key":"period_type","type":"text","value":"2","description":"<p>Default is quarterly\n2 -&gt; month | 3 -&gt; quarter</p>\n<p>Defines the period according to which the entity needs to submit its VAT report to ZATCA.</p>\n"},{"key":"vat_registration_number","type":"text","value":"123456899","description":"<p>Needed to generate Tax invoices with QR code</p>\n"},{"key":"first_filing_due_date","type":"text","value":""},{"key":"vat_registration_certificate","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-02-26 14-48-48.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-02-26 14-48-48.png"},{"key":"tax_registration_date","value":"","type":"text"},{"key":"default_vat_enabled","value":"1","type":"text"}]},"url":"{{url}}/public/api/v1/:company/company-tax-information","urlObject":{"path":["public","api","v1",":company","company-tax-information"],"host":["{{url}}"],"query":[],"variable":[{"id":"8db87faf-26bd-4a8a-8b3d-3e00b71450a4","type":"any","value":"2","key":"company"}]}},"response":[{"id":"bff8664f-ff99-468f-80ff-5cb2daa542c8","name":"update tax information","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"iban","type":"text","value":"EG1234556"},{"key":"account_number","type":"text","value":"123456"},{"key":"bank_name","type":"text","value":"arab bank"},{"key":"account_name","type":"text","value":"ahmed"}]},"url":{"raw":"{{url}}/api/v2/:company/company-bank-information","host":["{{url}}"],"path":["api","v2",":company","company-bank-information"],"variable":[{"id":"8db87faf-26bd-4a8a-8b3d-3e00b71450a4","key":"company","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Feb 2024 18:31:17 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"slug\": \"company\",\n    \"short_name\": \"company\",\n    \"type\": 2,\n    \"vat_registered\": null\n}"}],"_postman_id":"8592c5d1-7f48-431e-813d-1ce6111a81fa"},{"name":"attach documents","id":"df668b4f-2e36-4287-bc12-7aaaaa977780","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"commercial_registration_document","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-02-29 12-47-44.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-02-29 12-47-44.png"},{"key":"national_id_document","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-02-19 13-35-36.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-02-19 13-35-36.png"},{"key":"certificate_number_document","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-01-31 12-50-46.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-01-31 12-50-46.png"},{"key":"extra_documents[]","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-02-27 14-45-13.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-02-27 14-45-13.png"},{"key":"extra_documents[]","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-01-17 15-23-52.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-01-17 15-23-52.png"},{"key":"extra_documents[]","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-01-23 11-31-12.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-01-23 11-31-12.png"}]},"url":"{{url}}/public/api/v1/:company/company-documents","urlObject":{"path":["public","api","v1",":company","company-documents"],"host":["{{url}}"],"query":[],"variable":[{"id":"8db87faf-26bd-4a8a-8b3d-3e00b71450a4","type":"any","value":"2","key":"company"}]}},"response":[{"id":"460477b7-11ac-4c21-b06a-d3a2fcc611fb","name":"update branding","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"logo_light","type":"file","src":"/home/cheetos/Pictures/Screenshot from 2024-02-27 16-35-32.png"},{"key":"logo_dark","type":"file","value":null},{"key":"logo_light_mark","type":"file","value":null},{"key":"logo_dark_mark","type":"file","value":null}]},"url":{"raw":"{{url}}/api/v2/:company/company-branding","host":["{{url}}"],"path":["api","v2",":company","company-branding"],"variable":[{"id":"8db87faf-26bd-4a8a-8b3d-3e00b71450a4","key":"company","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Feb 2024 17:37:39 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"slug\": \"company\",\n    \"short_name\": \"company\",\n    \"type\": 2,\n    \"vat_registered\": null\n}"}],"_postman_id":"df668b4f-2e36-4287-bc12-7aaaaa977780"},{"name":"delete docs","id":"2103d0fc-898c-4c6b-af77-4c8ff8d0b359","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/api/v2/:company/company-documents/:docId","urlObject":{"path":["api","v2",":company","company-documents",":docId"],"host":["{{url}}"],"query":[],"variable":[{"id":"a2feb261-99cc-4940-a9f1-30baa502dd92","type":"any","value":"2","key":"company"},{"id":"b4805c63-7a4b-4c04-b7fb-e9cf309e6731","type":"any","value":"484","key":"docId"}]}},"response":[],"_postman_id":"2103d0fc-898c-4c6b-af77-4c8ff8d0b359"}],"id":"08f0057c-d1c7-4b77-bffa-77e2da17bfb9","_postman_id":"08f0057c-d1c7-4b77-bffa-77e2da17bfb9","description":""},{"name":"list","id":"3aa4c25a-add3-4f02-9b8e-4e17547a99db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/companies","urlObject":{"path":["public","api","v1","companies"],"host":["{{url}}"],"query":[{"disabled":true,"key":"slug","value":"test"}],"variable":[]}},"response":[{"id":"7c90c0a2-f82f-4d2a-a7c1-aedcc3cb88b1","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/companies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Jan 2024 10:44:59 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"slug\": \"ipsam-quia-enim-nobis\",\n            \"short_name\": null,\n            \"name\": \"Test Company\",\n            \"is_sequential\": true\n        },\n        {\n            \"id\": 2,\n            \"slug\": \"company\",\n            \"short_name\": \"company\",\n            \"name\": \"company\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 3,\n            \"slug\": \"company2\",\n            \"short_name\": \"Company2\",\n            \"name\": \"Test Company\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 5,\n            \"slug\": \"company2\",\n            \"short_name\": \"Company2\",\n            \"name\": \"Company2\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 9,\n            \"slug\": \"test\",\n            \"short_name\": \"test\",\n            \"name\": \"test\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 10,\n            \"slug\": \"com-v2\",\n            \"short_name\": \"com-v2\",\n            \"name\": \"com-v2\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 12,\n            \"slug\": \"com2-v2\",\n            \"short_name\": \"com2-v2\",\n            \"name\": \"com2-v2\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 13,\n            \"slug\": \"com2-v2e\",\n            \"short_name\": \"com2-v2e\",\n            \"name\": \"com2-v2e\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 14,\n            \"slug\": \"com2-v2ee\",\n            \"short_name\": \"com2-v2ee\",\n            \"name\": \"com2-v2ee\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 15,\n            \"slug\": \"com2-v2ee1\",\n            \"short_name\": \"com2-v2ee1\",\n            \"name\": \"com2-v2ee1\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 16,\n            \"slug\": \"com2-v2ee2\",\n            \"short_name\": \"com2-v2ee2\",\n            \"name\": \"com2-v2ee2\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 17,\n            \"slug\": \"com2-v2ee9\",\n            \"short_name\": \"com2-v2ee9\",\n            \"name\": \"com2-v2ee9\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 18,\n            \"slug\": \"com2-v2ee8\",\n            \"short_name\": \"com2-v2ee8\",\n            \"name\": \"com2-v2ee8\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 19,\n            \"slug\": \"company2289\",\n            \"short_name\": \"Company2289\",\n            \"name\": \"Company2289\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 20,\n            \"slug\": \"company8\",\n            \"short_name\": \"Company8\",\n            \"name\": \"Company8\",\n            \"is_sequential\": false\n        },\n        {\n            \"id\": 21,\n            \"slug\": \"company81\",\n            \"short_name\": \"Company81\",\n            \"name\": \"Company81\",\n            \"is_sequential\": false\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/companies?page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/companies?page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/companies?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/companies\",\n        \"per_page\": 20,\n        \"to\": 16,\n        \"total\": 16\n    }\n}"}],"_postman_id":"3aa4c25a-add3-4f02-9b8e-4e17547a99db"},{"name":"Setting","id":"04065750-b115-418c-9093-0dd63f5d6163","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoice_number_method","value":"2","type":"text","description":"<p>1- non sequential | 2- sequential</p>\n"},{"key":"sales_invoice_number_prefix","value":"INV","type":"text"},{"key":"return_sales_invoice_number_prefix","value":"INV_RE","type":"text"},{"key":"sales_invoice_number_start","value":"1","type":"text"},{"key":"return_sales_invoice_number_start","value":"1","type":"text"}]},"url":"{{url}}/public/api/v1/:company/setting","urlObject":{"path":["public","api","v1",":company","setting"],"host":["{{url}}"],"query":[],"variable":[{"id":"4553a467-a6bd-4a16-b4d7-0c6dcdac8256","type":"any","value":"1","key":"company"}]}},"response":[],"_postman_id":"04065750-b115-418c-9093-0dd63f5d6163"},{"name":"Create","id":"3cf20302-766a-4b1a-8eec-eac52c5ba819","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"slug","value":"company short name","type":"text","description":"<p>[required] This Is the short name of the company</p>\n"},{"key":"type","value":"1","description":"<p>[required] 1 = Freelancer | 2 = Corporate</p>\n","type":"text"}]},"url":"{{url}}/public/api/v1/companies","urlObject":{"path":["public","api","v1","companies"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b392b2b6-fe9d-4d8a-ae4f-23eb0cb58404","name":"Create","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"slug","value":"Company-name","type":"text"},{"key":"type","value":"1","description":"1 = Freelancer | 2 = Corporate","type":"text"}]},"url":"{{url}}/public/api/v1/companies"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Jan 2024 10:45:59 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 22,\n    \"slug\": \"company-name\",\n    \"short_name\": \"Company-name\",\n    \"name\": \"Company-name\",\n    \"is_sequential\": false\n}"}],"_postman_id":"3cf20302-766a-4b1a-8eec-eac52c5ba819"},{"name":"show","id":"5ace474f-af07-4441-96be-e1d8ed16c05a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/companies/:company","urlObject":{"path":["public","api","v1","companies",":company"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"13","key":"company"}]}},"response":[{"id":"91826bf4-7f85-4d19-8a18-ab3d7f2ac211","name":"show","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/companies/:company","host":["{{url}}"],"path":["public","api","v1","companies",":company"],"variable":[{"key":"company","value":"13"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 13 Mar 2024 14:06:22 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13,\n    \"slug\": \"com2-v2e\",\n    \"short_name\": \"com2-v2e\",\n    \"name\": \"com2-v2e\",\n    \"is_sequential\": false,\n    \"logo_light\": \"https://ahad.local/storage/450/Screenshot-from-2024-01-31-14-06-41.png\",\n    \"type\": 2,\n    \"commercial_registration\": \"123456\",\n    \"unified_number\": \"123321\",\n    \"tax_number\": \"12345\",\n    \"certificate_number\": null,\n    \"national_id\": null,\n    \"period_type\": 2,\n    \"vat_registration_number\": \"12345\",\n    \"bank_information\": {\n        \"id\": 3,\n        \"iban\": \"45788887777\",\n        \"bank_name\": \"arab bank\",\n        \"account_name\": null,\n        \"account_number\": null\n    }\n}"}],"_postman_id":"5ace474f-af07-4441-96be-e1d8ed16c05a"},{"name":"company details","id":"12011f2c-b956-4de5-a39d-44ccec7e6812","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"logo_light","type":"file","src":"/home/cheetos/Pictures/Screenshot from 2024-02-27 16-35-32.png"},{"key":"logo_dark","type":"file","value":null},{"key":"logo_light_mark","type":"file","value":null},{"key":"logo_dark_mark","type":"file","value":null}]},"url":"{{url}}/public/api/v1/:company/company-details","urlObject":{"path":["public","api","v1",":company","company-details"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"6f732143-94d5-433a-b282-f87a93cd7d51","name":"company details","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"logo_light","type":"file","src":"/home/cheetos/Pictures/Screenshot from 2024-02-27 16-35-32.png"},{"key":"logo_dark","type":"file","value":null},{"key":"logo_light_mark","type":"file","value":null},{"key":"logo_dark_mark","type":"file","value":null}]},"url":{"raw":"{{url}}/public/api/v1/:company/company-details","host":["{{url}}"],"path":["public","api","v1",":company","company-details"],"variable":[{"key":"company","value":"43"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Oct 2024 12:58:29 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"basic_information\": {\n            \"id\": 43,\n            \"logo\": null,\n            \"slug\": \"com2-v2ee8\",\n            \"short_name\": \"test\",\n            \"name\": \"Test Company\",\n            \"type\": \"Corporate\",\n            \"status\": \"Under Review\",\n            \"commercial_registration\": null,\n            \"unified_number\": \"1000000\",\n            \"tax_number\": \"1233215\",\n            \"certificate_number\": null,\n            \"national_id\": null,\n            \"website\": \"www.facebook.com\",\n            \"email\": \"ahmed@example.com\",\n            \"phone\": \"01140404040\",\n            \"address\": {\n                \"ar\": \"تيست\",\n                \"en\": \"test\"\n            },\n            \"country\": {\n                \"label\": \"makka\",\n                \"value\": \"SA\"\n            },\n            \"city\": {\n                \"label\": \"alex\",\n                \"value\": \"12\"\n            },\n            \"zip\": \"1234\"\n        },\n        \"settings\": {\n            \"tax_setting\": {\n                \"period_type\": 3,\n                \"tax_registration_date\": null,\n                \"vat_registered\": true,\n                \"default_vat_enabled\": true,\n                \"first_filing_due_date\": null,\n                \"vat_registration_number\": \"12222\",\n                \"vat_registration_certificate\": null\n            },\n            \"invoice_setting\": {\n                \"invoice_number_method\": 2,\n                \"sales_invoice_number_prefix\": \"INV9\",\n                \"sales_invoice_number_prefix_used\": true,\n                \"sales_invoice_number_start\": \"001\",\n                \"return_sales_invoice_number_prefix\": \"RE-INV9\",\n                \"return_sales_invoice_number_prefix_used\": true,\n                \"return_sales_invoice_number_start\": \"001\"\n            },\n            \"notification_setting\": {\n                \"tax_notifications_enabled\": false\n            }\n        },\n        \"categories_and_activities\": {\n            \"categories\": {\n                \"sales\": [\n                    {\n                        \"id\": 1,\n                        \"name\": \"Goods\",\n                        \"type\": 1,\n                        \"is_default\": null,\n                        \"is_mandatory\": true,\n                        \"is_selected\": false,\n                        \"has_warning\": false\n                    }\n                ]\n            },\n            \"company_activities\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Trade\"\n                }\n            ]\n        },\n        \"branding\": {\n            \"logo\": {\n                \"light\": null,\n                \"dark\": null\n            },\n            \"mark\": {\n                \"light\": null,\n                \"dark\": null\n            }\n        },\n        \"bank_information\": {\n            \"id\": 1,\n            \"iban\": \"IBANCSX123456789\",\n            \"bank_name\": \"QNB\",\n            \"account_name\": \"QNB Account\",\n            \"account_number\": \"123456789\"\n        },\n        \"documents\": {\n            \"commercial_registration_document\": null,\n            \"certificate_number_document\": null,\n            \"national_id_document\": null,\n            \"extra_documents\": []\n        },\n        \"national_address\": {\n            \"id\": 1,\n            \"short_address\": \"ABCD1234\",\n            \"building_number\": \"1234\",\n            \"secondary_number\": \"1234\",\n            \"postal_code\": \"12345\",\n            \"street\": {\n                \"ar\": \"اسم الشارع\",\n                \"en\": \"street name\"\n            },\n            \"district\": {\n                \"ar\": \"اسم الحي\",\n                \"en\": \"district name\"\n            },\n            \"city\": {\n                \"label\": \"Riyadh\"\n            },\n            \"country\": {\n                \"value\": \"SA\"\n            }\n        }\n    }\n}"}],"_postman_id":"12011f2c-b956-4de5-a39d-44ccec7e6812"}],"id":"e800df89-5a9b-48a0-816e-e754970ed0d9","_postman_id":"e800df89-5a9b-48a0-816e-e754970ed0d9","description":""},{"name":"Third parties","item":[{"name":"Update Third Party","item":[{"name":"Update information","id":"2b939c15-41f2-4ebc-9d53-5ef7c901fb71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"PATCH","type":"text"},{"key":"type","value":"1","type":"text","description":"<p>[required if third_party_type Client] 1- Company | 2- Individual </p>\n"},{"key":"third_party_type","value":"1","type":"text","description":"<p>[required] 1- Client | 2- Vendor | 3- Both</p>\n"},{"key":"account_type","value":"1","type":"text","description":"<p>[required] 1- domestic | 2- collective</p>\n"},{"key":"name[en]","value":"mario22","type":"text"},{"key":"name[ar]","value":"ماريو","type":"text"},{"key":"registration_number","value":"123456789","type":"text","description":"<p>needed if type Company</p>\n"},{"key":"tax_number","value":"123456045880","type":"text"},{"key":"id_number","value":"123456789","type":"text"},{"key":"website","value":"google.com","type":"text","description":"<p>needed if type Company</p>\n"},{"key":"address[en]","value":"4 Top house, El nasser st.","type":"text"},{"key":"address[ar]","value":"4 Top house, El nasser st.","type":"text"},{"key":"country[value]","value":"EG","type":"text"},{"key":"city[value]","value":"ALEX","type":"text"},{"key":"district","value":"green plaza 2","type":"text"},{"key":"short_name","value":"test1234588","type":"text","disabled":true},{"key":"logo","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-04-16 14-40-52.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-04-16 14-40-52.png"},{"key":"email","value":"example@example.com","type":"text"},{"key":"license_number","value":"","description":"<p>needed if type individual</p>\n","type":"text"},{"key":"is_disabled","value":"0","description":"<p>boolean</p>\n","type":"text","disabled":true},{"key":"tax_registered","value":"1","description":"<p>boolean</p>\n","type":"text"},{"key":"ignore_tax_number_uniqueness","value":"1","type":"text","uuid":"cf7d94ba-23e6-406a-9bf8-703c9d07ea84"}]},"url":"{{url}}/public/api/v1/:company/clients/:client","description":"<p>Send a Patch request with a JSON payload containing only the fields you want to modify</p>\n","urlObject":{"path":["public","api","v1",":company","clients",":client"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"5d67c705-70c6-4925-a665-ce6d3e1c2b93","key":"client"}]}},"response":[{"id":"2b3ec964-8313-4abd-922e-4d685ea89520","name":"Update information","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"PUT","type":"text"},{"key":"type","value":"1","type":"text","description":"[required if third_party_type Client] 1- Company | 2- Individual "},{"key":"third_party_type","value":"1","type":"text","description":"[required] 1- Client | 2- Vendor | 3- Both"},{"key":"account_type","value":"1","type":"text","description":"[required] 1- domestic | 2- collective"},{"key":"name[en]","value":"mario","type":"text"},{"key":"name[ar]","value":"ماريو","type":"text"},{"key":"registration_number","value":"123456789","type":"text","description":"needed if type Company"},{"key":"tax_number","value":"00001234567891234231","type":"text"},{"key":"id_number","value":"123456789","type":"text"},{"key":"website","value":"google.com","type":"text","description":"needed if type Company"},{"key":"address[en]","value":"4 Top house, El nasser st.","type":"text"},{"key":"address[ar]","value":"4 Top house, El nasser st.","type":"text"},{"key":"country[value]","value":"EG","type":"text"},{"key":"city[value]","value":"ALEX","type":"text"},{"key":"district","value":"green plaza 2","type":"text"},{"key":"short_name","value":"test","type":"text"},{"key":"logo","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-03-18 13-12-18.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-03-18 13-12-18.png"},{"key":"email","value":"example@example.com","type":"text"},{"key":"license_number","value":"","description":"needed if type individual","type":"text"},{"key":"is_disabled","value":"0","description":"boolean","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client"],"variable":[{"id":"297cdadf-52ed-4b2f-b7b5-c89c5ab3b34a","key":"company","value":"1"},{"id":"ed315ad5-124b-4448-8acd-addc621d88bc","key":"client","value":"30258207-7ba9-4f40-84be-166315d5172f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 01 Apr 2024 15:59:41 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5259,\n    \"uuid\": \"30258207-7ba9-4f40-84be-166315d5172f\",\n    \"name\": \"mario\"\n}"}],"_postman_id":"2b939c15-41f2-4ebc-9d53-5ef7c901fb71"},{"name":"Update delegates","id":"4618a43d-c5aa-4165-b4eb-6972757a05af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"contacts\":[\n      {\n         \"name\":{\n            \"en\":\"123\",\n            \"ar\":\"321\"\n         },\n         \"title\":{\n            \"en\":\"test\",\n            \"ar\":\"test\"\n         },\n         \"email\":\"ahmed@example.com\",\n         \"status\": 0, // status 1 mean approved and 0 means not approved\n         \"is_receiver\": 1,\n         \"phone\":\"5416461616\"\n      }\n   ]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/clients/:client/update-delegates","urlObject":{"path":["public","api","v1",":company","clients",":client","update-delegates"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"15","key":"company"},{"type":"any","value":"93e266f9-db2d-456f-b1bd-45caba4ec2dd","key":"client"}]}},"response":[{"id":"a0d3d091-8c4a-472e-9846-8bd8594b4668","name":"Update delegates","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"contacts\":[\n      {\n         \"name\":{\n            \"en\":\"first1\",\n            \"ar\":\"first1\"\n         },\n         \"title\":{\n            \"en\":\"test\",\n            \"ar\":\"test\"\n         },\n         \"email\":\"ahmed@example.com\",\n         \"status\": 1, // status 1 mean approved and 0 means not approved\n         \"is_receiver\": 0,\n         \"phone\":\"96655666666\"\n      }\n   ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client/update-delegates","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client","update-delegates"],"variable":[{"id":"06b19756-e765-4065-9868-b6aaba8004a8","key":"company","value":"1"},{"id":"5ba94974-c074-43ff-b7c7-217c95e31518","key":"client","value":"30258207-7ba9-4f40-84be-166315d5172f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 27 Mar 2024 14:23:23 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5259,\n    \"uuid\": \"30258207-7ba9-4f40-84be-166315d5172f\",\n    \"name\": \"mario\"\n}"}],"_postman_id":"4618a43d-c5aa-4165-b4eb-6972757a05af"},{"name":"update thirdParty national address","id":"adf161c2-3f7c-4922-9a25-f2b7528da2f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"ar","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"short_address\": \"ABCD1234\",\n  \"building_number\": \"4444\",\n  \"secondary_number\": \"1235\",\n  \"postal_code\": \"02345\",\n  \"street\": {\n    \"ar\": \"اسم الشارع\",\n    \"en\": \"street name\"\n  },\n  \"district\": {\n    \"ar\": \"اسم الحي\",\n    \"en\": \"district name\"\n  },\n  \"city\": {\n    \"label\" : \"Riyadh\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/clients/:client/national-address","urlObject":{"path":["public","api","v1",":company","clients",":client","national-address"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"2f2dac09-f0b1-4c85-8a16-ac136d4b5014","key":"client"}]}},"response":[],"_postman_id":"adf161c2-3f7c-4922-9a25-f2b7528da2f6"},{"name":"attach documents","id":"b1b8b4a3-e3ce-4a8d-95ea-134c6ee87c7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"registration_certificate","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-03-18 14-47-49.png"],"src":"/home/cheetos/Pictures/Screenshot from 2024-03-18 14-47-49.png"},{"key":"extra_documents[]","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-03-03 19-54-08.png"],"src":["/home/cheetos/Pictures/Screenshot from 2024-03-03 19-54-08.png","/home/cheetos/Pictures/Screenshot from 2024-02-29 12-47-44.png"]},{"key":"_method","value":"put","type":"text"}]},"url":"{{url}}/api/v2/:company/clients/:client/documents","urlObject":{"path":["api","v2",":company","clients",":client","documents"],"host":["{{url}}"],"query":[],"variable":[{"id":"da4150f1-59ee-4f91-84fd-9e6dd05b5c46","type":"any","value":"2","key":"company"},{"id":"06624a5e-7946-4af5-8684-dce12ddddb5f","type":"any","value":"30258207-7ba9-4f40-84be-166315d5172f","key":"client"}]}},"response":[],"_postman_id":"b1b8b4a3-e3ce-4a8d-95ea-134c6ee87c7d"},{"name":"delete clients documents","id":"fd4c0e1e-f2d4-41b9-bc37-c321675dff54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/api/v2/:company/clients/:client/documents/:docId","urlObject":{"path":["api","v2",":company","clients",":client","documents",":docId"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"30258207-7ba9-4f40-84be-166315d5172f","key":"client"},{"type":"any","value":"578","key":"docId"}]}},"response":[],"_postman_id":"fd4c0e1e-f2d4-41b9-bc37-c321675dff54"}],"id":"0126e881-c411-4849-8718-7b80b93c9d63","_postman_id":"0126e881-c411-4849-8718-7b80b93c9d63","description":""},{"name":"list","id":"db218480-4f9a-457d-bf2d-11f85f45e9b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/clients?per_page=30&reference_number&tax_number","urlObject":{"path":["public","api","v1",":company","clients"],"host":["{{url}}"],"query":[{"key":"per_page","value":"30"},{"description":{"content":"<p>search by reference number</p>\n","type":"text/plain"},"key":"reference_number","value":null},{"description":{"content":"<p>search by tax number</p>\n","type":"text/plain"},"key":"tax_number","value":null}],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"a25c4cd1-b259-4e62-aa41-4d862e9b33bb","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/clients?per_page=30","host":["{{url}}"],"path":["public","api","v1",":company","clients"],"query":[{"key":"per_page","value":"30"}],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 01 Apr 2024 16:00:37 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 5253,\n            \"uuid\": \"b8f293dc-7688-4edf-9b0a-ca18d927a016\",\n            \"reference_number\": \"85YV03\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": null,\n            \"account_type\": 2,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"12345602217889\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-11-20T15:36:08.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5252,\n            \"uuid\": \"6b1fad59-e147-41b0-ac3a-b0ed8f25c009\",\n            \"reference_number\": \"3OZION\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": null,\n            \"account_type\": 2,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"12345602217887\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-11-20T15:35:47.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5251,\n            \"uuid\": \"88403248-57f2-48bc-ad7b-327a8f917144\",\n            \"reference_number\": \"7SI13L\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456022178877\",\n            \"id_number\": \"12364\",\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-11-20T15:35:07.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5250,\n            \"uuid\": \"8e91deec-d5de-4e61-ac18-1f076ecd5987\",\n            \"reference_number\": \"RAOIBW\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"1234560221788\",\n            \"id_number\": \"12364\",\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-11-20T15:34:29.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5249,\n            \"uuid\": \"023e0d2e-e046-4fd8-9e5c-c8aa832dad31\",\n            \"reference_number\": \"RRS5FZ\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"12345602217\",\n            \"id_number\": \"21\",\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-11-02T09:18:19.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5248,\n            \"uuid\": \"33909a74-cd6e-48c2-81a1-728b2cf7bbd7\",\n            \"reference_number\": \"RAQNKC\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"12345602210\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-11-02T09:18:03.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5247,\n            \"uuid\": \"efbd025a-57cb-45c8-844b-79ebfacf1b2e\",\n            \"reference_number\": \"NLQ7EC\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"1234560221\",\n            \"id_number\": \"123456789\",\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-31T09:54:03.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5246,\n            \"uuid\": \"317c4e72-2a8a-49a6-836b-1ee439f18778\",\n            \"reference_number\": \"H6VYXH\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456022\",\n            \"id_number\": \"123456789\",\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-31T09:00:15.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5245,\n            \"uuid\": \"4a6e91ab-96ac-45dd-9f24-728d7225f4e5\",\n            \"reference_number\": \"DMDSLR\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"12345602\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-31T08:58:35.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5244,\n            \"uuid\": \"12d7b9d8-bd37-4a59-bdbb-3be3122917c4\",\n            \"reference_number\": \"AY4ZVX\",\n            \"short_name\": \"test\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"1234560\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-31T08:57:46.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5243,\n            \"uuid\": \"87fdbb59-38cd-4947-b660-c95f3dab73ec\",\n            \"reference_number\": \"PHVDVS\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456045882\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T21:09:05.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5242,\n            \"uuid\": \"994056aa-577a-424f-8e03-15bc1011450f\",\n            \"reference_number\": \"HVWH0T\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456045881\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T21:07:15.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5241,\n            \"uuid\": \"829d55cd-b874-4bf8-b30c-153fad86a1b2\",\n            \"reference_number\": \"ZEGLPT\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456045880\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T21:05:44.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5240,\n            \"uuid\": \"7b790b45-8747-46f4-ae9f-0cf3a99f4e8c\",\n            \"reference_number\": \"FS3QZJ\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456045888\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T21:05:01.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5239,\n            \"uuid\": \"699588ba-825e-42c7-b47f-bb17b5d53c90\",\n            \"reference_number\": \"XPHRZQ\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"12345604588\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T21:04:01.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5238,\n            \"uuid\": \"652cf316-a395-4173-8bd4-2a0e7e5e1694\",\n            \"reference_number\": \"YXTICG\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"123456045\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T21:01:54.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5237,\n            \"uuid\": \"6858efb4-36c4-46e8-b799-dd33d723e11b\",\n            \"reference_number\": \"KX0BQ0\",\n            \"short_name\": \"name\",\n            \"name\": {\n                \"en\": \"nahla company\",\n                \"ar\": \"شركه نهله\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": \"123456704\",\n            \"tax_number\": \"12345604\",\n            \"id_number\": null,\n            \"website\": \"google.com\",\n            \"address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"country\": {\n                \"value\": \"EG\"\n            },\n            \"city\": {\n                \"value\": \"ALEX\"\n            },\n            \"zip\": null,\n            \"district\": \"green plaza\",\n            \"created_at\": \"2023-10-29T20:46:36.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [\n                {\n                    \"name\": \"\",\n                    \"title\": \"\",\n                    \"phone\": null,\n                    \"email\": \"client@system.app\",\n                    \"status\": \"Approved\",\n                    \"is_receiver\": true\n                }\n            ],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5236,\n            \"uuid\": \"061d876c-dce8-4443-a709-a40bc141396e\",\n            \"reference_number\": \"6OBWK0\",\n            \"short_name\": \"شركة علي\",\n            \"name\": {\n                \"ar\": \"شركة علي\",\n                \"en\": \"شركة علي\"\n            },\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 3,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": null,\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"SA\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5235,\n            \"uuid\": \"521c011d-bbae-4f9e-8540-3244a26699ed\",\n            \"reference_number\": \"aewewww\",\n            \"short_name\": \"شركة مريم\",\n            \"name\": {\n                \"ar\": \"شركة مريم\",\n                \"en\": \"شركة مريم\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"600000000000\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"DZ\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5234,\n            \"uuid\": \"081a74aa-eca6-4a6b-a0c4-0b167a8bb622\",\n            \"reference_number\": \"oiiijij\",\n            \"short_name\": \"شركة رقية\",\n            \"name\": {\n                \"ar\": \"شركة رقية\",\n                \"en\": \"شركة رقية\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"600000000000\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"AO\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5233,\n            \"uuid\": \"17bbf243-7672-4805-afaa-5d7a88c2640b\",\n            \"reference_number\": \"xssssssss\",\n            \"short_name\": \"مرام العتيق\",\n            \"name\": {\n                \"ar\": \"مرام العتيق\",\n                \"en\": \"مرام العتيق\"\n            },\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 2,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"99999999999999\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"AX\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5232,\n            \"uuid\": \"ca5853af-d92a-44f8-88e0-ebc93bc6d1a7\",\n            \"reference_number\": \"bbbbbb\",\n            \"short_name\": null,\n            \"name\": [],\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 3,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"888880000000000\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"AF\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5231,\n            \"uuid\": \"7c169dba-2efe-4f3a-af58-256fc17f0468\",\n            \"reference_number\": \"heloooooooooo\",\n            \"short_name\": \"المصممة ياسمين\",\n            \"name\": {\n                \"ar\": \"المصممة ياسمين خالد\",\n                \"en\": \"المصممة ياسمين خالد\"\n            },\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 2,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": null,\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"SA\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5230,\n            \"uuid\": \"659008a1-ccdf-4072-a56d-8f5bc1330384\",\n            \"reference_number\": \"testttttt\",\n            \"short_name\": \"شركة الغيث\",\n            \"name\": {\n                \"ar\": \"شركة الغيث الإستشارية\",\n                \"en\": \"شركة الغيث الإستشارية\"\n            },\n            \"type\": null,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"656789096543212\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"SA\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5229,\n            \"uuid\": \"8ece7e00-327d-4607-98f3-a709197f268d\",\n            \"reference_number\": \"ahmeddd\",\n            \"short_name\": \"شركة نور\",\n            \"name\": {\n                \"ar\": \"شركة نور\",\n                \"en\": \"شركة نور\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 3,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"324564563421234\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"SA\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:03:16.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5228,\n            \"uuid\": \"2dd8a4f3-bb74-4684-aeee-dcb117939359\",\n            \"reference_number\": \"شركة علي\",\n            \"short_name\": \"شركة علي\",\n            \"name\": {\n                \"ar\": \"شركة علي\",\n                \"en\": \"شركة علي\"\n            },\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 3,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": false,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": null,\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"SA\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:02:51.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5227,\n            \"uuid\": \"9ce3fdb3-9d6d-46a4-a96d-a242f2c68cf6\",\n            \"reference_number\": \"شركة مريم\",\n            \"short_name\": \"شركة مريم\",\n            \"name\": {\n                \"ar\": \"شركة مريم\",\n                \"en\": \"شركة مريم\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"600000000000\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"DZ\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:02:51.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5226,\n            \"uuid\": \"45500d8c-e563-455f-9664-5270282bc9ad\",\n            \"reference_number\": \"شركة رقية\",\n            \"short_name\": \"شركة رقية\",\n            \"name\": {\n                \"ar\": \"شركة رقية\",\n                \"en\": \"شركة رقية\"\n            },\n            \"type\": 1,\n            \"account_type\": 1,\n            \"third_party_type\": 1,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"600000000000\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"AO\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:02:51.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"contacts\": [],\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5225,\n            \"uuid\": \"7e0b30a0-29db-4a82-9b05-71b77f59c370\",\n            \"reference_number\": \"مرام العتيق\",\n            \"short_name\": \"مرام العتيق\",\n            \"name\": {\n                \"ar\": \"مرام العتيق\",\n                \"en\": \"مرام العتيق\"\n            },\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 2,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"99999999999999\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"AX\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:02:51.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        },\n        {\n            \"id\": 5224,\n            \"uuid\": \"8a4fc3e6-8b83-410c-bba3-bb92a0db6002\",\n            \"reference_number\": \"EXRVDO\",\n            \"short_name\": null,\n            \"name\": [],\n            \"type\": 2,\n            \"account_type\": 1,\n            \"third_party_type\": 3,\n            \"email\": null,\n            \"phone\": null,\n            \"tax_registered\": true,\n            \"license_number\": null,\n            \"registration_number\": null,\n            \"tax_number\": \"888880000000000\",\n            \"id_number\": null,\n            \"website\": null,\n            \"address\": [],\n            \"country\": {\n                \"value\": \"AF\"\n            },\n            \"city\": null,\n            \"zip\": null,\n            \"district\": null,\n            \"created_at\": \"2023-07-10T13:02:50.000000Z\",\n            \"is_disabled\": false,\n            \"logo\": \"\",\n            \"documents\": {\n                \"registration_certificate\": null,\n                \"extra_documents\": []\n            }\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/1/clients?page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/1/clients?page=172\",\n        \"prev\": null,\n        \"next\": \"https://ahad.local/public/api/v1/1/clients?page=2\"\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 172,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=5\",\n                \"label\": \"5\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=6\",\n                \"label\": \"6\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=7\",\n                \"label\": \"7\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=8\",\n                \"label\": \"8\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=9\",\n                \"label\": \"9\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=10\",\n                \"label\": \"10\",\n                \"active\": false\n            },\n            {\n                \"url\": null,\n                \"label\": \"...\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=171\",\n                \"label\": \"171\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=172\",\n                \"label\": \"172\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/clients?page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/1/clients\",\n        \"per_page\": \"30\",\n        \"to\": 30,\n        \"total\": 5155\n    }\n}"}],"_postman_id":"db218480-4f9a-457d-bf2d-11f85f45e9b7"},{"name":"View","id":"ca88fa2f-1678-47fc-adfb-bb32524534e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/clients/:client","urlObject":{"path":["public","api","v1",":company","clients",":client"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"30258207-7ba9-4f40-84be-166315d5172f","key":"client"}]}},"response":[{"id":"fef405ea-3a0d-4391-ada6-40918ff0ae09","name":"View","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client"],"variable":[{"key":"company","value":"43"},{"key":"client","value":"2f2dac09-f0b1-4c85-8a16-ac136d4b5014"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Oct 2024 12:54:25 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 120,\n        \"uuid\": \"2f2dac09-f0b1-4c85-8a16-ac136d4b5014\",\n        \"reference_number\": \"5ZBYCK\",\n        \"short_name\": \"name\",\n        \"name\": {\n            \"en\": \"nahla company\",\n            \"ar\": \"شركه نهله\"\n        },\n        \"type\": 1,\n        \"account_type\": 1,\n        \"third_party_type\": 1,\n        \"email\": null,\n        \"phone\": null,\n        \"tax_registered\": false,\n        \"license_number\": null,\n        \"registration_number\": \"123456704\",\n        \"tax_number\": \"123456045882\",\n        \"id_number\": null,\n        \"website\": \"google.com\",\n        \"address\": {\n            \"en\": \"4 Top house, El nasser st.\",\n            \"ar\": \"4 Top house, El nasser st.\"\n        },\n        \"country\": {\n            \"value\": \"SA\",\n            \"label\": \"Latvia\"\n        },\n        \"city\": {\n            \"value\": \"ALEX\"\n        },\n        \"zip\": null,\n        \"district\": \"green plaza\",\n        \"created_at\": \"2024-10-16T11:05:22.000000Z\",\n        \"is_disabled\": false,\n        \"logo\": \"\",\n        \"contacts\": [\n            {\n                \"name\": \"\",\n                \"title\": \"\",\n                \"phone\": null,\n                \"email\": \"client@system.app\",\n                \"status\": \"Approved\",\n                \"is_receiver\": true\n            }\n        ],\n        \"documents\": {\n            \"registration_certificate\": null,\n            \"extra_documents\": []\n        },\n        \"national_address\": {\n            \"id\": 2,\n            \"short_address\": \"ABCD1234\",\n            \"building_number\": \"4444\",\n            \"secondary_number\": \"1235\",\n            \"postal_code\": \"02345\",\n            \"street\": {\n                \"ar\": \"اسم الشارع\",\n                \"en\": \"street name\"\n            },\n            \"district\": {\n                \"ar\": \"اسم الحي\",\n                \"en\": \"district name\"\n            },\n            \"city\": {\n                \"label\": \"Riyadh\"\n            },\n            \"country\": {\n                \"value\": \"SA\"\n            }\n        }\n    }\n}"}],"_postman_id":"ca88fa2f-1678-47fc-adfb-bb32524534e0"},{"name":"Create","id":"0a144761-c718-4f1e-bb99-e72378fba77d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"type","value":"1","type":"text","description":"<p>[required if third_party_type Client]1- Company | 2- Individual </p>\n"},{"key":"third_party_type","value":"1","type":"text","description":"<p>[required] 1- Client | 2- Vendor | 3- Both</p>\n<p>To define whether this is a vendor only, client only or both</p>\n<p>Client can be used only in sales invoices \nVendors can be used only in purchases invoices</p>\n"},{"key":"account_type","value":"1","type":"text","description":"<p>[required] 1- domestic | 2- collective</p>\n<p>Domestic for Saudi Arabia third pirates </p>\n<p>Collective for B2C invoices where you don’t have the enough information for the client/ vendor</p>\n"},{"key":"name[en]","value":"nahla company","type":"text","description":"<p>If empty, the field will show entity’s short name in the generated invoices</p>\n"},{"key":"name[ar]","value":"شركه نهله","type":"text","description":"<p>If empty, the field will show entity’s short name in the generated invoices</p>\n"},{"key":"registration_number","value":"123456704","type":"text","description":"<p>Commercial registration number for the clients with type 1:Company</p>\n<p>If empty, the field will be blank in the generated invoices</p>\n"},{"key":"tax_number","value":"123456045880","type":"text","description":"<p>VAT registration number\nIf empty, the field will be blank in the generated invoices</p>\n"},{"key":"id_number","value":"123456789","type":"text","description":"<p>Company Unified number for the clients with type 1:Company</p>\n<p>Or the National Id number for the entities with type 2: Freelancer</p>\n<p>This field is not shown in the generated invoices</p>\n"},{"key":"website","value":"google.com","type":"text"},{"key":"address[en]","value":"4 Top house, El nasser st.","type":"text","description":"<p>If empty, the field will be blank in the generated invoices. Address is viewed in the invoice as \n[ADDRESS], [CITY]</p>\n"},{"key":"address[ar]","value":"4 Top house, El nasser st.","type":"text"},{"key":"country[value]","value":"SA","type":"text","description":"<p>must be ISO2</p>\n"},{"key":"city[value]","value":"ALEX","type":"text"},{"key":"district","value":"green plaza","type":"text"},{"key":"zip","value":"","type":"text"},{"key":"contacts[1][name][ar]","value":"","type":"text"},{"key":"contacts[1][name][en]","value":"","type":"text"},{"key":"contacts[1][title][ar]","value":"","type":"text"},{"key":"contacts[1][title][en]","value":"","type":"text"},{"key":"contacts[1][phone]","value":"","type":"text"},{"key":"contacts[1][email]","value":"client@system.app","type":"text"},{"key":"contacts[1][status]","value":"1","type":"text"},{"key":"contacts[1][is_receiver]","value":"1","type":"text"},{"key":"logo","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/shefaa/Pictures/Huma/Robotics/Q10_scale.png"],"src":"/home/shefaa/Pictures/Huma/Robotics/Q10_scale.png"},{"key":"registration_certificate","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/shefaa/Downloads/263352"],"src":"/home/shefaa/Downloads/263352"},{"key":"short_name","value":"name","description":"<p>[required]</p>\n","type":"text"},{"key":"license_number","value":"","description":"<p>the License number for the entities with type 2: Freelancer</p>\n","type":"text"},{"key":"tax_registered","value":"1","description":"<p>boolean</p>\n","type":"text"},{"key":"phone","value":"333333333","type":"text"},{"key":"email","value":"test@example.com","type":"text"},{"key":"reference_number","value":"unique","type":"text"},{"key":"ignore_tax_number_uniqueness","value":"1","description":"<p>boolean</p>\n","type":"text","uuid":"8a2b90e0-ed3f-457d-b8a9-aa149c7847d6"}]},"url":"{{url}}/public/api/v1/:company/clients","urlObject":{"path":["public","api","v1",":company","clients"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[],"_postman_id":"0a144761-c718-4f1e-bb99-e72378fba77d"},{"name":"Enable","id":"4986bef7-323f-44cc-9cce-6995c55a4415","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/clients/:client/enable","urlObject":{"path":["public","api","v1",":company","clients",":client","enable"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"22","key":"company"},{"type":"any","value":"176","key":"client"}]}},"response":[{"id":"d0fdbc78-9f0e-4806-bc02-5bbd2a738c1e","name":"Enable","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client/enable","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client","enable"],"variable":[{"key":"company","value":"1"},{"key":"client","value":"5d67c705-70c6-4925-a665-ce6d3e1c2b93"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 15 Sep 2025 13:18:22 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": []\n}"}],"_postman_id":"4986bef7-323f-44cc-9cce-6995c55a4415"},{"name":"Disable","id":"29a3b7c7-9bc3-4b97-bf52-f042ff1541d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/clients/:client/disable","urlObject":{"path":["public","api","v1",":company","clients",":client","disable"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"22","key":"company"},{"type":"any","value":"175","key":"client"}]}},"response":[{"id":"c4f7fdbc-e7db-4be3-9a94-8ccac96d399e","name":"Disable","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client/disable","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client","disable"],"variable":[{"key":"company","value":"1"},{"key":"client","value":"5d67c705-70c6-4925-a665-ce6d3e1c2b93"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 15 Sep 2025 13:18:33 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": []\n}"}],"_postman_id":"29a3b7c7-9bc3-4b97-bf52-f042ff1541d0"},{"name":"Delete","id":"80a832a1-398f-4cb1-82cd-e83ab246b555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/clients/:client","urlObject":{"path":["public","api","v1",":company","clients",":client"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"","key":"client"}]}},"response":[{"id":"f0c4e4a6-56e3-44cd-a1c0-8849b311d203","name":"Error","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"ids[]","value":"2","type":"text"},{"key":"_method","value":"DELETE","description":"TEMP: mock the delete with postman.","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client"],"variable":[{"key":"company","value":"1"},{"key":"client","value":"9ee2cbef-64a6-4ffc-9c7e-da4613a01ae0"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 15 Sep 2025 13:27:02 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This third party has been selected in created sale/purchase, and can't be deleted, you can disable him/her.\"\n}"},{"id":"97826e80-53e9-495f-b490-2cd16ac16770","name":"Delete","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/clients/:client","host":["{{url}}"],"path":["public","api","v1",":company","clients",":client"],"variable":[{"key":"company","value":"1"},{"key":"client","value":"9ee2cbef-64a6-4ffc-9c7e-da4613a01ae0"}]}},"code":200,"_postman_previewlanguage":"","header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 15 Sep 2025 13:27:02 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": []\n}"}],"_postman_id":"80a832a1-398f-4cb1-82cd-e83ab246b555"}],"id":"d9b0dafb-660d-4653-ae48-f2ae844ba9f3","_postman_id":"d9b0dafb-660d-4653-ae48-f2ae844ba9f3","description":""},{"name":"vat rates","item":[{"name":"list","id":"d7fbc17b-dcbd-4a5e-9ac0-f1efb53dd05b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/vat_rates?type=1&per_page=10&invoice_date=2025-10-30&third_party_id=1984&amount=500&category=2&top_matches=1","urlObject":{"path":["public","api","v1","vat_rates"],"host":["{{url}}"],"query":[{"disabled":true,"key":"name","value":null},{"key":"type","value":"1"},{"key":"per_page","value":"10"},{"key":"invoice_date","value":"2025-10-30"},{"key":"third_party_id","value":"1984"},{"key":"amount","value":"500"},{"key":"category","value":"2"},{"key":"top_matches","value":"1"}],"variable":[]}},"response":[{"id":"a4fed2b8-0fb4-4f5b-8e23-76d99855d66e","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/vat_rates?per_page=10","host":["{{url}}"],"path":["public","api","v1","vat_rates"],"query":[{"key":"per_page","value":"10"},{"key":"category","value":"2","disabled":true},{"key":"name","value":"SA_SA_NA00","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Apr 2024 14:40:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.23.3"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 102,\n            \"code\": \"SA_SA_NA00_A\",\n            \"name\": {\n                \"ar\": \"-% - مبيعات خارج النطاق\",\n                \"en\": \"-% - Out of Scope Sales\"\n            },\n            \"description\": {\n                \"ar\": \"مبيعات خارج النطاق\",\n                \"en\": \"Out of scope sales\"\n            },\n            \"type\": 3,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 2,\n            \"code_type\": {\n                \"ar\": \"خارج نطاق الضريبة\",\n                \"en\": \"Out of the range\"\n            },\n            \"code_type_index\": 0,\n            \"tax_rate\": \"0.00\",\n            \"created_at\": \"2022-11-24T14:34:35.000000Z\"\n        },\n        {\n            \"id\": 101,\n            \"code\": \"SA_PU_C150_A\",\n            \"name\": {\n                \"ar\": \"15% - احتساب عكسي للبضائع-مرتجع\",\n                \"en\": \"15% - RCM Goods-return\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات بضائع لم تسدد ضريبتها في الجمارك 15\",\n                \"en\": \"Purchases of Goods not paid by Customs 15% tax\"\n            },\n            \"type\": 4,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 3,\n            \"code_type\": {\n                \"ar\": \"مشتريات خاضعة للإحتساب العكسي 15%\",\n                \"en\": \"Reverse charge purchases 15%\"\n            },\n            \"code_type_index\": 9,\n            \"tax_rate\": \"0.00\",\n            \"created_at\": \"2023-07-24T09:26:48.000000Z\"\n        },\n        {\n            \"id\": 100,\n            \"code\": \"SA_PU_C150\",\n            \"name\": {\n                \"ar\": \"15% - احتساب عكسي للبضائع\",\n                \"en\": \"15% - RCM Goods\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات بضائع لم تسدد ضريبتها في الجمارك 15\",\n                \"en\": \"Purchases of Goods not paid by Customs 15% tax\"\n            },\n            \"type\": 2,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 3,\n            \"code_type\": {\n                \"ar\": \"مشتريات خاضعة للإحتساب العكسي 15%\",\n                \"en\": \"Reverse charge purchases 15%\"\n            },\n            \"code_type_index\": 9,\n            \"tax_rate\": \"0.00\",\n            \"created_at\": \"2023-07-24T09:26:48.000000Z\"\n        },\n        {\n            \"id\": 84,\n            \"code\": \"SA_PU_II15_A\",\n            \"name\": {\n                \"ar\": \"15% - استيراد دولي مدفوع-مرتجع\",\n                \"en\": \"15% - Paid Intl. Import-return\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات مستوردة - من خارج المملكة ودول الخليج 15٪\",\n                \"en\": \"Imported purchases - from outside the Kingdom and Gulf countries 15٪\"\n            },\n            \"type\": 4,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 3,\n            \"code_type\": {\n                \"ar\": \"ضريبة قيمة مضافة مدفوعة بالجمارك 15%\",\n                \"en\": \"VAT paid by customs 15%\"\n            },\n            \"code_type_index\": 8,\n            \"tax_rate\": \"15.00\",\n            \"created_at\": \"2022-12-20T20:43:54.000000Z\"\n        },\n        {\n            \"id\": 83,\n            \"code\": \"SA_PU_II15\",\n            \"name\": {\n                \"ar\": \"15% - استيراد دولي مدفوع\",\n                \"en\": \"15% - Paid Intl. Import\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات مستوردة - من خارج المملكة ودول الخليج 15٪\",\n                \"en\": \"Imported purchases - from outside the Kingdom and Gulf countries 15٪\"\n            },\n            \"type\": 2,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 3,\n            \"code_type\": {\n                \"ar\": \"ضريبة قيمة مضافة مدفوعة بالجمارك 15%\",\n                \"en\": \"VAT paid by customs 15%\"\n            },\n            \"code_type_index\": 8,\n            \"tax_rate\": \"15.00\",\n            \"created_at\": \"2022-12-20T20:43:54.000000Z\"\n        },\n        {\n            \"id\": 82,\n            \"code\": \"SA_PU_S050_A\",\n            \"name\": {\n                \"ar\": \"5% - مشتريات أساسية-مرتجع\",\n                \"en\": \"5% - Standard Purchases-return\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات النشاط الاقتصادي 5٪\",\n                \"en\": \"Purchases of economic activity 5٪\"\n            },\n            \"type\": 4,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"مشتريات خاضعة للنسبة الأساسية 5%\",\n                \"en\": \"Purchases subject to the basic ratio 5%\"\n            },\n            \"code_type_index\": 7.1,\n            \"tax_rate\": \"5.00\",\n            \"created_at\": \"2022-12-20T20:35:10.000000Z\"\n        },\n        {\n            \"id\": 81,\n            \"code\": \"SA_PU_S050\",\n            \"name\": {\n                \"ar\": \"5% - مشتريات أساسية\",\n                \"en\": \"5% - Standard Purchases\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات النشاط الاقتصادي 5٪\",\n                \"en\": \"Purchases of economic activity 5٪\"\n            },\n            \"type\": 2,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"مشتريات خاضعة للنسبة الأساسية 5%\",\n                \"en\": \"Purchases subject to the basic ratio 5%\"\n            },\n            \"code_type_index\": 7.1,\n            \"tax_rate\": \"5.00\",\n            \"created_at\": \"2022-12-20T20:35:10.000000Z\"\n        },\n        {\n            \"id\": 80,\n            \"code\": \"SA_PU_NA00\",\n            \"name\": {\n                \"ar\": \"-% - مشتريات لا تخصم\",\n                \"en\": \"-% - Pur. not deductible\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات لا يمكن خصمها\",\n                \"en\": \"Purchases that cannot be discounted\"\n            },\n            \"type\": 2,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 2,\n            \"code_type\": {\n                \"ar\": \"خارج نطاق الضريبة\",\n                \"en\": \"Out of the range\"\n            },\n            \"code_type_index\": 0,\n            \"tax_rate\": \"0.00\",\n            \"created_at\": \"2022-12-05T08:37:56.000000Z\"\n        },\n        {\n            \"id\": 79,\n            \"code\": \"SA_PU_IG05_A\",\n            \"name\": {\n                \"ar\": \"5% - استيراد خليجي مدفوع-مرتجع\",\n                \"en\": \"5% - Paid GCC Import-return\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات مستوردة - من دول الخليج 5\",\n                \"en\": \"Imported purchases - from Gulf countries 5\"\n            },\n            \"type\": 4,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 3,\n            \"code_type\": {\n                \"ar\": \"ضريبة قيمة مضافة مدفوعة بالجمارك 5%\",\n                \"en\": \"VAT paid by customs 5%\"\n            },\n            \"code_type_index\": 8.1,\n            \"tax_rate\": \"5.00\",\n            \"created_at\": \"2022-11-30T11:01:38.000000Z\"\n        },\n        {\n            \"id\": 78,\n            \"code\": \"SA_PU_IG05\",\n            \"name\": {\n                \"ar\": \"5% - استيراد خليجي مدفوع\",\n                \"en\": \"5% - Paid GCC Import\"\n            },\n            \"description\": {\n                \"ar\": \"مشتريات مستوردة - من دول الخليج 5\",\n                \"en\": \"Imported purchases - from Gulf countries 5\"\n            },\n            \"type\": 2,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 3,\n            \"code_type\": {\n                \"ar\": \"ضريبة قيمة مضافة مدفوعة بالجمارك 5%\",\n                \"en\": \"VAT paid by customs 5%\"\n            },\n            \"code_type_index\": 8.1,\n            \"tax_rate\": \"5.00\",\n            \"created_at\": \"2022-11-30T11:01:38.000000Z\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=1\",\n        \"last\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=8\",\n        \"prev\": null,\n        \"next\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=2\"\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 8,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=5\",\n                \"label\": \"5\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=6\",\n                \"label\": \"6\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=7\",\n                \"label\": \"7\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=8\",\n                \"label\": \"8\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://portal.ahad.ws/public/api/v1/vat_rates?page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://portal.ahad.ws/public/api/v1/vat_rates\",\n        \"per_page\": \"10\",\n        \"to\": 10,\n        \"total\": 77\n    }\n}"},{"id":"7930cd85-4577-42b3-8e82-44d75a5ab947","name":"top matches","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/vat_rates?type=1&per_page=10&invoice_date=2025-10-30&third_party_id=1984&amount=500&category=2&top_matches=1","host":["{{url}}"],"path":["public","api","v1","vat_rates"],"query":[{"key":"name","value":null,"type":"text","disabled":true},{"key":"type","value":"1"},{"key":"per_page","value":"10"},{"key":"invoice_date","value":"2025-10-30"},{"key":"third_party_id","value":"1984"},{"key":"amount","value":"500"},{"key":"category","value":"2"},{"key":"top_matches","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.27.0"},{"key":"Date","value":"Thu, 30 Oct 2025 10:17:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Strict-Transport-Security","value":"max-age=31536000"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 278,\n            \"code\": \"SA_SA_TTZ0000\",\n            \"name\": {\n                \"ar\": \"معفى-كل التصنيفات\",\n                \"en\": \"exempted-allCat\"\n            },\n            \"description\": [],\n            \"type\": 1,\n            \"country\": null,\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"خارج نطاق الضريبة\",\n                \"en\": \"Out of the range\"\n            },\n            \"code_type_index\": 0,\n            \"tax_rate\": \"0.00\",\n            \"created_at\": \"2024-09-29T12:22:58.000000Z\"\n        },\n        {\n            \"id\": 264,\n            \"code\": \"SA_SA_TSC0150\",\n            \"name\": {\n                \"ar\": \"النسبة الاساسية 15%\",\n                \"en\": \"essential code\"\n            },\n            \"description\": {\n                \"ar\": \"test\",\n                \"en\": \"test\"\n            },\n            \"type\": 1,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"مبيعات خاضعة للنسبة الأساسية 15%\",\n                \"en\": \"Sales subject to the basic ratio 15%\"\n            },\n            \"code_type_index\": 1,\n            \"tax_rate\": \"15.00\",\n            \"created_at\": \"2024-09-19T08:30:02.000000Z\"\n        },\n        {\n            \"id\": 233,\n            \"code\": \"SA_SA_FC\",\n            \"name\": {\n                \"ar\": \"Fai code\",\n                \"en\": \"Fai code\"\n            },\n            \"description\": {\n                \"ar\": \"ff\",\n                \"en\": \"ff\"\n            },\n            \"type\": 1,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"مبيعات خاضعة للنسبة الأساسية 15%\",\n                \"en\": \"Sales subject to the basic ratio 15%\"\n            },\n            \"code_type_index\": 1,\n            \"tax_rate\": \"15.00\",\n            \"created_at\": \"2024-05-14T09:19:40.000000Z\"\n        },\n        {\n            \"id\": 205,\n            \"code\": \"SA_SA_LINATEST0051\",\n            \"name\": {\n                \"ar\": \"linatest005\",\n                \"en\": \"linatest005\"\n            },\n            \"description\": {\n                \"ar\": \"linatest005\",\n                \"en\": \"linatest005\"\n            },\n            \"type\": 1,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"مبيعات خاضعة للنسبة الأساسية 15%\",\n                \"en\": \"Sales subject to the basic ratio 15%\"\n            },\n            \"code_type_index\": 1,\n            \"tax_rate\": \"3.00\",\n            \"created_at\": \"2023-11-09T10:50:40.000000Z\"\n        },\n        {\n            \"id\": 192,\n            \"code\": \"SA_SA_C150\",\n            \"name\": {\n                \"ar\": \"testc15\",\n                \"en\": \"testc15\"\n            },\n            \"description\": {\n                \"ar\": \"tttt\",\n                \"en\": \"tt\"\n            },\n            \"type\": 1,\n            \"country\": \"sa\",\n            \"transaction_type\": 1,\n            \"tax_ability\": 1,\n            \"code_type\": {\n                \"ar\": \"مبيعات خاضعة للنسبة الأساسية 15%\",\n                \"en\": \"Sales subject to the basic ratio 15%\"\n            },\n            \"code_type_index\": 1,\n            \"tax_rate\": \"15.00\",\n            \"created_at\": \"2023-09-28T19:45:39.000000Z\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://api.ahadtest.com/public/api/v1/vat_rates?type=1&per_page=10&invoice_date=2025-10-30&third_party_id=1984&amount=500&category=2&top_matches=1&is_withholding=0&page=1\",\n        \"last\": \"https://api.ahadtest.com/public/api/v1/vat_rates?type=1&per_page=10&invoice_date=2025-10-30&third_party_id=1984&amount=500&category=2&top_matches=1&is_withholding=0&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://api.ahadtest.com/public/api/v1/vat_rates?type=1&per_page=10&invoice_date=2025-10-30&third_party_id=1984&amount=500&category=2&top_matches=1&is_withholding=0&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://api.ahadtest.com/public/api/v1/vat_rates\",\n        \"per_page\": \"10\",\n        \"to\": 5,\n        \"total\": 5\n    }\n}"}],"_postman_id":"d7fbc17b-dcbd-4a5e-9ac0-f1efb53dd05b"}],"id":"20091dfa-bc67-4ce2-876d-809f2cf213d4","description":"<ul>\n<li><p>\"The 'type' variable can return values of 1, 2, 3, or 4. These values correspond to different types: TYPE_INCOME (1), TYPE_EXPENDITURE (2), TYPE_INCOME_RETURN (3), and TYPE_EXPENDITURE_RETURN (4).\"  </p>\n</li>\n<li><p>\"The 'transaction_type' variable can have values of 1, 2, or 3. Each value represents a different transaction type: TRANSACTION_TYPE_DOMESTIC (1), TRANSACTION_TYPE_INTERNATIONAL (2), and TRANSACTION_TYPE_GCC (3).\"</p>\n</li>\n</ul>\n","_postman_id":"20091dfa-bc67-4ce2-876d-809f2cf213d4"},{"name":"Products","item":[{"name":"View all","id":"70582652-5d45-4910-a3d4-364de7a5c0d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/products","urlObject":{"path":["public","api","v1",":company","products"],"host":["{{url}}"],"query":[{"disabled":true,"key":"name","value":"product"},{"disabled":true,"key":"date_from","value":"2021-12-03"},{"disabled":true,"key":"date_to","value":"2021-12-04"},{"disabled":true,"key":"type","value":"2"},{"disabled":true,"key":"id","value":"05515603ghvghj54ssjkh"}],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"8242e0b8-f581-432b-9e46-195361aebd5e","name":"View all","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/products","host":["{{url}}"],"path":["public","api","v1",":company","products"],"query":[{"key":"name","value":"product","disabled":true},{"key":"date_from","value":"2021-12-03","disabled":true},{"key":"date_to","value":"2021-12-04","disabled":true},{"key":"type","value":"2","type":"text","disabled":true},{"key":"id","value":"05515603ghvghj54ssjkh","disabled":true},{"key":"sku","value":"AD003 \\\\ 33BL","disabled":true}],"variable":[{"key":"company","value":"42"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Dec 2024 15:44:07 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"b064c872-d2d7-4edc-acd1-a782df8bcb67\",\n            \"name\": {\n                \"ar\": \"اسم المنتج 2\",\n                \"en\": \"Product name 2\"\n            },\n            \"description\": {\n                \"en\": \"Product description 2\",\n                \"ar\": \"وصف المنتج 2\"\n            },\n            \"type\": 0,\n            \"price\": 0,\n            \"sku\": \"J1NEYEBT\",\n            \"image\": \"\",\n            \"created_at\": \"2024-05-19T07:48:41.000000Z\"\n        },\n        {\n            \"id\": \"b0426724-85c0-44e4-847c-2e7f46792087\",\n            \"name\": {\n                \"ar\": \"اسم المنتج 2\",\n                \"en\": \"Product name 2\"\n            },\n            \"description\": {\n                \"en\": \"Product description 2\",\n                \"ar\": \"وصف المنتج 2\"\n            },\n            \"type\": 1,\n            \"price\": 12000,\n            \"sku\": \"1111\",\n            \"image\": \"\",\n            \"created_at\": \"2024-05-19T07:48:33.000000Z\"\n        },\n        {\n            \"id\": \"a82f9637-d602-44fd-aa07-4f03393c5c1f\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"autem voluptates voluptatem quidem et\",\n                \"en\": \"esse fugiat fuga quae dolorem\"\n            },\n            \"type\": 2,\n            \"price\": 65,\n            \"sku\": \"2286\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"f5a35988-88d3-4e7a-beb7-d74ba78988b4\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"et ex aut nam et\",\n                \"en\": \"omnis sed impedit et quas\"\n            },\n            \"type\": 2,\n            \"price\": 76,\n            \"sku\": \"2204\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"d1165d7f-c5e5-4601-823c-eb7bfddea217\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"sed sed tempora odio nihil\",\n                \"en\": \"qui consequuntur earum officiis et\"\n            },\n            \"type\": 2,\n            \"price\": 27,\n            \"sku\": \"279\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"cc6cbe49-69f5-4b06-8f30-b28c0da1caf6\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"autem cupiditate eos dolores eos\",\n                \"en\": \"fuga consequatur vel hic voluptatem\"\n            },\n            \"type\": 2,\n            \"price\": 11,\n            \"sku\": \"3438\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"a5eb254e-2c1d-4a0a-8127-36290d09a797\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"quo nesciunt possimus in consequatur\",\n                \"en\": \"voluptatem eos quaerat ratione blanditiis\"\n            },\n            \"type\": 2,\n            \"price\": 49,\n            \"sku\": \"2424\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"cd79da40-34dd-49eb-aff3-990f3cce54e4\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"accusamus minima voluptatem in sequi\",\n                \"en\": \"ut reprehenderit quae quo quisquam\"\n            },\n            \"type\": 2,\n            \"price\": 35,\n            \"sku\": \"1099\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"c4dbe94d-8027-4439-b857-0119aabdae5e\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"beatae id omnis aut omnis\",\n                \"en\": \"sequi quia dolores rerum asperiores\"\n            },\n            \"type\": 2,\n            \"price\": 75,\n            \"sku\": \"3749\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"bcb5fe76-265a-4049-9854-bf512f2f0986\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"autem veritatis qui saepe aut\",\n                \"en\": \"ullam delectus voluptatem libero quia\"\n            },\n            \"type\": 2,\n            \"price\": 64,\n            \"sku\": \"1739\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"52c48bfd-6c92-4aa5-a31c-ffcfe56ab388\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"vel officiis eos minima distinctio\",\n                \"en\": \"id aliquam cupiditate possimus voluptatem\"\n            },\n            \"type\": 2,\n            \"price\": 36,\n            \"sku\": \"3233\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"0c3d98ac-0467-42ab-b9b6-72266d2ae333\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"omnis suscipit pariatur molestias aspernatur\",\n                \"en\": \"molestias et non maxime perspiciatis\"\n            },\n            \"type\": 2,\n            \"price\": 25,\n            \"sku\": \"2250\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"701f10a1-0381-4ca2-a860-892095eb7e66\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"odit voluptate et corporis facilis\",\n                \"en\": \"in suscipit consequatur quas quibusdam\"\n            },\n            \"type\": 2,\n            \"price\": 74,\n            \"sku\": \"488\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"2d20800d-c71e-4c02-9c39-fe3dda0ce970\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"veniam non ut nobis illum\",\n                \"en\": \"et libero beatae at tenetur\"\n            },\n            \"type\": 2,\n            \"price\": 66,\n            \"sku\": \"385\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"e85840cb-ac00-4cc9-8029-faa2e63e03c0\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"libero similique voluptatem enim velit\",\n                \"en\": \"eius provident rem inventore et\"\n            },\n            \"type\": 2,\n            \"price\": 62,\n            \"sku\": \"912\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"df38f944-a47d-4e44-974a-0c7555527635\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"nam repudiandae dicta placeat voluptas\",\n                \"en\": \"ullam deleniti earum aut consectetur\"\n            },\n            \"type\": 2,\n            \"price\": 49,\n            \"sku\": \"1081\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"28245e82-30f9-4b81-8635-2cc0b46e3c24\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"perferendis distinctio perspiciatis quas sunt\",\n                \"en\": \"consequatur quod id sunt eum\"\n            },\n            \"type\": 2,\n            \"price\": 87,\n            \"sku\": \"1620\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"c6ffaa54-133f-4713-a7f0-ac8f4e95e267\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"voluptatem soluta voluptas illo atque\",\n                \"en\": \"aperiam accusamus architecto qui dolores\"\n            },\n            \"type\": 1,\n            \"price\": 50,\n            \"sku\": \"2332\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"313959b3-7103-4448-8a59-51a23747c617\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"molestiae accusamus et dolorum odio\",\n                \"en\": \"fugit nobis tempora vero eligendi\"\n            },\n            \"type\": 1,\n            \"price\": 84,\n            \"sku\": \"1100\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"96ffd604-3246-42af-bec9-d811d1016d21\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"voluptatibus repellendus sit nihil omnis\",\n                \"en\": \"et inventore quae tempora officia\"\n            },\n            \"type\": 1,\n            \"price\": 44,\n            \"sku\": \"3735\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"f738d58c-299d-4b38-b6d1-57f1b0a8cd45\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"qui quia qui asperiores vel\",\n                \"en\": \"debitis labore veritatis ea nesciunt\"\n            },\n            \"type\": 1,\n            \"price\": 68,\n            \"sku\": \"310\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"e69e42df-c023-436c-9013-5a0c001a6613\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"unde voluptas perspiciatis et placeat\",\n                \"en\": \"beatae ut repudiandae saepe blanditiis\"\n            },\n            \"type\": 1,\n            \"price\": 59,\n            \"sku\": \"1434\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"fc09ab98-24bf-4d5c-917e-544ed4033429\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"dolor assumenda mollitia sed dolores\",\n                \"en\": \"accusantium tempora ex eum ut\"\n            },\n            \"type\": 1,\n            \"price\": 62,\n            \"sku\": \"1388\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"c763abff-9221-4e46-be31-add7f1957be7\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"vero eveniet numquam vel earum\",\n                \"en\": \"et nesciunt accusantium id dolorem\"\n            },\n            \"type\": 1,\n            \"price\": 81,\n            \"sku\": \"2142\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        },\n        {\n            \"id\": \"f7392a8e-7552-4a1c-b8dd-bbcdbaf7d81c\",\n            \"name\": {\n                \"ar\": \"Product AR\",\n                \"en\": \"Product EN\"\n            },\n            \"description\": {\n                \"ar\": \"voluptatem in natus enim non\",\n                \"en\": \"vero qui illo quisquam beatae\"\n            },\n            \"type\": 1,\n            \"price\": 57,\n            \"sku\": \"1655\",\n            \"image\": \"\",\n            \"created_at\": \"2024-04-16T13:10:20.000000Z\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/42/products?page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/42/products?page=2\",\n        \"prev\": null,\n        \"next\": \"https://ahad.local/public/api/v1/42/products?page=2\"\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 2,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/42/products?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/42/products?page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/42/products?page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/42/products\",\n        \"per_page\": 25,\n        \"to\": 25,\n        \"total\": 29\n    }\n}"}],"_postman_id":"70582652-5d45-4910-a3d4-364de7a5c0d6"},{"name":"View","id":"dbaee35c-55ff-4636-a854-67f0e160c6e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/products/:product/","urlObject":{"path":["public","api","v1",":company","products",":product",""],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"b02a8c5f-6e10-4b94-bf01-a2b7662b79f9","key":"product"}]}},"response":[{"id":"ac8a84a6-1340-44f5-884e-cd57376e841d","name":"View","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/products/:product/","host":["{{url}}"],"path":["public","api","v1",":company","products",":product",""],"variable":[{"key":"company","value":"1"},{"key":"product","value":"b02a8c5f-6e10-4b94-bf01-a2b7662b79f9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 07 Dec 2023 15:07:09 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"b02a8c5f-6e10-4b94-bf01-a2b7662b79f9\",\n        \"name\": {\n            \"ar\": \"اسم المنتج 2\",\n            \"en\": \"Product name 2\"\n        },\n        \"description\": {\n            \"en\": \"Product description 2\",\n            \"ar\": \"وصف المنتج 2\"\n        },\n        \"type\": 1,\n        \"price\": 12000,\n        \"sku\": \"1111gsgsgsv-ssjnjsnjn\",\n        \"category\": {\n            \"id\": 1,\n            \"name\": \"Goods\",\n            \"type\": 1,\n            \"is_default\": 0\n        },\n        \"image\": \"\",\n        \"created_at\": \"2023-12-07T15:04:33.000000Z\"\n    }\n}"}],"_postman_id":"dbaee35c-55ff-4636-a854-67f0e160c6e7"},{"name":"Create","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"54bc0741-3a59-4a93-8102-1059ddc05ad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"اسم المنتج 2","type":"text","description":"<p>required</p>\n"},{"key":"name[en]","value":"Product name 2","type":"text","description":"<p>required</p>\n"},{"key":"description[en]","value":"Product description 2","type":"text"},{"key":"description[ar]","value":"وصف المنتج 2","type":"text"},{"key":"sku","value":"test-pro1","type":"text"},{"key":"price","value":"12000","type":"text","description":"<p>required</p>\n"},{"key":"type","value":"1","description":"<p>0:both,1:sale,2:purchase</p>\n","type":"text"},{"key":"category_id","value":"1","type":"text"},{"key":"image","description":"<p>max size 5 MP </p>\n","type":"file","src":"/home/cheetos/Pictures/Screenshot from 2024-12-30 11-19-35.png"}]},"url":"{{url}}/public/api/v1/:company/products","urlObject":{"path":["public","api","v1",":company","products"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"0891aa43-194b-4934-b7ba-d4e6dddd728a","name":"Create","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"اسم المنتج 2","type":"text","description":"required"},{"key":"name[en]","value":"Product name 2","type":"text","description":"required"},{"key":"description[en]","value":"Product description 2","type":"text"},{"key":"description[ar]","value":"وصف المنتج 2","type":"text"},{"key":"sku","value":"test-pro","type":"text"},{"key":"price","value":"12000","type":"text","description":"required"},{"key":"type","value":"1","description":"0:both,1:sale,2:purchase","type":"text"},{"key":"category_id","value":"1","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/products","host":["{{url}}"],"path":["public","api","v1",":company","products"],"variable":[{"key":"company","value":"43"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Dec 2024 15:48:00 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"af732683-adc8-437e-9ee2-03ee5043e541\",\n        \"name\": {\n            \"ar\": \"اسم المنتج 2\",\n            \"en\": \"Product name 2\"\n        },\n        \"description\": {\n            \"en\": \"Product description 2\",\n            \"ar\": \"وصف المنتج 2\"\n        },\n        \"type\": 1,\n        \"price\": 12000,\n        \"sku\": \"test-pro\",\n        \"category\": {\n            \"id\": 1,\n            \"name\": \"Goods\",\n            \"type\": 1,\n            \"is_default\": 0\n        },\n        \"image\": \"\",\n        \"created_at\": \"2024-12-23T15:48:00.000000Z\"\n    }\n}"}],"_postman_id":"54bc0741-3a59-4a93-8102-1059ddc05ad6"}],"id":"84a46841-008a-43cf-a3ec-9f00ef269170","event":[{"listen":"prerequest","script":{"id":"6c280102-03d3-40c7-9dfc-db7ffe907563","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"59a3340b-ca94-4f68-ac4f-45916e2d4bff","type":"text/javascript","exec":[""]}}],"_postman_id":"84a46841-008a-43cf-a3ec-9f00ef269170","description":""},{"name":"Categories","item":[{"name":"list","id":"60ab0340-09b9-41e9-86a5-d7874655d425","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/categories","urlObject":{"path":["public","api","v1","categories"],"host":["{{url}}"],"query":[{"disabled":true,"key":"vat_rate","value":"1"}],"variable":[]}},"response":[{"id":"61077a62-1e04-44be-975f-51c7322e5117","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/categories","host":["{{url}}"],"path":["public","api","v1","categories"],"query":[{"key":"vat_rate","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:56:08 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"sales\": [\n            {\n                \"id\": 1,\n                \"name\": \"Goods\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Services\",\n                \"type\": 1,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 3,\n                \"name\": \"Medical Treatment for Saudis\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 4,\n                \"name\": \"Qualified Medical Equipment\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 5,\n                \"name\": \"Qualified Medicines\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 6,\n                \"name\": \"Educational Services for Saudis\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 7,\n                \"name\": \"Residential Real Estate Sale\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 8,\n                \"name\": \"First House for Saudis\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 9,\n                \"name\": \"Commercial Real Estate Sale\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 10,\n                \"name\": \"Land Real Estate Sale\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 11,\n                \"name\": \"Residential Real Estate Rent < 50 years\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 12,\n                \"name\": \"Residential Real Estate Rent > 50 years\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 13,\n                \"name\": \"Commercial Real Estate Rent < 50 years\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 14,\n                \"name\": \"Commercial Real Estate Rent > 50 years\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 15,\n                \"name\": \"Outbound and inbound within Saudi\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 16,\n                \"name\": \"Saudi to Off-Shore\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 17,\n                \"name\": \"Off-shore to Saudi\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 18,\n                \"name\": \"Outbound and inbound outside Saudi\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 19,\n                \"name\": \"Eligible transportation\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 20,\n                \"name\": \"Eligible Precious Metals\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 21,\n                \"name\": \"Eligible Financial Services\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 22,\n                \"name\": \"Eligible Securities\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 23,\n                \"name\": \"Eligible Insurance\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 24,\n                \"name\": \"Internal Sales\",\n                \"type\": 1,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 25,\n                \"name\": \"Out of Scope\",\n                \"type\": 1,\n                \"is_default\": 0\n            }\n        ],\n        \"purchases\": [\n            {\n                \"id\": 26,\n                \"name\": \"Asset\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 27,\n                \"name\": \"Inventory\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 28,\n                \"name\": \"Goods\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 29,\n                \"name\": \"Services\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 30,\n                \"name\": \"Salaries\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 31,\n                \"name\": \"Employees Benefits\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 32,\n                \"name\": \"Medical Insurance for Employees\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 33,\n                \"name\": \"Petrol, Diesel and Gas\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 34,\n                \"name\": \"Tickets, Hotels, & Transportation\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 35,\n                \"name\": \"Travel Spending\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 36,\n                \"name\": \"Campaign & Advertisement\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 37,\n                \"name\": \"Sales & Marketing Commissions\",\n                \"type\": 2,\n                \"is_default\": 0\n            },\n            {\n                \"id\": 38,\n                \"name\": \"Rent & Office Utilities\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 39,\n                \"name\": \"Mail and Courier\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 40,\n                \"name\": \"Entertainment\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 41,\n                \"name\": \"Softwares & Applications\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 42,\n                \"name\": \"Internet & Mobiles\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 43,\n                \"name\": \"Business Related Consultation\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 44,\n                \"name\": \"Management Consultations\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 45,\n                \"name\": \"Payments and Collection Fees\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 46,\n                \"name\": \"Bank Account Fees\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 47,\n                \"name\": \"Registeration & Periodic Fees\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 48,\n                \"name\": \"Government Fines & Penalties\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 49,\n                \"name\": \"Other\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 50,\n                \"name\": \"Owner Spending\",\n                \"type\": 2,\n                \"is_default\": 1\n            },\n            {\n                \"id\": 51,\n                \"name\": \"Internal Purchases\",\n                \"type\": 2,\n                \"is_default\": 1\n            }\n        ]\n    }\n}"}],"_postman_id":"60ab0340-09b9-41e9-86a5-d7874655d425"},{"name":"Check validity with vat","id":"8fd22de1-1860-43e4-a4bb-099d33e6a673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"ar","type":"text"},{"key":"X-Language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/categories/vat_rates/check-validity/:category/:vatRate","urlObject":{"path":["public","api","v1","categories","vat_rates","check-validity",":category",":vatRate"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"category"},{"type":"any","value":"2","key":"vatRate"}]}},"response":[{"id":"d2701293-fb9b-48d0-8850-caeaab470b57","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"ar","type":"text"},{"key":"X-Language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/categories/vat_rates/check-validity/:category/:vatRate","host":["{{url}}"],"path":["public","api","v1","categories","vat_rates","check-validity",":category",":vatRate"],"variable":[{"key":"category","value":"1"},{"key":"vatRate","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.19"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 15 Apr 2025 08:29:05 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"has_warning\": 0,\n    \"info_msg\": \"info\",\n    \"warning_msg\": \"info\"\n}"},{"id":"8897363b-55a1-4677-b29f-6d964c981032","name":"error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"ar","type":"text"},{"key":"X-Language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/categories/vat_rates/check-validity/:category/:vatRate","host":["{{url}}"],"path":["public","api","v1","categories","vat_rates","check-validity",":category",":vatRate"],"variable":[{"key":"category","value":"1"},{"key":"vatRate","value":"2"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.19"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 15 Apr 2025 08:30:09 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"الكود الضريبي الذي اخترته لا يتناسب مع فئة الفاتورة\"\n}"}],"_postman_id":"8fd22de1-1860-43e4-a4bb-099d33e6a673"}],"id":"42cdcd25-2436-4f39-8057-c6158b9b5620","_postman_id":"42cdcd25-2436-4f39-8057-c6158b9b5620","description":""},{"name":"Company activities","item":[{"name":"list","id":"e58ac390-f0a3-4366-927f-14d9b453d832","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/activities","urlObject":{"path":["public","api","v1","activities"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"391dd61a-3212-41ab-a00e-34877918344f","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/activities","host":["{{url}}"],"path":["public","api","v1","activities"],"query":[{"key":"vat_rate","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 03 Mar 2024 16:40:34 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Trade\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Construction\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Administrative, maintenance and support service activities\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"Real estate activities\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"Manufacturing\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"Electricity, gas and Water supply\"\n        },\n        {\n            \"id\": 7,\n            \"name\": \"Mining and quarrying\"\n        },\n        {\n            \"id\": 8,\n            \"name\": \"Media and Publishing and Distribution\"\n        },\n        {\n            \"id\": 9,\n            \"name\": \"Information and communication\"\n        },\n        {\n            \"id\": 10,\n            \"name\": \"Agriculture, forestry and fishing\"\n        },\n        {\n            \"id\": 11,\n            \"name\": \"Human health and social work activities\"\n        },\n        {\n            \"id\": 12,\n            \"name\": \"Education\"\n        },\n        {\n            \"id\": 13,\n            \"name\": \"recruitment and employment\"\n        },\n        {\n            \"id\": 14,\n            \"name\": \"Public administration and defense; compulsory social security\"\n        },\n        {\n            \"id\": 15,\n            \"name\": \"Transportation and storage\"\n        },\n        {\n            \"id\": 16,\n            \"name\": \"Professional, scientific and technical activities\"\n        },\n        {\n            \"id\": 17,\n            \"name\": \"Arts, entertainment and recreation\"\n        },\n        {\n            \"id\": 18,\n            \"name\": \"Financial and insurance activities\"\n        },\n        {\n            \"id\": 19,\n            \"name\": \"Other service activities\"\n        }\n    ]\n}"}],"_postman_id":"e58ac390-f0a3-4366-927f-14d9b453d832"},{"name":"List categories by company activities","id":"0f231810-9a42-445e-bf46-12395774f7c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/public/api/v1/categories/by-activities?company_activities[]=1&company_activities[]=3","urlObject":{"path":["public","api","v1","categories","by-activities"],"host":["{{url}}"],"query":[{"key":"company_activities[]","value":"1"},{"key":"company_activities[]","value":"3"}],"variable":[]}},"response":[{"id":"e8d5ff56-c5bb-4bc3-b486-acb0290a0dbc","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/public/api/v1/categories/by-activities?company_activities[]=1&company_activities[]=3","host":["{{url}}"],"path":["public","api","v1","categories","by-activities"],"query":[{"key":"company_activities[]","value":"1"},{"key":"company_activities[]","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.20"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 13 May 2025 10:35:53 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"sales\": [\n            {\n                \"id\": 1,\n                \"name\": \"Goods\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Services\",\n                \"type\": 1,\n                \"is_default\": 1,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 3,\n                \"name\": \"Medical Treatment for Saudis\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 4,\n                \"name\": \"Qualified Medical Equipment\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 5,\n                \"name\": \"Qualified Medicines\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 6,\n                \"name\": \"Educational Services for Saudis\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 7,\n                \"name\": \"Residential Real Estate Sale\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 8,\n                \"name\": \"First House for Saudis\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 9,\n                \"name\": \"Commercial Real Estate Sale\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 10,\n                \"name\": \"Land Real Estate Sale\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 11,\n                \"name\": \"Residential Real Estate Rent < 50 years\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 12,\n                \"name\": \"Residential Real Estate Rent > 50 years\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 13,\n                \"name\": \"Commercial Real Estate Rent < 50 years\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 14,\n                \"name\": \"Commercial Real Estate Rent > 50 years\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 15,\n                \"name\": \"Outbound and inbound within Saudi\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 16,\n                \"name\": \"Saudi to Off-Shore\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 17,\n                \"name\": \"Off-shore to Saudi\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 18,\n                \"name\": \"Outbound and inbound outside Saudi\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 19,\n                \"name\": \"Eligible transportation\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 20,\n                \"name\": \"Eligible Precious Metals\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 21,\n                \"name\": \"Eligible Financial Services\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 22,\n                \"name\": \"Eligible Securities\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 23,\n                \"name\": \"Eligible Insurance\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 24,\n                \"name\": \"Internal Sales\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 25,\n                \"name\": \"Out of Scope\",\n                \"type\": 1,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": true\n            }\n        ],\n        \"purchases\": [\n            {\n                \"id\": 26,\n                \"name\": \"Asset\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 27,\n                \"name\": \"Inventory\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 28,\n                \"name\": \"Goods\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 29,\n                \"name\": \"Services\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 30,\n                \"name\": \"Salaries\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 31,\n                \"name\": \"Employees Benefits\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 32,\n                \"name\": \"Medical Insurance for Employees\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 33,\n                \"name\": \"Petrol, Diesel and Gas\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 34,\n                \"name\": \"Tickets, Hotels, & Transportation\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 35,\n                \"name\": \"Travel Spending\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 36,\n                \"name\": \"Campaign & Advertisement\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 37,\n                \"name\": \"Sales & Marketing Commissions\",\n                \"type\": 2,\n                \"is_default\": 0,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 38,\n                \"name\": \"Rent & Office Utilities\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 39,\n                \"name\": \"Mail and Courier\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 40,\n                \"name\": \"Entertainment\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 41,\n                \"name\": \"Softwares & Applications\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 42,\n                \"name\": \"Internet & Mobiles\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 43,\n                \"name\": \"Business Related Consultation\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 44,\n                \"name\": \"Management Consultations\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 45,\n                \"name\": \"Payments and Collection Fees\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 46,\n                \"name\": \"Bank Account Fees\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 47,\n                \"name\": \"Registeration & Periodic Fees\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 48,\n                \"name\": \"Government Fines & Penalties\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 49,\n                \"name\": \"Other\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": true,\n                \"is_selected\": false,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 50,\n                \"name\": \"Owner Spending\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": true,\n                \"has_warning\": false\n            },\n            {\n                \"id\": 51,\n                \"name\": \"Internal Purchases\",\n                \"type\": 2,\n                \"is_default\": 1,\n                \"is_mandatory\": false,\n                \"is_selected\": false,\n                \"has_warning\": false\n            }\n        ]\n    }\n}"}],"_postman_id":"0f231810-9a42-445e-bf46-12395774f7c3"}],"id":"64de00ed-a121-48b9-9125-7363478c6a1a","_postman_id":"64de00ed-a121-48b9-9125-7363478c6a1a","description":""},{"name":"Invoices","item":[{"name":"sales","item":[{"name":"list","id":"4bce503a-ea68-416d-b682-828fa5c7c5ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/invoices/sales","urlObject":{"path":["public","api","v1",":company","invoices","sales"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"78","key":"company"}]}},"response":[{"id":"27153b2f-cafd-4f3b-bff1-b1926698da8f","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales?per_page=2","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales"],"query":[{"key":"per_page","value":"2","type":"text"}],"variable":[{"key":"company","value":"43"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 24 Dec 2024 11:06:22 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"8f76dbed-5dc8-40db-b2b0-ac4b0d2677c5\",\n            \"invoice_date\": \"2024-12-10T00:00:00.000000Z\",\n            \"payment_date\": \"2024-12-10T00:00:00.000000Z\",\n            \"invoice_number\": \"INV-0180\",\n            \"is_return\": false,\n            \"is_cashback\": false,\n            \"is_returnable\": true,\n            \"is_sequential\": true,\n            \"status\": 1,\n            \"can_update_return\": true,\n            \"oldest_return_invoice_date\": null,\n            \"has_draft_return_invoice\": false,\n            \"invoice_type\": \"sale\",\n            \"type\": 1,\n            \"description\": [],\n            \"amount\": 9910000,\n            \"remaining_amount\": 9910000,\n            \"remaining_amount_with_vat\": 11396500,\n            \"discount\": 0,\n            \"amount_before_discount\": 9910000,\n            \"calculated_vat\": 1486500,\n            \"can_update\": true,\n            \"can_delete\": false,\n            \"processed\": false,\n            \"client\": {\n                \"name\": \"test1234588\",\n                \"reference_number\": \"8OA83T\",\n                \"id\": 20\n            },\n            \"return_invoices\": [],\n            \"invoice_items_count\": 166,\n            \"errors\": {\n                \"warning\": [\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#1: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#2: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#3: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#4: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#5: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#6: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#7: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#8: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#9: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#10: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#11: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#12: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#13: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#14: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#15: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#16: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#17: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#18: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#19: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#20: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#21: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#22: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#23: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#24: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#25: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#26: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#27: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#28: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#29: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#30: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#31: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#32: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#33: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#34: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#35: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#36: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#37: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#38: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#39: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#40: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#41: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#42: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#43: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#44: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#45: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#46: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#47: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#48: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#49: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#50: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#51: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#52: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#53: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#54: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#55: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#56: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#57: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#58: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#59: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#60: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#61: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#62: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#63: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#64: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#65: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#66: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#67: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#68: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#69: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#70: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#71: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#72: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#73: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#74: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#75: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#76: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#77: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#78: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#79: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#80: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#81: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#82: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#83: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#84: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#85: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#86: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#87: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#88: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#89: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#90: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#91: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#92: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#93: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#94: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#95: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#96: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#97: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#98: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#99: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#100: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#101: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#102: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#103: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#104: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#105: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#106: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#107: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#108: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#109: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#110: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#111: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#112: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#113: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#114: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#115: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#116: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#117: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#118: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#119: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#120: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#121: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#122: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#123: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#124: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#125: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#126: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#127: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#128: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#129: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#130: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#131: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#132: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#133: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#134: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#135: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#136: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#137: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#138: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#139: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#140: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#141: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#142: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#143: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#144: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#145: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#146: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#147: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#148: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#149: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#150: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#151: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#152: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#153: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#154: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#155: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#156: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#157: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#158: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#159: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#160: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#161: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#162: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#163: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#164: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#165: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#166: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    }\n                ]\n            },\n            \"created_at\": \"2024-12-10T17:02:30.000000Z\",\n            \"long_invoice_preview_link\": null,\n            \"simple_invoice_preview_link\": null,\n            \"simple_invoice_preview_links\": {\n                \"ar\": \"https://ahad.local/storage/3386/com2-v2ee8_INV-0180_Si.pdf\",\n                \"en\": \"https://ahad.local/storage/3387/com2-v2ee8_INV-0180_Si.pdf\"\n            },\n            \"long_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"original_order_ID\": \"demo-35\"\n        },\n        {\n            \"id\": \"3ec68a7c-d3e6-49c1-b1a2-7cf14a0f7cc5\",\n            \"invoice_date\": \"2023-09-02T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"invoice_number\": \"selim ahmed1\",\n            \"is_return\": false,\n            \"is_cashback\": false,\n            \"is_returnable\": false,\n            \"is_sequential\": false,\n            \"status\": 1,\n            \"can_update_return\": true,\n            \"oldest_return_invoice_date\": null,\n            \"has_draft_return_invoice\": false,\n            \"invoice_type\": \"sale\",\n            \"type\": 1,\n            \"description\": {\n                \"ar\": \"arabic description\",\n                \"en\": \"english description\"\n            },\n            \"amount\": 1808000,\n            \"remaining_amount\": 1808000,\n            \"remaining_amount_with_vat\": 1898400,\n            \"discount\": 0,\n            \"amount_before_discount\": 1808000,\n            \"calculated_vat\": 90400,\n            \"can_update\": true,\n            \"can_delete\": false,\n            \"processed\": false,\n            \"client\": {\n                \"name\": \"test1234588\",\n                \"reference_number\": \"8OA83T\",\n                \"id\": 20\n            },\n            \"return_invoices\": [],\n            \"invoice_items_count\": 2,\n            \"errors\": {\n                \"warning\": [\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#1: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    },\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#2: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    }\n                ]\n            },\n            \"created_at\": \"2024-12-18T13:53:20.000000Z\",\n            \"long_invoice_preview_link\": null,\n            \"simple_invoice_preview_link\": null,\n            \"simple_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"long_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"original_order_ID\": null\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=6625\",\n        \"prev\": null,\n        \"next\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=2\"\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 6625,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=5\",\n                \"label\": \"5\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=6\",\n                \"label\": \"6\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=7\",\n                \"label\": \"7\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=8\",\n                \"label\": \"8\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=9\",\n                \"label\": \"9\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=10\",\n                \"label\": \"10\",\n                \"active\": false\n            },\n            {\n                \"url\": null,\n                \"label\": \"...\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=6624\",\n                \"label\": \"6624\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=6625\",\n                \"label\": \"6625\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/sales?per_page=2&page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/43/invoices/sales\",\n        \"per_page\": 2,\n        \"to\": 2,\n        \"total\": 13250\n    }\n}"},{"id":"9be2a7a9-e7d7-4564-8587-430086cfc9f2","name":"unauthenticated","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales"],"variable":[{"key":"company","value":"1"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:27:58 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthenticated.\"\n}"}],"_postman_id":"4bce503a-ea68-416d-b682-828fa5c7c5ac"},{"name":"show","id":"43c52cdb-1bfc-42a2-91aa-f613ec603701","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/invoices/sales/:sale","urlObject":{"path":["public","api","v1",":company","invoices","sales",":sale"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"95232362-959d-497d-a9ba-4323cd520f05","key":"sale"}]}},"response":[{"id":"7da14fcf-f080-41c2-accf-a2609f984b82","name":"show","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales/:sale","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales",":sale"],"variable":[{"key":"company","value":"42"},{"key":"sale","value":"6eff5b72-93f6-4c5c-ab5b-8ea28a254d04"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 May 2024 11:31:21 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"6eff5b72-93f6-4c5c-ab5b-8ea28a254d04\",\n        \"invoice_date\": \"2024-01-02T00:00:00.000000Z\",\n        \"payment_date\": null,\n        \"invoice_number\": \"INV-10\",\n        \"reference_id\": null,\n        \"invoice_reference\": null,\n        \"is_return\": false,\n        \"is_returnable\": false,\n        \"status\": 1,\n        \"oldest_return_invoice_date\": null,\n        \"type\": 1,\n        \"description\": {\n            \"en\": \"english description\",\n            \"ar\": \"arabic description\"\n        },\n        \"amount\": 3000,\n        \"remaining_amount\": 3000,\n        \"remaining_amount_with_vat\": 3450,\n        \"discount\": 500,\n        \"amount_before_discount\": 3500,\n        \"calculated_vat\": 450,\n        \"client\": {\n            \"name\": \"Rubye D'Amore Jr.\",\n            \"reference_number\": \"M6OYQY\",\n            \"id\": 22\n        },\n        \"category\": null,\n        \"invoice_items\": [\n            {\n                \"id\": 8866,\n                \"description\": \"invoice item 1 test description\",\n                \"amount\": 1500,\n                \"remaining_amount\": 1500,\n                \"remaining_amount_with_vat\": 1725,\n                \"discount\": 500,\n                \"amount_before_discount\": 2000,\n                \"total\": 1725,\n                \"calculated_vat\": 225,\n                \"remaining_quantity\": 1,\n                \"remaining_discount\": 500,\n                \"quantity\": 1,\n                \"type\": 1,\n                \"product_price\": 2000,\n                \"tax_value\": 0,\n                \"created_at\": \"2024-04-24T15:03:21.000000Z\",\n                \"category\": {\n                    \"id\": 1,\n                    \"name\": \"Goods\",\n                    \"type\": 1,\n                    \"is_default\": 0,\n                    \"is_mandatory\": false,\n                    \"is_selected\": false,\n                    \"has_warning\": false\n                },\n                \"product\": null,\n                \"vat_rate\": {\n                    \"id\": 1,\n                    \"code\": \"SA_SA_S150\",\n                    \"name\": \"SA_SA_S150\",\n                    \"tax_rate\": \"15.00\",\n                    \"description\": {\n                        \"ar\": \"مبيعات خاضعة لنسبة 15%\",\n                        \"en\": \"Sales subject to 15%\"\n                    },\n                    \"type\": 1,\n                    \"country\": \"sa\",\n                    \"reverse_code\": null\n                },\n                \"can_update\": true,\n                \"errors\": [\n                    {\n                        \"vat_rate_id\": \"The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    }\n                ],\n                \"are_errors_ignored\": true\n            },\n            {\n                \"id\": 8867,\n                \"description\": \"invoice item 2\",\n                \"amount\": 1500,\n                \"remaining_amount\": 1500,\n                \"remaining_amount_with_vat\": 1725,\n                \"discount\": 0,\n                \"amount_before_discount\": 1500,\n                \"total\": 1725,\n                \"calculated_vat\": 225,\n                \"remaining_quantity\": 5,\n                \"remaining_discount\": 0,\n                \"quantity\": 5,\n                \"type\": 1,\n                \"product_price\": 300,\n                \"tax_value\": 0,\n                \"created_at\": \"2024-04-24T15:03:21.000000Z\",\n                \"category\": null,\n                \"product\": null,\n                \"vat_rate\": {\n                    \"id\": 1,\n                    \"code\": \"SA_SA_S150\",\n                    \"name\": \"SA_SA_S150\",\n                    \"tax_rate\": \"15.00\",\n                    \"description\": {\n                        \"ar\": \"مبيعات خاضعة لنسبة 15%\",\n                        \"en\": \"Sales subject to 15%\"\n                    },\n                    \"type\": 1,\n                    \"country\": \"sa\",\n                    \"reverse_code\": null\n                },\n                \"can_update\": true,\n                \"errors\": [],\n                \"are_errors_ignored\": true\n            }\n        ],\n        \"linked_invoice\": null,\n        \"return_invoices\": [],\n        \"created_at\": \"2024-04-24T15:03:21.000000Z\",\n        \"long_invoice_preview_link\": \"https://ahad.local/storage/38/Ahad_INV-10_long_invoice.pdf\",\n        \"simple_invoice_preview_link\": \"https://ahad.local/storage/39/Ahad_INV-10_simple_invoice.pdf\",\n        \"simple_invoice_preview_links\": {\n            \"ar\": \"https://ahad.local/storage/37/Ahad_INV-10_simple_invoice.pdf\",\n            \"en\": \"https://ahad.local/storage/39/Ahad_INV-10_simple_invoice.pdf\"\n        },\n        \"long_invoice_preview_links\": {\n            \"ar\": \"https://ahad.local/storage/36/Ahad_INV-10_long_invoice.pdf\",\n            \"en\": \"https://ahad.local/storage/38/Ahad_INV-10_long_invoice.pdf\"\n        },\n        \"documents\": []\n    }\n}"}],"_postman_id":"43c52cdb-1bfc-42a2-91aa-f613ec603701"},{"name":"Create","event":[{"listen":"test","script":{"id":"a4d6a5ec-c986-42a0-9d19-9c22b26742d7","exec":[""],"type":"text/javascript","packages":{}}}],"id":"2daaf3ce-feb2-4fb5-963d-895887b7364c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"xxxx","type":"text"},{"key":"description[ar]","value":"xxxx","type":"text"},{"key":"invoice_date","value":"2024-07-23T14:19:27.000Z","description":"<p>[required]</p>\n","type":"text"},{"key":"payment_date","value":"2024-07-23T14:19:27.000Z","type":"text"},{"key":"invoice_number","value":"xxxxxx","description":"<p>required if invoice setting is not sequential</p>\n","type":"text"},{"key":"invoice_items[0][description]","value":"xxxxx","type":"text"},{"key":"invoice_items[0][product_price]","value":"0.14782608695652177","description":"<p>required if you don't choose product or if you want to override the product's price you choose</p>\n","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","description":"<p>[required]</p>\n","type":"text"},{"key":"invoice_items[0][product_id]","value":"61c7180c-00bf-49b0-b898-11d4c86fffc9","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"1","description":"<p>[required]</p>\n","type":"text"},{"key":"invoice_items[0][discount]","value":"0","type":"text"},{"key":"third_party_id","value":"20","description":"<p>[required]</p>\n","type":"text"},{"key":"original_order_id","value":"xx","type":"text"},{"key":"recipient_email","value":"xxxxx@xxxx.xx","type":"text"},{"key":"recipient_phone","value":"xxxxxx","type":"text"},{"key":"documents[]","description":"<p> maximum of 2 files.</p>\n","type":"file","value":null},{"key":"essal_reference_number","value":"","description":"<p>A unique encrypted reference linking the invoice created on your system to the corresponding invoice being generated on our platform.</p>\n","type":"text"}]},"url":"{{url}}/public/api/v1/:company/invoices/sales","description":"<p>Kindly note that once you create a new sales invoice, and only if the company invoice settings in Sequential, there should be a webhook automatically created which is going to notify you once the invoice PDFs reports are created successfully, so you don't have to keep checking on it.</p>\n","urlObject":{"path":["public","api","v1",":company","invoices","sales"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"1400ed6b-1713-4e6c-aec9-aa0a55dd5d38","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2024-01-01T22:00:00.000Z","type":"text","description":"[required]"},{"key":"invoice_number","value":"test13","type":"text","description":"[required if invoice setting is not sequential]"},{"key":"third_party_id","value":"1","type":"text","description":"[required]\nid : 2 staging - 32285 prelive - 36645 live"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"2000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][discount]","value":"500","type":"text"},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text"},{"key":"invoice_items[1][amount]","value":"300","type":"text"},{"key":"invoice_items[1][quantity]","value":"5","type":"text"},{"key":"invoice_items[1][product_price]","value":"300","type":"text"},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text"},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"status","value":"1","type":"text"},{"key":"recipient_phone","value":"966532173845","type":"text"},{"key":"recipient_email","value":"nahla@mailinator.com","type":"text"},{"key":"documents[]","type":"file","value":null,"disabled":true},{"key":"original_order_id","value":"test","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales"],"variable":[{"key":"company","value":"1","description":"id: 2 staging - 103 pre live - live 264"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 16:51:41 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"f8f3e218-f299-4b60-935b-d3c9d56ba2c4\",\n        \"company_type\": \"sequential\"\n    }\n}"},{"id":"49b656dd-b485-45b9-a5cd-223ebdf7e0ae","name":"validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"sep0042d5558w1s","type":"text"},{"key":"third_party_id","value":"5243","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"3","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales"],"variable":[{"key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:42:09 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_number\": [\n            \"This Invoice Number already exist!\"\n        ]\n    }\n}"}],"_postman_id":"2daaf3ce-feb2-4fb5-963d-895887b7364c"},{"name":"Create Return","event":[{"listen":"test","script":{"id":"a4d6a5ec-c986-42a0-9d19-9c22b26742d7","exec":[""],"type":"text/javascript","packages":{}}}],"id":"a530ccf4-0214-458a-847e-a38931d153b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text","description":"<p>[required] utc</p>\n"},{"key":"invoice_number","value":"test2","type":"text","description":"<p>required if invoice setting is not sequential</p>\n"},{"key":"reference_id","value":"204e2130-99d0-4945-9669-764f231d6214","description":"<p>required if you want to link it with an original invoice</p>\n","type":"text"},{"key":"third_party_id","value":"22","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text","description":"<p>required if you don't choose product or if you want to override the product's price you choose</p>\n"},{"key":"invoice_items[0][vat_rate_id]","value":"89","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text"},{"key":"invoice_items[0][discount]","value":"200","type":"text"},{"key":"invoice_items[0][reference_id]","value":"200","type":"text","description":"<p>required if you want to link it with an original invoice item</p>\n"},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text"},{"key":"documents[]","type":"file","value":null},{"key":"recipient_phone","value":"966532173845","type":"text"},{"key":"recipient_email","value":"nahlamakhlouf1@gmail.com","type":"text"},{"key":"original_order_id","value":"xxxx","type":"text"},{"key":"invoice_items[0][inventory_id]","value":"8","type":"text"}]},"url":"{{url}}/public/api/v1/:company/invoices/return/sales","urlObject":{"path":["public","api","v1",":company","invoices","return","sales"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"81d7c156-a165-40ad-82aa-29c157c77e1d","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text","description":"[required]"},{"key":"invoice_number","value":"test2","type":"text","description":"[required if invoice setting is not sequential]"},{"key":"third_party_id","value":"1","type":"text","description":"[required] id : 2 staging - 32285 prelive - 36645 live"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"4","type":"text"},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[0][discount]","value":"200","type":"text"},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true},{"key":"recipient_phone","value":"966532173845","type":"text"},{"key":"recipient_email","value":"nahlamakhlouf1@gmail.com","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/return/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","return","sales"],"variable":[{"key":"company","value":"1","description":"id: 2 staging - 103 pre live - live 264"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 16:54:32 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"82779978-9c27-4dd7-9b01-551a01a5244c\",\n        \"company_type\": \"sequential\"\n    }\n}"},{"id":"4e17cca6-c378-48de-bd6a-e02878244772","name":"validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"sep00428sss1","type":"text"},{"key":"third_party_id","value":"1","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"4","type":"text"},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/return/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","return","sales"],"variable":[{"id":"3e9525c6-cc19-46ad-bf5c-7b5430c87d64","key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:44:22 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_number\": [\n            \"This Invoice Number already exist!\"\n        ]\n    }\n}"}],"_postman_id":"a530ccf4-0214-458a-847e-a38931d153b5"}],"id":"516ffee5-61bc-41ba-8ee5-eadc51fdd6bd","_postman_id":"516ffee5-61bc-41ba-8ee5-eadc51fdd6bd","description":""},{"name":"purchases","item":[{"name":"list","id":"8b01d0ef-44ca-45c8-898f-47ee626ee2ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/invoices/purchases","urlObject":{"path":["public","api","v1",":company","invoices","purchases"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"23ba6c79-124d-4edb-b98a-cd3144b03e9f","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/invoices/purchases?per_page=2","host":["{{url}}"],"path":["public","api","v1",":company","invoices","purchases"],"query":[{"key":"per_page","value":"2"}],"variable":[{"key":"company","value":"43"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 24 Dec 2024 11:19:36 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"13750c30-3293-429d-862d-2c02ab6af618\",\n            \"invoice_date\": \"2022-07-30T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"invoice_number\": \"000052\",\n            \"is_return\": true,\n            \"is_cashback\": false,\n            \"is_returnable\": false,\n            \"is_sequential\": false,\n            \"status\": 0,\n            \"can_update_return\": true,\n            \"oldest_return_invoice_date\": null,\n            \"has_draft_return_invoice\": false,\n            \"invoice_type\": \"purchase\",\n            \"type\": 4,\n            \"description\": {\n                \"ar\": \"Return sale 2\",\n                \"en\": \"Return sale 1\"\n            },\n            \"amount\": 3825409,\n            \"remaining_amount\": 0,\n            \"remaining_amount_with_vat\": 0,\n            \"discount\": 201,\n            \"amount_before_discount\": 3825610,\n            \"calculated_vat\": 191620,\n            \"can_update\": true,\n            \"can_delete\": false,\n            \"processed\": false,\n            \"client\": {\n                \"name\": \"test1234588\",\n                \"reference_number\": \"8OA83T\",\n                \"id\": 20\n            },\n            \"return_invoices\": [],\n            \"invoice_items_count\": 22,\n            \"errors\": {\n                \"warning\": [\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#1: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    }\n                ]\n            },\n            \"created_at\": \"2024-11-28T12:48:55.000000Z\",\n            \"long_invoice_preview_link\": null,\n            \"simple_invoice_preview_link\": null,\n            \"simple_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"long_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"original_order_ID\": null\n        },\n        {\n            \"id\": \"384577f7-fce4-4f09-8378-d712907d68a5\",\n            \"invoice_date\": \"2022-06-30T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"invoice_number\": \"05085023sk\",\n            \"is_return\": false,\n            \"is_cashback\": false,\n            \"is_returnable\": false,\n            \"is_sequential\": false,\n            \"status\": 1,\n            \"can_update_return\": true,\n            \"oldest_return_invoice_date\": null,\n            \"has_draft_return_invoice\": false,\n            \"invoice_type\": \"purchase\",\n            \"type\": 2,\n            \"description\": {\n                \"ar\": \"Sale description 2\",\n                \"en\": \"Sale description 2\"\n            },\n            \"amount\": 300000,\n            \"remaining_amount\": 300000,\n            \"remaining_amount_with_vat\": 300000,\n            \"discount\": 0,\n            \"amount_before_discount\": 300000,\n            \"calculated_vat\": 0,\n            \"can_update\": true,\n            \"can_delete\": false,\n            \"processed\": false,\n            \"client\": {\n                \"name\": \"test1234588\",\n                \"reference_number\": \"8OA83T\",\n                \"id\": 20\n            },\n            \"return_invoices\": [],\n            \"invoice_items_count\": 2,\n            \"errors\": {\n                \"warning\": [\n                    {\n                        \"key\": \"vat_rate_id\",\n                        \"text\": \"#1: The chosen code doesn't belong to the selected category\",\n                        \"color\": \"warning\"\n                    }\n                ]\n            },\n            \"created_at\": \"2024-12-09T15:45:50.000000Z\",\n            \"long_invoice_preview_link\": null,\n            \"simple_invoice_preview_link\": null,\n            \"simple_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"long_invoice_preview_links\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"original_order_ID\": null\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=4\",\n        \"prev\": null,\n        \"next\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=2\"\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 4,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/43/invoices/purchases?per_page=2&page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/43/invoices/purchases\",\n        \"per_page\": 2,\n        \"to\": 2,\n        \"total\": 8\n    }\n}"}],"_postman_id":"8b01d0ef-44ca-45c8-898f-47ee626ee2ff"},{"name":"show","id":"8f785668-69d4-40c2-bfe4-3326a551a8fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/invoices/purchases/:purchase","urlObject":{"path":["public","api","v1",":company","invoices","purchases",":purchase"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"},{"type":"any","value":"7ef439f0-392a-483c-9a1d-e4b8bbd6f840","key":"purchase"}]}},"response":[{"id":"616678f5-6631-494e-a61f-ea3ff4b9d899","name":"show","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/invoices/purchases/:purchase","host":["{{url}}"],"path":["public","api","v1",":company","invoices","purchases",":purchase"],"variable":[{"key":"company","value":"1"},{"key":"purchase","value":"5db76ec2-bf5e-4494-896a-9ddf9f14b3a1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 26 Nov 2023 18:55:43 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5db76ec2-bf5e-4494-896a-9ddf9f14b3a1\",\n        \"invoice_date\": \"2023-09-02T00:00:00.000000Z\",\n        \"payment_date\": null,\n        \"invoice_number\": \"test2\",\n        \"reference_id\": null,\n        \"invoice_reference\": null,\n        \"is_return\": false,\n        \"is_returnable\": false,\n        \"status\": 1,\n        \"oldest_return_invoice_date\": null,\n        \"type\": 2,\n        \"description\": {\n            \"en\": \"english description\",\n            \"ar\": \"arabic description\"\n        },\n        \"amount\": 1900,\n        \"remaining_amount\": 1900,\n        \"remaining_amount_with_vat\": 1900,\n        \"discount\": 100,\n        \"amount_before_discount\": 2000,\n        \"calculated_vat\": 0,\n        \"client\": {\n            \"name\": \"شركة 1\",\n            \"reference_number\": \"MA5RFB\",\n            \"id\": 1\n        },\n        \"category\": null,\n        \"invoice_items\": [\n            {\n                \"id\": 90142,\n                \"description\": \"invoice item 1 test description\",\n                \"amount\": 1900,\n                \"remaining_amount\": 1900,\n                \"remaining_amount_with_vat\": 1900,\n                \"discount\": 100,\n                \"amount_before_discount\": 2000,\n                \"total\": 1900,\n                \"calculated_vat\": 0,\n                \"remaining_quantity\": 1,\n                \"quantity\": 1,\n                \"type\": 2,\n                \"product_price\": 2000,\n                \"tax_value\": 300,\n                \"created_at\": \"2023-11-26T18:54:25.000000Z\",\n                \"category\": null,\n                \"product\": null,\n                \"vat_rate\": {\n                    \"id\": 80,\n                    \"code\": \"SA_PU_NA00\",\n                    \"name\": \"-% - Out of Scope Pur.\",\n                    \"tax_rate\": \"0.00\",\n                    \"description\": {\n                        \"ar\": \"مشتريات لا يمكن خصمها\",\n                        \"en\": \"Purchases that cannot be discounted\"\n                    },\n                    \"type\": 2,\n                    \"country\": \"sa\",\n                    \"reverse_code\": null\n                },\n                \"can_update\": true,\n                \"errors\": [],\n                \"are_errors_ignored\": true\n            }\n        ],\n        \"linked_invoice\": null,\n        \"return_invoices\": [],\n        \"created_at\": \"2023-11-26T18:54:25.000000Z\",\n        \"long_invoice_preview_link\": null,\n        \"simple_invoice_preview_link\": null,\n        \"documents\": []\n    }\n}"}],"_postman_id":"8f785668-69d4-40c2-bfe4-3326a551a8fa"},{"name":"Create","event":[{"listen":"test","script":{"id":"a4d6a5ec-c986-42a0-9d19-9c22b26742d7","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"280a2d4f-cf70-4cb9-ba50-a8b10a033073","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-12-22T22:00:00.000Z","type":"text","description":"<p>[required] utc</p>\n"},{"key":"invoice_number","value":"dec002","type":"text","description":"<p>[required]</p>\n"},{"key":"third_party_id","value":"2","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][quantity]","value":"7","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][product_price]","value":"1000","type":"text","description":"<p>required if you don't choose product or if you want to override the product's price you choose</p>\n"},{"key":"invoice_items[0][vat_rate_id]","value":"40","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][discount]","value":"100","type":"text","disabled":true},{"key":"payment_date","value":"2025-11-30T22:00:00.000Z","type":"text"},{"key":"documents[]","type":"file","value":null},{"key":"branch_id","value":"2","type":"text","uuid":"60f94233-9eff-437c-8c4d-bf46dc4744a5"}]},"url":"{{url}}/public/api/v1/:company/invoices/purchases","urlObject":{"path":["public","api","v1",":company","invoices","purchases"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"c6a074a5-6477-4150-9b38-5bcea01d08ef","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"test2","type":"text"},{"key":"third_party_id","value":"12","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"3","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/purchases","host":["{{url}}"],"path":["public","api","v1",":company","invoices","purchases"],"variable":[{"id":"ab9deeb1-634b-46e0-8216-31250b330074","key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:52:58 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"bd62e0c4-f0a7-40c1-939b-c7d4c5e7651e\",\n        \"company_type\": \"sequential\"\n    }\n}"},{"id":"2f517120-c159-440f-a6d0-827c1723b33b","name":"error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"sep00421s","type":"text"},{"key":"third_party_id","value":"12","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"3","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/purchases","host":["{{url}}"],"path":["public","api","v1",":company","invoices","purchases"],"variable":[{"id":"ab9deeb1-634b-46e0-8216-31250b330074","key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:51:20 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_number\": [\n            \"The entered invoice number is already exist for the same vendors\"\n        ]\n    }\n}"}],"_postman_id":"280a2d4f-cf70-4cb9-ba50-a8b10a033073"},{"name":"Create Return","event":[{"listen":"test","script":{"id":"a4d6a5ec-c986-42a0-9d19-9c22b26742d7","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"73518e66-1f19-4415-a6c3-882a243041d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2025-12-22T22:00:00.000Z","type":"text","description":"<p>[required] utc</p>\n"},{"key":"invoice_number","value":"dec001_return","type":"text","description":"<p>[required]</p>\n"},{"key":"reference_id","value":"aa92ec17-929a-4261-aebe-14342ccc5145","description":"<p>required if you want to link it with an original invoice</p>\n","type":"text"},{"key":"third_party_id","value":"2","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][product_price]","value":"1000","type":"text","description":"<p>required if you don't choose product or if you want to override the product's price you choose</p>\n"},{"key":"invoice_items[0][vat_rate_id]","value":"41","type":"text","description":"<p>[required]</p>\n"},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][discount]","value":"100","type":"text","disabled":true},{"key":"invoice_items[0][reference_id]","value":"289510","description":"<p>required if you want to link it with an original invoice item</p>\n","type":"text"},{"key":"payment_date","value":"2025-12-15T22:00:00.000Z","type":"text"},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":"{{url}}/public/api/v1/:company/invoices/return/purchases","urlObject":{"path":["public","api","v1",":company","invoices","return","purchases"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"34861094-8520-4a3b-bd64-1a93f493a04f","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"test1","type":"text"},{"key":"third_party_id","value":"2","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"3","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/return/purchases","host":["{{url}}"],"path":["public","api","v1",":company","invoices","return","purchases"],"variable":[{"id":"ab9deeb1-634b-46e0-8216-31250b330074","key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:54:44 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1166faae-de72-4a37-876a-f2a2486b63e2\",\n        \"company_type\": \"sequential\"\n    }\n}"},{"id":"d0a208d4-c689-4138-8b76-05f64bbd946e","name":"error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"sep004219","type":"text"},{"key":"third_party_id","value":"2","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"3","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/return/purchases","host":["{{url}}"],"path":["public","api","v1",":company","invoices","return","purchases"],"variable":[{"id":"ab9deeb1-634b-46e0-8216-31250b330074","key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:53:19 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_number\": [\n            \"The entered invoice number is already exist for the same vendors\"\n        ]\n    }\n}"}],"_postman_id":"73518e66-1f19-4415-a6c3-882a243041d4"}],"id":"65521461-3252-4995-88b4-1d7ec4c1cb79","_postman_id":"65521461-3252-4995-88b4-1d7ec4c1cb79","description":""}],"id":"4b760012-243e-4e60-bdad-18c3e7eeba3a","description":"<p><strong>-invoice_date</strong> | <strong>Mandatory</strong><br /><strong>-third_party_id</strong> | <strong>Mandatory</strong> | <strong>Choose one of the saved 3rd parties for this entity</strong> |<br /><strong>-invoice_number</strong> | <strong>[Mandatory if invoice setting is not sequential]</strong> | |<br /><strong>-Invoice_items:</strong><br />--product_id | <strong>Optional</strong> | <strong>Choose one of the saved products for this entity</strong></p>\n<p><a href=\"https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#70582652-5d45-4910-a3d4-364de7a5c0d6\"><b>https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#70582652-5d45-4910-a3d4-364de7a5c0d6</b></a> |<br />category_id | <strong>Optional</strong> | <strong>Choose one from our static saved categories</strong></p>\n<p><a href=\"https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#60ab0340-09b9-41e9-86a5-d7874655d425\"><b>https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#60ab0340-09b9-41e9-86a5-d7874655d425</b></a> |<br />product_price | <strong>Mandatory</strong> | <strong>Can be optional in case the user chose one of the saved products. System will add the default product’s price in this case.</strong><br />quantity | required|<br />discount | <strong>Optional</strong> | |<br />vat_rate_id | <strong>Mandatory</strong> | <strong>Choose one from our static saved VAT rates</strong></p>\n<p><a href=\"https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#d7fbc17b-dcbd-4a5e-9ac0-f1efb53dd05b\"><b>https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#d7fbc17b-dcbd-4a5e-9ac0-f1efb53dd05b</b></a> |</p>\n","_postman_id":"4b760012-243e-4e60-bdad-18c3e7eeba3a"},{"name":"Reports","item":[{"name":"VAT","item":[{"name":"View all","id":"617b3a39-042e-487e-817b-89f34e6f2320","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/vat?per_page=26","urlObject":{"path":["public","api","v1",":company","reports","vat"],"host":["{{url}}"],"query":[{"disabled":true,"key":"status","value":"2"},{"key":"per_page","value":"26"}],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"c869a42d-8d4a-47c4-8cb3-06e38b83ceaa","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat?per_page=26","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat"],"query":[{"key":"status","value":"2","type":"text","disabled":true},{"key":"per_page","value":"26"}],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Jan 2024 12:15:26 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"5830361e-0ce7-4802-97a4-a741c8467604\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 2,\n            \"status\": \"مقبول\",\n            \"start_date\": \"2023-07-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-07-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": null,\n            \"report_preview_link\": \"https://ahad.local/storage/446/Ahad_345_2023-07-01_report.pdf\",\n            \"declaration_preview_link\": \"https://ahad.local/storage/447/Ahad_345_2023-07-01_declaration.pdf\",\n            \"vat_package_link\": \"https://ahad.local/storage/444/Ahad_345_2023-07-01_vat_package.xlsx\",\n            \"vat_transactions_log_link\": \"https://ahad.local/storage/445/Ahad_345_2023-07-01_transactions_log.xlsx\",\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": \"2024-01-21T14:31:19.000000Z\",\n            \"total_tax\": 0,\n            \"error_count\": 0\n        },\n        {\n            \"id\": \"6b503dcc-d6ad-4bbb-bbcf-f6f00e35a5f9\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 2,\n            \"status\": \"مسودة\",\n            \"start_date\": \"2023-07-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-07-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/6b503dcc-d6ad-4bbb-bbcf-f6f00e35a5f9/preview?lang=ar\",\n            \"report_preview_link\": null,\n            \"declaration_preview_link\": null,\n            \"vat_package_link\": null,\n            \"vat_transactions_log_link\": null,\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 0\n        },\n        {\n            \"id\": \"d572cc9a-0fe2-4abf-96f3-6b3bd26eed5c\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 2,\n            \"status\": \"مقبول\",\n            \"start_date\": \"2023-05-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-05-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": null,\n            \"report_preview_link\": \"https://ahad.local/storage/440/Ahad_342_2023-05-01_report.pdf\",\n            \"declaration_preview_link\": \"https://ahad.local/storage/441/Ahad_342_2023-05-01_declaration.pdf\",\n            \"vat_package_link\": \"https://ahad.local/storage/438/Ahad_342_2023-05-01_vat_package.xlsx\",\n            \"vat_transactions_log_link\": \"https://ahad.local/storage/439/Ahad_342_2023-05-01_transactions_log.xlsx\",\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": \"2024-01-21T14:19:33.000000Z\",\n            \"total_tax\": 0,\n            \"error_count\": 0\n        },\n        {\n            \"id\": \"bfc117bc-37e4-4686-a763-dd176efb59ba\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 2,\n            \"status\": \"مقبول\",\n            \"start_date\": \"2023-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-01-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": null,\n            \"report_preview_link\": \"https://ahad.local/storage/434/Ahad_340_2023-01-01_report.pdf\",\n            \"declaration_preview_link\": \"https://ahad.local/storage/435/Ahad_340_2023-01-01_declaration.pdf\",\n            \"vat_package_link\": \"https://ahad.local/storage/432/Ahad_340_2023-01-01_vat_package.xlsx\",\n            \"vat_transactions_log_link\": \"https://ahad.local/storage/433/Ahad_340_2023-01-01_transactions_log.xlsx\",\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": \"2024-01-21T14:14:15.000000Z\",\n            \"total_tax\": 0,\n            \"error_count\": 3\n        },\n        {\n            \"id\": \"1b1fd988-76a1-4b32-ac60-0bb67cea8e26\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 2,\n            \"status\": \"مسودة\",\n            \"start_date\": \"2023-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-03-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/1b1fd988-76a1-4b32-ac60-0bb67cea8e26/preview?lang=ar\",\n            \"report_preview_link\": null,\n            \"declaration_preview_link\": null,\n            \"vat_package_link\": null,\n            \"vat_transactions_log_link\": null,\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 3\n        },\n        {\n            \"id\": \"2f5f864b-eedb-43ea-b688-57bd73890c98\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 2,\n            \"status\": \"مسودة\",\n            \"start_date\": \"2023-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-03-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/2f5f864b-eedb-43ea-b688-57bd73890c98/preview?lang=ar\",\n            \"report_preview_link\": null,\n            \"declaration_preview_link\": null,\n            \"vat_package_link\": null,\n            \"vat_transactions_log_link\": null,\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 3\n        },\n        {\n            \"id\": \"96b100ac-b060-46a2-a1ac-00d75b77c84f\",\n            \"name\": {\n                \"en\": \"Test-10000\",\n                \"ar\": \"Test-10000\"\n            },\n            \"report_type\": 3,\n            \"status\": \"مقبول\",\n            \"start_date\": \"2023-04-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-06-30T23:59:59.000000Z\",\n            \"draft_report_preview_link\": null,\n            \"report_preview_link\": \"\",\n            \"declaration_preview_link\": \"\",\n            \"vat_package_link\": \"\",\n            \"vat_transactions_log_link\": \"\",\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 1\n        },\n        {\n            \"id\": \"feef95fd-b4c1-468e-a645-c7ffa95db31e\",\n            \"name\": {\n                \"en\": \"Quarter 1, 2021\",\n                \"ar\": \"الربع الأول, 2021\"\n            },\n            \"report_type\": 3,\n            \"status\": \"مقبول\",\n            \"start_date\": \"2021-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2021-03-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": null,\n            \"report_preview_link\": \"https://ahad.local/storage/105/Ahad_الربع-الأول,-2021-309_2021-01-01_report.pdf\",\n            \"declaration_preview_link\": \"https://ahad.local/storage/106/Ahad_الربع-الأول,-2021-309_2021-01-01_declaration.pdf\",\n            \"vat_package_link\": \"https://ahad.local/storage/103/Ahad_الربع-الأول,-2021-309_2021-01-01_vat_package.xlsx\",\n            \"vat_transactions_log_link\": \"https://ahad.local/storage/104/Ahad_الربع-الأول,-2021-309_2021-01-01_transactions_log.xlsx\",\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": \"2023-07-30T14:03:01.000000Z\",\n            \"total_tax\": 0,\n            \"error_count\": 10\n        },\n        {\n            \"id\": \"925ac1d4-8fed-4562-a182-72d232d7ea5c\",\n            \"name\": {\n                \"en\": \"Test\",\n                \"ar\": \"Test\"\n            },\n            \"report_type\": 3,\n            \"status\": \"ملغي\",\n            \"start_date\": \"2022-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2022-03-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/925ac1d4-8fed-4562-a182-72d232d7ea5c/preview?lang=ar\",\n            \"report_preview_link\": \"\",\n            \"declaration_preview_link\": \"\",\n            \"vat_package_link\": \"\",\n            \"vat_transactions_log_link\": \"\",\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 1\n        },\n        {\n            \"id\": \"9ddaadf8-363a-492d-bfaf-f125ecac65fb\",\n            \"name\": {\n                \"en\": \"Quarter 1, 2022\",\n                \"ar\": \"الربع الأول, 2022\"\n            },\n            \"report_type\": 3,\n            \"status\": \"مسودة\",\n            \"start_date\": \"2022-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2022-03-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/9ddaadf8-363a-492d-bfaf-f125ecac65fb/preview?lang=ar\",\n            \"report_preview_link\": null,\n            \"declaration_preview_link\": null,\n            \"vat_package_link\": null,\n            \"vat_transactions_log_link\": null,\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 1\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/1/reports/vat?per_page=26&page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/1/reports/vat?per_page=26&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; السابق\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/reports/vat?per_page=26&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"التالي &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/1/reports/vat\",\n        \"per_page\": 26,\n        \"to\": 10,\n        \"total\": 10\n    }\n}"}],"_postman_id":"617b3a39-042e-487e-817b-89f34e6f2320"},{"name":"View","id":"bda94042-0622-4ad8-8de9-a92ef0dc088d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/vat/:report","urlObject":{"path":["public","api","v1",":company","reports","vat",":report"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"d572cc9a-0fe2-4abf-96f3-6b3bd26eed5c","key":"report"}]}},"response":[{"id":"d1a4f5bd-165a-449a-909b-be871381d78f","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"d572cc9a-0fe2-4abf-96f3-6b3bd26eed5c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Jan 2024 12:14:13 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"d572cc9a-0fe2-4abf-96f3-6b3bd26eed5c\",\n        \"name\": {\n            \"en\": \"Test\",\n            \"ar\": \"Test\"\n        },\n        \"report_type\": 2,\n        \"status\": \"Approved\",\n        \"start_date\": \"2023-05-01T00:00:00.000000Z\",\n        \"end_date\": \"2023-05-31T23:59:59.000000Z\",\n        \"draft_report_preview_link\": null,\n        \"report_preview_link\": \"https://ahad.local/storage/442/Ahad_342_2023-05-01_report.pdf\",\n        \"declaration_preview_link\": \"https://ahad.local/storage/443/Ahad_342_2023-05-01_declaration.pdf\",\n        \"vat_package_link\": \"https://ahad.local/storage/438/Ahad_342_2023-05-01_vat_package.xlsx\",\n        \"vat_transactions_log_link\": \"https://ahad.local/storage/439/Ahad_342_2023-05-01_transactions_log.xlsx\",\n        \"notes\": null,\n        \"data\": {\n            \"period_calculations\": {\n                \"less_than_5000\": 0,\n                \"additional_vat\": 0\n            }\n        },\n        \"created_at\": \"2024-01-21T14:18:46.000000Z\",\n        \"approved_at\": \"2024-01-21T14:19:33.000000Z\",\n        \"total_tax\": 0,\n        \"error_count\": 0\n    }\n}"}],"_postman_id":"bda94042-0622-4ad8-8de9-a92ef0dc088d"},{"name":"approve","id":"17f59246-4b30-4f9d-a715-f180be452599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/vat/:report/approve","description":"<p>Kindly note that once you approve the vat report, there should be a webhook automatically created which is going to notify you once the report files are created successfully, so you don't have to keep checking on it.</p>\n","urlObject":{"path":["public","api","v1",":company","reports","vat",":report","approve"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"5830361e-0ce7-4802-97a4-a741c8467604","key":"report"}]}},"response":[{"id":"6dcc316e-a78b-4837-87a3-cc66bab8f3e0","name":"approve","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/approve","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","approve"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 21 Jan 2024 14:31:20 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5830361e-0ce7-4802-97a4-a741c8467604\",\n        \"name\": {\n            \"en\": \"Test\",\n            \"ar\": \"Test\"\n        }\n    }\n}"}],"_postman_id":"17f59246-4b30-4f9d-a715-f180be452599"},{"name":"cancel","id":"29c9d1d7-83aa-42d8-822b-f950d8928da8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","description":"<p>in order to cancel an approved report, it should be generated a month ago at maximum, If an approved report is generated for more than 30 days, then cancellation will not be feasible anymore</p>\n","urlObject":{"path":["public","api","v1",":company","reports","vat",":report","cancel"],"host":["{{url}}"],"query":[],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","type":"any","value":"1","key":"company"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"5830361e-0ce7-4802-97a4-a741c8467604","key":"report"}]}},"response":[{"id":"e0918c42-240b-4ae7-8223-5fb2fbd38b0f","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","cancel"],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","key":"company","value":"1"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604","description":"report uuid"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You cannot cancel an approved report that has exceeded 30 days since its approval date\"\n}"}],"_postman_id":"29c9d1d7-83aa-42d8-822b-f950d8928da8"},{"name":"exclude invoices","id":"c3a886dc-2ee5-46d3-9240-f11e312dbc9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"68395841-42d9-4283-acc5-eb1aca3e1182"}]},"url":"{{url}}/public/api/v1/:company/reports/vat/:report/exclude-invoices","urlObject":{"path":["public","api","v1",":company","reports","vat",":report","exclude-invoices"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","key":"report"}]}},"response":[{"id":"116afeb7-e6de-42bc-8b99-22577b5af03b","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","cancel"],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","key":"company","value":"1"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604","description":"report uuid"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You cannot cancel an approved report that has exceeded 30 days since its approval date\"\n}"},{"id":"8f114b2d-6913-4f1f-ad84-76d01d85876d","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"68395841-42d9-4283-acc5-eb1aca3e1182"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/exclude-invoices","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","exclude-invoices"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","description":"report uuid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 29 May 2025 10:55:12 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"UPDATED\"\n}"}],"_postman_id":"c3a886dc-2ee5-46d3-9240-f11e312dbc9a"},{"name":"ignore invoice errors","id":"80066b1a-85ff-4466-9da9-cae18d638721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"e4d1de5a-97a3-421b-bd2e-049dea02ef9d"}]},"url":"{{url}}/public/api/v1/:company/reports/vat/:report/ignore-invoices-errors","urlObject":{"path":["public","api","v1",":company","reports","vat",":report","ignore-invoices-errors"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","key":"report"}]}},"response":[{"id":"d00de829-d5e2-4ccd-be48-c86d9c3f79f5","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","cancel"],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","key":"company","value":"1"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604","description":"report uuid"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You cannot cancel an approved report that has exceeded 30 days since its approval date\"\n}"},{"id":"b52f275d-44a0-4dce-b035-d4591db527f5","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"68395841-42d9-4283-acc5-eb1aca3e1182"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/exclude-invoices","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","exclude-invoices"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","description":"report uuid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 29 May 2025 10:55:12 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"UPDATED\"\n}"}],"_postman_id":"80066b1a-85ff-4466-9da9-cae18d638721"},{"name":"Create","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"a2b3591c-4daf-4df7-9132-b7f2d643a0f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"Test","type":"text","description":"<p>If left empty, report name will be the same as report period</p>\n"},{"key":"name[en]","value":"Test","type":"text","description":"<p>If left empty, report name will be the same as report period</p>\n"},{"key":"monthly_period","value":"8","type":"text","description":"<p>[required] The month for which you need to create the tax report</p>\n"},{"key":"yearly_period","value":"2023","type":"text","description":"<p>[required] The year for which you need to creed the tax report</p>\n"},{"key":"transactions[]","value":"January, 2023","type":"text"},{"key":"transactions[]","value":"May, 2023","type":"text"},{"key":"exclude[]","value":"invoice uuid ","type":"text"}]},"url":"{{url}}/public/api/v1/:company/reports/vat","urlObject":{"path":["public","api","v1",":company","reports","vat"],"host":["{{url}}"],"query":[],"variable":[{"id":"e103eede-4fd5-4261-864f-65c61004e8ad","type":"any","value":"1","key":"company"}]}},"response":[{"id":"44d8e4c3-3b66-4756-84df-8b1b3a2742f0","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"Test","type":"text"},{"key":"name[en]","value":"Test","type":"text"},{"key":"monthly_period","value":"7","type":"text","description":"[required]"},{"key":"yearly_period","value":"2023","type":"text","description":"[required]"},{"key":"transactions[]","value":"Quarter 3, 2023","type":"text","disabled":true},{"key":"transactions[]","value":"January, 2023","type":"text","description":"[required]"},{"key":"exclude[]","value":"uuid","type":"text","disabled":true},{"key":"exclude[]","value":"uuid","type":"text","disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat"],"variable":[{"id":"e103eede-4fd5-4261-864f-65c61004e8ad","key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 21 Jan 2024 14:29:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5830361e-0ce7-4802-97a4-a741c8467604\",\n        \"name\": {\n            \"en\": \"Test\",\n            \"ar\": \"Test\"\n        },\n        \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/5830361e-0ce7-4802-97a4-a741c8467604/preview?lang=en\"\n    }\n}"}],"_postman_id":"a2b3591c-4daf-4df7-9132-b7f2d643a0f8"},{"name":"Update","id":"2953abba-f3ca-4f27-bf3a-d5d167fc6daa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"name[en]","value":"test1","type":"text","uuid":"6688cdd7-7f65-44da-8421-42bdc8c8910b"},{"key":"name[ar]","value":"test1","type":"text","uuid":"6954ed01-1bba-4dbb-9f89-6afd0b37fbd2"},{"key":"vat_correction","value":"200","description":"<p>-15000 : 15000</p>\n","type":"text"},{"key":"additional_vat","value":"100","type":"text"},{"key":"description","value":"test test","type":"text"},{"key":"notes","value":"sssssss","type":"text"}]},"url":"{{url}}/public/api/v1/:company/reports/vat/:report","urlObject":{"path":["public","api","v1",":company","reports","vat",":report"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"2356dd10-04ef-433e-953a-8f6fc35a7019","key":"report"}]}},"response":[{"id":"93cbf714-884a-4fd5-9623-aab719319725","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"vat_correction","value":"200","description":"-5000 : 5000","type":"text"},{"key":"additional_vat","value":"100","type":"text"},{"key":"description","value":"test test","type":"text"},{"key":"notes","value":"sssssss","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:28 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You are unable to update an approved report.\"\n}"}],"_postman_id":"2953abba-f3ca-4f27-bf3a-d5d167fc6daa"},{"name":"Delete report","id":"42944dd0-d062-499b-a5ea-e84f58c46dc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/reports/vat/:report","urlObject":{"path":["public","api","v1",":company","reports","vat",":report"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"1c6daa67-8316-4e36-a84e-3d8eeaa1f01b","key":"report"}]}},"response":[{"id":"4f48f8b2-e8e2-45bf-9fd9-616e7f1f72d0","name":"success","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"1c6daa67-8316-4e36-a84e-3d8eeaa1f01b"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.30"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 01 Sep 2025 04:27:12 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"DELETED\"\n}"}],"_postman_id":"42944dd0-d062-499b-a5ea-e84f58c46dc2"}],"id":"3d41f1ee-cbf7-46ec-8b11-c1adbfd5067c","_postman_id":"3d41f1ee-cbf7-46ec-8b11-c1adbfd5067c","description":""},{"name":"With holding","item":[{"name":"Create new report","item":[{"name":"01- Get period invoices","id":"4abfa702-ac53-4a87-b783-7cc2d94cd810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/reports/withholding/invoice_items?invoice_dates[]=November, 2023&page=1","description":"<p>Fetch the invoices for the specified period(s). The <code>invoice_dates</code> parameter represents the reporting phase you want to generate the report for.</p>\n<p>Save the <code>invoice_id</code> and <code>invoice_item_id</code> for use in the following steps.</p>\n","urlObject":{"path":["public","api","v1",":company","reports","withholding","invoice_items"],"host":["{{url}}"],"query":[{"key":"invoice_dates[]","value":"November, 2023"},{"key":"page","value":"1"},{"disabled":true,"key":"per_page","value":"25"}],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"89a601a9-dcb2-4afc-93bb-081ae423bc23","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/invoice_items?invoice_dates[]=November, 2023&page=1","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding","invoice_items"],"query":[{"key":"invoice_dates[]","value":"November, 2023"},{"key":"page","value":"1"},{"key":"per_page","value":"25","disabled":true}],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 26 Dec 2024 07:46:02 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"current_page\": 1,\n    \"data\": [\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"6d3e5f2b-d31a-41d4-b12c-e287264f5abe\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"33ceaa63-431b-423c-91b9-d38755138480\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"d35567a7-6346-40d1-a8fa-3d3c0b9fd4f1\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"6b97e0c1-f62a-4cb2-8e5d-0188e5e2f665\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"5b4f78ab-cc4d-44e1-8d28-2894e58d3ddc\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"921f43de-19be-46bb-a2fc-7e4cb5d4c3fc\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"503d4e69-a8dc-48a7-8516-12143ff132f6\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"67a2ac13-0450-4926-8527-0ca16fedb10c\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"3ff3fba1-19d7-4a65-93a4-7632077eec55\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"d5606889-1a4d-4f94-aff3-b69366121261\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"002df383-e0be-4d4b-b047-ac2de5b7ef8d\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"7ba0717e-ff2e-4322-8ea4-085cac4e39bf\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"ade5bd0f-3aa0-470c-b4cd-3506796e7b02\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a\",\n            \"invoice_item_id\": \"66efc472-4f07-4836-9dc6-4693cfa0ea03\",\n            \"invoice_number\": \"INV1330683527_892414430\",\n            \"invoice_date\": \"2023-11-12T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        },\n        {\n            \"invoice_id\": \"6dd2827e-9a3a-4ab9-aa53-399c12941ebe\",\n            \"invoice_item_id\": \"46f72313-22c8-4239-b2e3-2e56b345c37d\",\n            \"invoice_number\": \"INV454457184_1466042274\",\n            \"invoice_date\": \"2023-11-04T00:00:00.000000Z\",\n            \"payment_date\": null,\n            \"withholding_vat_rate\": null\n        }\n    ],\n    \"first_page_url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=1\",\n    \"from\": 1,\n    \"last_page\": 8,\n    \"last_page_url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=8\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"&laquo; Previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=2\",\n            \"label\": \"2\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=3\",\n            \"label\": \"3\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=4\",\n            \"label\": \"4\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=5\",\n            \"label\": \"5\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=6\",\n            \"label\": \"6\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=7\",\n            \"label\": \"7\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=8\",\n            \"label\": \"8\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=2\",\n            \"label\": \"Next &raquo;\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items?invoice_dates%5B0%5D=November%2C%202023&page=2\",\n    \"path\": \"https://ahad.test/public/api/v1/1/reports/withholding/invoice_items\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": 15,\n    \"total\": 114\n}"}],"_postman_id":"4abfa702-ac53-4a87-b783-7cc2d94cd810"},{"name":"02- Update the payment date in period invoices","id":"d3be0d24-9901-4e77-815d-3a04137fc8f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"invoices[0][uuid]","value":"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a","type":"text","description":"<p><code>invoice_id</code> from step 01.</p>\n"},{"key":"invoices[0][payment_date]","value":"2023-12-10","type":"text","description":"<p>Date must be before <code>invoice_date</code> from step 01.</p>\n"}]},"url":"{{url}}/public/api/v1/:company/reports/withholding/payment_date","description":"<p>Use the <code>invoice_id</code> obtained from <a href=\"https://go.postman.co/workspace/Ahad-Team-Workspace~a74b77fc-5437-455a-8feb-0dbf9bf4a557/documentation/25693439-fe7a9a96-f278-423f-a305-89313c923240?entity=request-4abfa702-ac53-4a87-b783-7cc2d94cd810\">Step 1</a>.</p>\n<p>Add the payment date (<code>payment_date</code>) for each invoice.</p>\n<p>You can use <code>invoice_date</code> from Step 1 to ensure that all payment dates are correct.</p>\n","urlObject":{"path":["public","api","v1",":company","reports","withholding","payment_date"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"9e228c69-cee4-404c-9564-c78a4a00be66","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"invoices[0][uuid]","value":"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a","type":"text"},{"key":"invoices[0][payment_date]","value":"2019-02-10","type":"text"},{"key":"invoices[1][uuid]","value":"50ab9906-be1e-4a71c-b9c5-c9adf8ecbc1a","type":"text"},{"key":"invoices[1][payment_date]","value":"2019-02-10","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/payment_date","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding","payment_date"],"variable":[{"key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 26 Dec 2024 09:08:43 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoices.1.uuid\": [\n            \"The selected uuid is invalid.\"\n        ],\n        \"invoices.0.payment_date\": [\n            \"payment date can’t be before the invoice date\"\n        ]\n    }\n}"},{"id":"1e1a8716-312a-4a1d-807a-44fdfc9db6f5","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"invoices[0][uuid]","value":"50ab9906-be1e-4a7c-b9c5-c9adf8ecbc1a","type":"text","description":"`invoice_id` from step 01."},{"key":"invoices[0][payment_date]","value":"2023-12-10","type":"text","description":"Date must be before `invoice_date` from step 01."}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/payment_date","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding","payment_date"],"variable":[{"key":"company","value":"1"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 26 Dec 2024 09:18:33 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d3be0d24-9901-4e77-815d-3a04137fc8f5"},{"name":"03- Update withholding vat rate in period invoices","id":"bcb47475-04a3-4ce8-b46d-cf1dddd0c61b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"invoice_items[0][uuid]","value":"6d3e5f2b-d31a-41d4-b12c-e287264f5abe","description":"<p><code>invoice_item_id</code> from step 01.</p>\n","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"83","description":"<p><code>withholding</code> vat rate only.</p>\n","type":"text"}]},"url":"{{url}}/public/api/v1/:company/reports/withholding/vat_rate","description":"<p>Use the <code>invoice_item_id</code> obtained from <a href=\"https://go.postman.co/workspace/Ahad-Team-Workspace~a74b77fc-5437-455a-8feb-0dbf9bf4a557/documentation/25693439-fe7a9a96-f278-423f-a305-89313c923240?entity=request-4abfa702-ac53-4a87-b783-7cc2d94cd810\">Step 1</a>.<br />Assign the WithHolding VAT rate (<code>vat_rate_id</code>) for each invoice item</p>\n","urlObject":{"path":["public","api","v1",":company","reports","withholding","vat_rate"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"82011fa2-54c0-4d84-bc39-8b2596613c60","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"invoice_items[0][uuid]","value":"6d3e5f2b-d31a-41d4-b12c-e287264f5abe","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"1","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/vat_rate","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding","vat_rate"],"variable":[{"key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 26 Dec 2024 09:28:43 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_items.0.vat_rate_id\": [\n            \"The selected invoice_items.0.vat_rate_id is invalid.\"\n        ]\n    }\n}"},{"id":"e18fb1d1-ee99-4bc5-987b-a1660bee2e02","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"invoice_items[0][uuid]","value":"6d3e5f2b-d31a-41d4-b12c-e287264f5abe","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"83","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/vat_rate","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding","vat_rate"],"variable":[{"key":"company","value":"1"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 26 Dec 2024 09:29:06 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bcb47475-04a3-4ce8-b46d-cf1dddd0c61b"},{"name":"04- Create","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"4ed0bd7e-9713-4c63-b6a3-340435585124","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"Test","type":"text","description":"<p>If left empty, report name will be the same as report period</p>\n"},{"key":"name[en]","value":"Test","type":"text","description":"<p>If left empty, report name will be the same as report period</p>\n"},{"key":"monthly_period","value":"9","type":"text","description":"<p>[required] The month for which you need to create the tax report</p>\n"},{"key":"yearly_period","value":"2023","type":"text","description":"<p>[required] The year for which you need to creed the tax report</p>\n"},{"key":"transactions[]","value":"January, 2023","type":"text","disabled":true},{"key":"transactions[]","value":"May, 2023","type":"text","disabled":true},{"key":"exclude[]","value":"invoice uuid ","type":"text","disabled":true}]},"url":"{{url}}/public/api/v1/:company/reports/withholding","description":"<p>Once all previous steps are complete, create the withholding report for the specified <code>monthly_period</code>/ <code>yearly_period</code> using the prepared data.</p>\n","urlObject":{"path":["public","api","v1",":company","reports","withholding"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"0f5dbe64-df2d-472c-bfb4-7c89fca6f209","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"Test","type":"text"},{"key":"name[en]","value":"Test","type":"text"},{"key":"monthly_period","value":"7","type":"text","description":"[required]"},{"key":"yearly_period","value":"2023","type":"text","description":"[required]"},{"key":"transactions[]","value":"Quarter 3, 2023","type":"text","disabled":true},{"key":"transactions[]","value":"January, 2023","type":"text","description":"[required]"},{"key":"exclude[]","value":"uuid","type":"text","disabled":true},{"key":"exclude[]","value":"uuid","type":"text","disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding"],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 21 Jan 2024 14:29:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5830361e-0ce7-4802-97a4-a741c8467604\",\n        \"name\": {\n            \"en\": \"Test\",\n            \"ar\": \"Test\"\n        },\n        \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/5830361e-0ce7-4802-97a4-a741c8467604/preview?lang=en\"\n    }\n}"}],"_postman_id":"4ed0bd7e-9713-4c63-b6a3-340435585124"}],"id":"789af808-4d19-49fa-9927-417811f9c4ee","description":"<p>To successfully create a withholding report, you need to follow the steps in order. Each step prepares the necessary data for the next step. Here's the process:</p>\n<p><strong>Important:</strong><br />Ensure each step is executed in the exact order; skipping or performing steps out of sequence may result in an invalid report.</p>\n","_postman_id":"789af808-4d19-49fa-9927-417811f9c4ee"},{"name":"View all","id":"a805ca32-5f02-492c-acad-0efc13231e1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/withholding?per_page=1","urlObject":{"path":["public","api","v1",":company","reports","withholding"],"host":["{{url}}"],"query":[{"disabled":true,"key":"status","value":"2"},{"key":"per_page","value":"1"}],"variable":[{"id":"8f4edeb5-6d6f-470e-8747-9cee52c5a5e6","type":"any","value":"1","key":"company"}]}},"response":[{"id":"0a808738-ff98-4f41-9415-3b4d267663d7","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding?per_page=1","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding"],"query":[{"key":"status","value":"2","type":"text","disabled":true},{"key":"per_page","value":"1"}],"variable":[{"id":"8f4edeb5-6d6f-470e-8747-9cee52c5a5e6","key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Jan 2024 12:16:11 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"fea5422f-bb2c-4756-9a30-2562db4b3366\",\n            \"name\": {\n                \"en\": \"January, 2023\",\n                \"ar\": \"يناير, 2023\"\n            },\n            \"report_type\": 2,\n            \"status\": \"Draft\",\n            \"start_date\": \"2023-01-01T00:00:00.000000Z\",\n            \"end_date\": \"2023-01-31T23:59:59.000000Z\",\n            \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/fea5422f-bb2c-4756-9a30-2562db4b3366/preview?lang=en\",\n            \"report_preview_link\": null,\n            \"declaration_preview_link\": null,\n            \"vat_package_link\": null,\n            \"vat_transactions_log_link\": null,\n            \"notes\": null,\n            \"data\": {\n                \"period_calculations\": {\n                    \"less_than_5000\": 0,\n                    \"additional_vat\": 0\n                }\n            },\n            \"created_at\": null,\n            \"approved_at\": null,\n            \"total_tax\": 0,\n            \"error_count\": 2\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=4\",\n        \"prev\": null,\n        \"next\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=2\"\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 4,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/1/reports/withholding?per_page=1&page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/1/reports/withholding\",\n        \"per_page\": 1,\n        \"to\": 1,\n        \"total\": 4\n    }\n}"}],"_postman_id":"a805ca32-5f02-492c-acad-0efc13231e1e"},{"name":"View","id":"184d71a4-de05-422d-b06d-6190c1c24662","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/withholding/:report","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"fea5422f-bb2c-4756-9a30-2562db4b3366","key":"report"}]}},"response":[{"id":"e941e2bc-8073-4ac5-af9e-651e772639a3","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/:report","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding",":report"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"fea5422f-bb2c-4756-9a30-2562db4b3366"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Jan 2024 12:20:47 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"fea5422f-bb2c-4756-9a30-2562db4b3366\",\n        \"name\": {\n            \"en\": \"January, 2023\",\n            \"ar\": \"يناير, 2023\"\n        },\n        \"report_type\": 2,\n        \"status\": \"Draft\",\n        \"start_date\": \"2023-01-01T00:00:00.000000Z\",\n        \"end_date\": \"2023-01-31T23:59:59.000000Z\",\n        \"draft_report_preview_link\": \"https://ahad.local/api/v2/reports/fea5422f-bb2c-4756-9a30-2562db4b3366/preview?lang=en\",\n        \"report_preview_link\": null,\n        \"declaration_preview_link\": null,\n        \"vat_package_link\": null,\n        \"vat_transactions_log_link\": null,\n        \"notes\": null,\n        \"data\": {\n            \"period_calculations\": {\n                \"less_than_5000\": 0,\n                \"additional_vat\": 0\n            }\n        },\n        \"created_at\": \"2023-07-17T16:05:43.000000Z\",\n        \"approved_at\": null,\n        \"total_tax\": 0,\n        \"error_count\": 2\n    }\n}"}],"_postman_id":"184d71a4-de05-422d-b06d-6190c1c24662"},{"name":"Update","id":"0b6441c3-4d9a-418c-a1c7-70861d2c8417","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"name[en]","value":"test","type":"text","uuid":"77363544-ea78-4929-b2dd-15dc69ec9135"},{"key":"name[ar]","value":"test","type":"text","uuid":"39988f64-5e8f-4a3e-a199-00326be3ceab"},{"key":"vat_correction","value":"200","description":"<p>-15000 : 15000</p>\n","type":"text"},{"key":"additional_vat","value":"100","type":"text"},{"key":"description","value":"test test","type":"text"},{"key":"notes","value":"sssssss","type":"text"}]},"url":"{{url}}/public/api/v1/:company/reports/withholding/:report","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"2356dd10-04ef-433e-953a-8f6fc35a7019","key":"report"}]}},"response":[{"id":"444fa697-39f1-42b2-874b-3268f9688ebe","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"en","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"_method","value":"put","type":"text"},{"key":"vat_correction","value":"200","description":"-5000 : 5000","type":"text"},{"key":"additional_vat","value":"100","type":"text"},{"key":"description","value":"test test","type":"text"},{"key":"notes","value":"sssssss","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:28 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You are unable to update an approved report.\"\n}"}],"_postman_id":"0b6441c3-4d9a-418c-a1c7-70861d2c8417"},{"name":"Approve","id":"43ede499-e932-4acc-b297-b7c9c9ec4a02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/withholding/:report/approve","description":"<p>Kindly note that once you approve the vat report, there should be a webhook automatically created which is going to notify you once the report files are created successfully, so you don't have to keep checking on it.</p>\n","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report","approve"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"5830361e-0ce7-4802-97a4-a741c8467604","key":"report"}]}},"response":[{"id":"a5673741-8b50-4c60-8c8f-1222a5425d4c","name":"approve","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/approve","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","approve"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 21 Jan 2024 14:31:20 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5830361e-0ce7-4802-97a4-a741c8467604\",\n        \"name\": {\n            \"en\": \"Test\",\n            \"ar\": \"Test\"\n        }\n    }\n}"}],"_postman_id":"43ede499-e932-4acc-b297-b7c9c9ec4a02"},{"name":"Cancel","id":"4ad9c6f9-42e3-4f7e-97cf-d5f8f03dad40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/withholding/:report/cancel","description":"<p>in order to cancel an approved report, it should be generated a month ago at maximum, If an approved report is generated for more than 30 days, then cancellation will not be feasible anymore</p>\n","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report","cancel"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"5830361e-0ce7-4802-97a4-a741c8467604","key":"report"}]}},"response":[{"id":"28216317-0d3b-441c-bb9c-2b820252d793","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","cancel"],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","key":"company","value":"1"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604","description":"report uuid"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You cannot cancel an approved report that has exceeded 30 days since its approval date\"\n}"}],"_postman_id":"4ad9c6f9-42e3-4f7e-97cf-d5f8f03dad40"},{"name":"exclude invoices","id":"1a78f112-f89b-4208-919d-4fba72b0813f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"68395841-42d9-4283-acc5-eb1aca3e1182"}]},"url":"{{url}}/public/api/v1/:company/reports/withholding/:report/exclude-invoices","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report","exclude-invoices"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","key":"report"}]}},"response":[{"id":"9b3ac708-2808-4d8e-9d64-4d16542f07ce","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","cancel"],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","key":"company","value":"1"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604","description":"report uuid"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You cannot cancel an approved report that has exceeded 30 days since its approval date\"\n}"},{"id":"5e1f60c2-155d-458a-9751-39aa0c6a0085","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"68395841-42d9-4283-acc5-eb1aca3e1182"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/exclude-invoices","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","exclude-invoices"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","description":"report uuid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 29 May 2025 10:55:12 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"UPDATED\"\n}"}],"_postman_id":"1a78f112-f89b-4208-919d-4fba72b0813f"},{"name":"ignore invoice errors","id":"f2323961-3f3d-4978-9704-dc457ec0e600","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"e4d1de5a-97a3-421b-bd2e-049dea02ef9d"}]},"url":"{{url}}/public/api/v1/:company/reports/withholding/:report/ignore-invoices-errors","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report","ignore-invoices-errors"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"description":{"content":"<p>report uuid</p>\n","type":"text/plain"},"type":"any","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","key":"report"}]}},"response":[{"id":"6443cbf6-eddb-4285-8308-74e11a032f99","name":"fail","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/cancel","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","cancel"],"variable":[{"id":"266db106-e8d8-496e-bacc-b717dfa6eca8","key":"company","value":"1"},{"id":"526f41d4-078a-4155-bb20-9e025d2ef30f","key":"report","value":"5830361e-0ce7-4802-97a4-a741c8467604","description":"report uuid"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 12:22:35 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You cannot cancel an approved report that has exceeded 30 days since its approval date\"\n}"},{"id":"508faeed-ca5b-4bdb-8b64-05ce5f093857","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invoices[]","value":"1","type":"text","uuid":"68395841-42d9-4283-acc5-eb1aca3e1182"}]},"url":{"raw":"{{url}}/public/api/v1/:company/reports/vat/:report/exclude-invoices","host":["{{url}}"],"path":["public","api","v1",":company","reports","vat",":report","exclude-invoices"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"de86f52f-ae36-465c-bdd0-f9030d8bd859","description":"report uuid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 29 May 2025 10:55:12 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"UPDATED\"\n}"}],"_postman_id":"f2323961-3f3d-4978-9704-dc457ec0e600"},{"name":"Delete report","id":"93f1989c-dc55-4501-a848-25fc3b3dac20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/reports/withholding/:report","urlObject":{"path":["public","api","v1",":company","reports","withholding",":report"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"1c6daa67-8316-4e36-a84e-3d8eeaa1f01b","key":"report"}]}},"response":[{"id":"9d0dbf06-b9d2-4997-a2a1-ca7845212738","name":"success","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/reports/withholding/:report","host":["{{url}}"],"path":["public","api","v1",":company","reports","withholding",":report"],"variable":[{"key":"company","value":"1"},{"key":"report","value":"1c6daa67-8316-4e36-a84e-3d8eeaa1f01b"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.30"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 01 Sep 2025 04:31:11 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"DELETED\"\n}"}],"_postman_id":"93f1989c-dc55-4501-a848-25fc3b3dac20"}],"id":"9ba3a5d5-1237-4534-9ed2-06e02edf9b4a","_postman_id":"9ba3a5d5-1237-4534-9ed2-06e02edf9b4a","description":""},{"name":"Show report items","id":"eebd7a15-9a35-47f7-85e1-b9a34aac13c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/reports/:report/items","urlObject":{"path":["public","api","v1",":company","reports",":report","items"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"","key":"company"},{"type":"any","value":"","key":"report"}]}},"response":[{"id":"6a7c64f0-7745-48f3-be53-44e62406cc3e","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://api.ahadtest.com/public/api/v1/15/reports/7f7bd72d-6178-4ff6-9481-b20b969ee90a/items"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.27.0"},{"key":"Date","value":"Mon, 01 Sep 2025 04:36:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Strict-Transport-Security","value":"max-age=31536000"}],"cookie":[],"responseTime":null,"body":"{\n    \"sale\": [\n        {\n            \"description\": {\n                \"ar\": \"خارج نطاق الضريبة\",\n                \"en\": \"Out of the range\"\n            },\n            \"code_type\": \"0\",\n            \"code\": \"TTZ0000\",\n            \"abbreviation\": \"SA_SA_TTZ0000\",\n            \"tax_rate\": 0,\n            \"client_name\": \"Fatimah hussien\",\n            \"client_country\": null,\n            \"client_address\": null,\n            \"third_party_reference_number\": \"TBPAFI\",\n            \"third_party_tax_number\": null,\n            \"third_party_name\": \"Fatimah hussien\",\n            \"third_party_registration_number\": null,\n            \"category_name\": {\n                \"en\": \"Goods\",\n                \"ar\": \"بضائع\"\n            },\n            \"invoice_number\": \"tt-86\",\n            \"is_return\": 0,\n            \"invoice_description\": {\n                \"en\": \"\"\n            },\n            \"invoice_type\": \"sale\",\n            \"payment_date\": \"2025-01-13T00:00:00.000000Z\",\n            \"invoice_date\": \"2025-01-13T00:00:00.000000Z\",\n            \"amount\": 1388,\n            \"vat_calculations\": 0,\n            \"calculated_vat\": 0,\n            \"errors_count\": 0,\n            \"has_errors\": false\n        },\n        {\n            \"description\": {\n                \"ar\": \"مبيعات خاضعة للنسبة الأساسية 15%\",\n                \"en\": \"Sales subject to the basic ratio 15%\"\n            },\n            \"code_type\": \"1\",\n            \"code\": \"TSC0150\",\n            \"abbreviation\": \"SA_SA_TSC0150\",\n            \"tax_rate\": 15,\n            \"client_name\": \"test \",\n            \"client_country\": null,\n            \"client_address\": {\n                \"en\": null\n            },\n            \"third_party_reference_number\": \"39LPLM\",\n            \"third_party_tax_number\": null,\n            \"third_party_name\": \"test \",\n            \"third_party_registration_number\": null,\n            \"category_name\": {\n                \"en\": \"Services\",\n                \"ar\": \"خدمات\"\n            },\n            \"invoice_number\": \"tt-79\",\n            \"is_return\": 0,\n            \"invoice_description\": {\n                \"en\": \"\"\n            },\n            \"invoice_type\": \"sale\",\n            \"payment_date\": null,\n            \"invoice_date\": \"2025-01-04T00:00:00.000000Z\",\n            \"amount\": 108090,\n            \"vat_calculations\": 0,\n            \"calculated_vat\": 16213.499999994,\n            \"errors_count\": 11,\n            \"has_errors\": true\n        },\n        {\n            \"description\": {\n                \"ar\": \"مبيعات خاضعة للنسبة الأساسية 5%\",\n                \"en\": \"Sales subject to the basic ratio 5%\"\n            },\n            \"code_type\": \"1.1\",\n            \"code\": \"S050\",\n            \"abbreviation\": \"SA_SA_S050\",\n            \"tax_rate\": 5,\n            \"client_name\": \"api third party\",\n            \"client_country\": null,\n            \"client_address\": {\n                \"en\": \"4 Top house, El nasser st.\",\n                \"ar\": \"4 Top house, El nasser st.\"\n            },\n            \"third_party_reference_number\": \"ANXNDK\",\n            \"third_party_tax_number\": null,\n            \"third_party_name\": \"api third party\",\n            \"third_party_registration_number\": null,\n            \"category_name\": null,\n            \"invoice_number\": \"INV-167\",\n            \"is_return\": 0,\n            \"invoice_description\": {\n                \"en\": \"\"\n            },\n            \"invoice_type\": \"sale\",\n            \"payment_date\": null,\n            \"invoice_date\": \"2025-01-19T00:00:00.000000Z\",\n            \"amount\": 45000,\n            \"vat_calculations\": 0,\n            \"calculated_vat\": 2250,\n            \"errors_count\": 6,\n            \"has_errors\": true\n        }\n    ],\n    \"purchase\": [\n        {\n            \"description\": {\n                \"ar\": \"مشتريات خاضعة للنسبة الأساسية 15%\",\n                \"en\": \"Purchases subject to the basic ratio 15%\"\n            },\n            \"code_type\": \"7\",\n            \"code\": \"IMP0050\",\n            \"abbreviation\": \"SA_PU_IMP0050\",\n            \"tax_rate\": 5,\n            \"client_name\": \"احمد محمود\",\n            \"client_country\": null,\n            \"client_address\": {\n                \"en\": null\n            },\n            \"third_party_reference_number\": \"NXOWYl\",\n            \"third_party_tax_number\": \"399999999900003\",\n            \"third_party_name\": \"احمد محمود\",\n            \"third_party_registration_number\": null,\n            \"category_name\": null,\n            \"invoice_number\": \"0125\",\n            \"is_return\": 0,\n            \"invoice_description\": {\n                \"en\": \"\"\n            },\n            \"invoice_type\": \"purchase\",\n            \"payment_date\": null,\n            \"invoice_date\": \"2025-01-18T00:00:00.000000Z\",\n            \"amount\": 46015.215,\n            \"vat_calculations\": 0,\n            \"calculated_vat\": 2300.76075,\n            \"errors_count\": 0,\n            \"has_errors\": false\n        },\n        {\n            \"description\": {\n                \"ar\": \"مشتريات خاضعة للإحتساب العكسي 15%\",\n                \"en\": \"Reverse charge purchases 15%\"\n            },\n            \"code_type\": \"9\",\n            \"code\": \"RCM0150\",\n            \"abbreviation\": \"SA_PU_RCM0150_A\",\n            \"tax_rate\": 15,\n            \"client_name\": \"احمد محمود\",\n            \"client_country\": null,\n            \"client_address\": {\n                \"en\": null\n            },\n            \"third_party_reference_number\": \"NXOWYl\",\n            \"third_party_tax_number\": \"399999999900003\",\n            \"third_party_name\": \"احمد محمود\",\n            \"third_party_registration_number\": null,\n            \"category_name\": null,\n            \"invoice_number\": \"sfdsdf\",\n            \"is_return\": 1,\n            \"invoice_description\": {\n                \"en\": \"\"\n            },\n            \"invoice_type\": \"purchase\",\n            \"payment_date\": null,\n            \"invoice_date\": \"2025-01-30T00:00:00.000000Z\",\n            \"amount\": 0,\n            \"vat_calculations\": 5151.21515151,\n            \"calculated_vat\": -772.682272727,\n            \"errors_count\": 0,\n            \"has_errors\": false\n        }\n    ]\n}"}],"_postman_id":"eebd7a15-9a35-47f7-85e1-b9a34aac13c3"},{"name":"upload docs","id":"02ac630e-cab6-485c-843c-e7c7b73cf589","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"draft_documents[]","type":"file","description":"<p>send in case draft report along with a maximum of 5 files.</p>\n","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Pictures/Screenshot from 2024-01-30 15-02-00.png","/home/cheetos/Pictures/Screenshot from 2024-02-19 13-35-22.png"],"src":["/home/cheetos/Pictures/Screenshot from 2024-01-30 15-02-00.png","/home/cheetos/Pictures/Screenshot from 2024-02-19 13-35-22.png"]},{"key":"approved_documents[]","type":"file","description":"<p>send in case approved report along with a maximum of 2 files.</p>\n","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/home/cheetos/Downloads/sales_channels_cities_AtEx3.xlsx"],"src":"/home/cheetos/Downloads/sales_channels_cities_AtEx3.xlsx"}]},"url":"{{url}}/public/api/v1/:company/reports/:report/docs","urlObject":{"path":["public","api","v1",":company","reports",":report","docs"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"9ddaadf8-363a-492d-bfaf-f125ecac65fb","key":"report"}]}},"response":[],"_postman_id":"02ac630e-cab6-485c-843c-e7c7b73cf589"},{"name":"delete docs from report","id":"c1f3cbd9-3671-4ad5-85e9-de2d7e8ace24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v1/:company/reports/:report/docs/:docId","urlObject":{"path":["public","api","v1",":company","reports",":report","docs",":docId"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"},{"type":"any","value":"9ddaadf8-363a-492d-bfaf-f125ecac65fb","key":"report"},{"type":"any","value":"516","key":"docId"}]}},"response":[],"_postman_id":"c1f3cbd9-3671-4ad5-85e9-de2d7e8ace24"}],"id":"4f9e9b2a-21a1-48ac-8d09-56ce3b9a5895","event":[{"listen":"prerequest","script":{"id":"153e7322-f359-4de7-93d3-a7dc08149319","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"832ccac6-3872-49d7-8c57-6c27786cb4e8","type":"text/javascript","exec":[""]}}],"_postman_id":"4f9e9b2a-21a1-48ac-8d09-56ce3b9a5895","description":""},{"name":"payment","item":[{"name":"list","id":"49dba202-02aa-4bae-afff-9dcbe795f19d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"card_token","value":"tok_ybPp54241814k8K520e44K32","type":"text"},{"key":"redirect_url","value":"https://www.google.com","type":"text"}]},"url":"{{url}}/public/api/v1/:company/payments?per_page=10","urlObject":{"path":["public","api","v1",":company","payments"],"host":["{{url}}"],"query":[{"disabled":true,"description":{"content":"<p>1 success 2 pending 3 failed</p>\n","type":"text/plain"},"key":"status","value":"3"},{"disabled":true,"description":{"content":"<p>1 monthly 2 yearly</p>\n","type":"text/plain"},"key":"period_type","value":"1"},{"disabled":true,"key":"plan_name","value":"name"},{"key":"per_page","value":"10"}],"variable":[{"type":"any","value":"42","key":"company"}]}},"response":[{"id":"0e48d394-aae7-4135-8657-91804ae4eefe","name":"list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-Language","value":"ar","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"card_token","value":"tok_ybPp54241814k8K520e44K32","type":"text"},{"key":"redirect_url","value":"https://www.google.com","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/payments?per_page=10","host":["{{url}}"],"path":["public","api","v1",":company","payments"],"query":[{"key":"status","value":"3","description":"1 success 2 pendind 3 failed","disabled":true},{"key":"period_type","value":"1","description":"1 monthly 2 yearly","disabled":true},{"key":"plan_name","value":"name","disabled":true},{"key":"per_page","value":"10"}],"variable":[{"key":"company","value":"42"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Jul 2024 10:04:36 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 104,\n            \"original_payment_id\": \"chg_TS01A3520241842Hy0m0907242\",\n            \"price\": \"100.00\",\n            \"currency\": \"SAR\",\n            \"promo_code_discount\": \"0.00\",\n            \"promo_code_id\": null,\n            \"price_before_discount\": \"100.00\",\n            \"status\": 1,\n            \"status_message\": \"محتجز\",\n            \"user\": {\n                \"id\": 43,\n                \"name\": \"ahmed kamel\"\n            },\n            \"subscription\": {\n                \"current\": true,\n                \"start_date\": \"2024-07-10T16:18:06.000000Z\",\n                \"end_date\": \"2024-08-01T00:43:23.000000Z\",\n                \"id\": 58,\n                \"name\": null\n            },\n            \"plan\": {\n                \"period_type\": 1,\n                \"id\": 49,\n                \"name\": \"Name AR 2et\"\n            },\n            \"save_card\": 1,\n            \"type\": 2,\n            \"has_error\": 0,\n            \"created_at\": \"2024-07-09T15:42:55.000000Z\"\n        },\n        {\n            \"id\": 103,\n            \"original_payment_id\": \"chg_TS07A2720241838Xh210907679\",\n            \"price\": \"100.00\",\n            \"currency\": \"SAR\",\n            \"promo_code_discount\": \"0.00\",\n            \"promo_code_id\": null,\n            \"price_before_discount\": \"100.00\",\n            \"status\": 1,\n            \"status_message\": \"محتجز\",\n            \"user\": {\n                \"id\": 43,\n                \"name\": \"ahmed kamel\"\n            },\n            \"subscription\": {\n                \"current\": false,\n                \"start_date\": \"2024-07-09T15:39:37.000000Z\",\n                \"end_date\": \"2026-05-02T00:39:37.000000Z\",\n                \"id\": 57,\n                \"name\": null\n            },\n            \"plan\": {\n                \"period_type\": 1,\n                \"id\": 49,\n                \"name\": \"Name AR 2et\"\n            },\n            \"save_card\": 1,\n            \"type\": 2,\n            \"has_error\": 0,\n            \"created_at\": \"2024-07-09T15:38:47.000000Z\"\n        },\n        {\n            \"id\": 102,\n            \"original_payment_id\": \"chg_TS05A5920241823Ba200907536\",\n            \"price\": \"1000.00\",\n            \"currency\": \"SAR\",\n            \"promo_code_discount\": \"0.00\",\n            \"promo_code_id\": null,\n            \"price_before_discount\": \"1000.00\",\n            \"status\": 1,\n            \"status_message\": \"محتجز\",\n            \"user\": {\n                \"id\": 43,\n                \"name\": \"ahmed kamel\"\n            },\n            \"subscription\": {\n                \"current\": false,\n                \"start_date\": \"2024-07-09T18:39:37.000000Z\",\n                \"end_date\": \"2026-04-01T00:25:48.000000Z\",\n                \"id\": 56,\n                \"name\": null\n            },\n            \"plan\": {\n                \"period_type\": 2,\n                \"id\": 49,\n                \"name\": \"Name AR 2et\"\n            },\n            \"save_card\": 1,\n            \"type\": 2,\n            \"has_error\": 0,\n            \"created_at\": \"2024-07-09T15:24:19.000000Z\"\n        },\n        {\n            \"id\": 100,\n            \"original_payment_id\": \"ch_123\",\n            \"price\": \"700.00\",\n            \"currency\": \"SAR\",\n            \"promo_code_discount\": \"30.00\",\n            \"promo_code_id\": null,\n            \"price_before_discount\": \"700.00\",\n            \"status\": 1,\n            \"status_message\": \"محتجز\",\n            \"user\": null,\n            \"subscription\": {\n                \"current\": false,\n                \"start_date\": \"2024-07-09T18:25:48.000000Z\",\n                \"end_date\": \"2025-04-01T00:00:00.000000Z\",\n                \"id\": 55,\n                \"name\": null\n            },\n            \"plan\": {\n                \"period_type\": 2,\n                \"id\": 49,\n                \"name\": \"Name AR 2et\"\n            },\n            \"save_card\": 0,\n            \"type\": 2,\n            \"has_error\": 0,\n            \"created_at\": \"2024-06-27T10:09:33.000000Z\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v1/42/payments?per_page=10&page=1\",\n        \"last\": \"https://ahad.local/public/api/v1/42/payments?per_page=10&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; السابق\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v1/42/payments?per_page=10&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"التالي &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v1/42/payments\",\n        \"per_page\": 10,\n        \"to\": 4,\n        \"total\": 4\n    }\n}"}],"_postman_id":"49dba202-02aa-4bae-afff-9dcbe795f19d"}],"id":"b3f4c2a6-bf59-4ca4-ba95-442037f47844","description":"<p>This API is set to return the online payment transactions per company, so for each online transaction done by the user on a specific company, it should be listed down here.</p>\n","_postman_id":"b3f4c2a6-bf59-4ca4-ba95-442037f47844"},{"name":"Subscription","item":[{"name":"current-plan","id":"377aa318-275a-49f3-a754-3b05a2831d33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/subscriptions/plans/current","description":"<p>This API is set to return the current subscription plan for the selected company.</p>\n","urlObject":{"path":["public","api","v1",":company","subscriptions","plans","current"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"11ef0a41-5fac-4fef-a91d-c5b908073b43","name":"current-plan","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v1/:company/subscriptions/plans/current","host":["{{url}}"],"path":["public","api","v1",":company","subscriptions","plans","current"],"variable":[{"key":"company","value":"43"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Jul 2024 14:00:47 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"price\": \"5.00\", // only be shown if the user subscribed by himself\n        \"period_type\": 1, // 1 monthly 2 yearly Note: only be shown if the user subscribed by himself\n        \"start_date\": \"2024-07-09\",\n        \"end_date\": \"2026-05-02\",\n        \"id\": 44,\n        \"name\": {\n            \"en\": \"test\",\n            \"ar\": \"تيست\"\n        },\n        \"type\": 1, // plan type 1 paid 2 customized 3 fallback\n        \"description\": {\n            \"en\": \"test\",\n            \"ar\": \"تيست\"\n        }\n    }\n}"}],"_postman_id":"377aa318-275a-49f3-a754-3b05a2831d33"}],"id":"6a8bf3b2-e459-4236-81c0-2e6677fefdcd","_postman_id":"6a8bf3b2-e459-4236-81c0-2e6677fefdcd","description":""},{"name":"webhook","item":[{"name":"Create or update exist","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"04549bfc-676e-4e52-ba81-d19d825d53d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/webhook","urlObject":{"path":["public","api","v1",":company","webhook"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"642a4c66-adbf-4895-b613-a4752c0acaa1","name":"Create or update exist","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"webhook_url","value":"https://webhook.site/212fb7d8-81d9-4634-aa91-0fc223f7e9a2","type":"text","description":"required"},{"key":"x_api_key","value":"12345","type":"text","description":"required"}]},"url":{"raw":"{{url}}/public/api/v1/:company/webhook","host":["{{url}}"],"path":["public","api","v1",":company","webhook"],"variable":[{"key":"company","value":"42"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2024 11:06:57 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=98"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"webhook_url\": \"https://webhook.site/212fb7d8-81d9-4634-aa91-0fc223f7e9a2\"\n    }\n}"}],"_postman_id":"04549bfc-676e-4e52-ba81-d19d825d53d8"},{"name":"get company webhook","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"dc852f3d-cb4f-4dbe-8499-3705ca258a75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/webhook","urlObject":{"path":["public","api","v1",":company","webhook"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"59067c2a-855c-439a-8ba9-b60cb3f9b6ca","name":"has webhook","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v1/:company/webhook","host":["{{url}}"],"path":["public","api","v1",":company","webhook"],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 07 Sep 2025 13:07:25 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"has_webhook\": true,\n        \"webhook_url\": \"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n        \"x_api_key\": \"12345\",\n        \"events\": [\n            \"invoice.published\",\n            \"report.approved\"\n        ]\n    }\n}"},{"id":"66d5b1d3-abd3-49c0-8983-fae64bac9a1e","name":"has no webhook","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v1/:company/webhook","host":["{{url}}"],"path":["public","api","v1",":company","webhook"],"variable":[{"key":"company","value":"12"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 07 Sep 2025 13:08:35 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"has_webhook\": false,\n        \"webhook_url\": null,\n        \"x_api_key\": null,\n        \"events\": null\n    }\n}"}],"_postman_id":"dc852f3d-cb4f-4dbe-8499-3705ca258a75"},{"name":"delete company webhook","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e8165259-1825-4b8b-be32-2bf49f3d7867","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/webhook","urlObject":{"path":["public","api","v1",":company","webhook"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"1","key":"company"}]}},"response":[{"id":"d2feec50-8180-4e36-9dca-053d41574f7e","name":"has webhook","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v1/:company/webhook","host":["{{url}}"],"path":["public","api","v1",":company","webhook"],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 07 Sep 2025 13:07:25 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"has_webhook\": true,\n        \"webhook_url\": \"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n        \"x_api_key\": \"12345\",\n        \"events\": [\n            \"invoice.published\",\n            \"report.approved\"\n        ]\n    }\n}"},{"id":"e4e44428-1c01-490f-8382-9e533a06d20b","name":"has no webhook","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v1/:company/webhook","host":["{{url}}"],"path":["public","api","v1",":company","webhook"],"variable":[{"key":"company","value":"12"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 07 Sep 2025 13:08:35 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"has_webhook\": false,\n        \"webhook_url\": null,\n        \"x_api_key\": null,\n        \"events\": null\n    }\n}"}],"_postman_id":"e8165259-1825-4b8b-be32-2bf49f3d7867"},{"name":"Create or update webhook for owner","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"99652371-1b4e-4a2a-8f5c-de2a21a017df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/owner/webhook","urlObject":{"path":["public","api","v1","owner","webhook"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c0e7df2a-e127-4d3d-a2d5-dc6644323172","name":"Create or update exist","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"webhook_url","value":"https://webhook.site/212fb7d8-81d9-4634-aa91-0fc223f7e9a2","type":"text","description":"required"},{"key":"x_api_key","value":"12345","type":"text","description":"required"}]},"url":{"raw":"{{url}}/public/api/v1/:company/webhook","host":["{{url}}"],"path":["public","api","v1",":company","webhook"],"variable":[{"key":"company","value":"42"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 29 Apr 2024 11:06:57 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=98"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"webhook_url\": \"https://webhook.site/212fb7d8-81d9-4634-aa91-0fc223f7e9a2\"\n    }\n}"}],"_postman_id":"99652371-1b4e-4a2a-8f5c-de2a21a017df"},{"name":"get owner webhook","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"cc0cd16f-3212-47e4-9a71-96de57128e5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/owner/webhook","urlObject":{"path":["public","api","v1","owner","webhook"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"0b4efe06-5982-477b-ac9d-f434819b60f8","name":"has webhook","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/owner/webhook"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 07 Sep 2025 13:14:37 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"has_webhook\": true,\n        \"webhook_url\": \"https://webhook.site/cd96dd19-10d3-4271-bde1-c676a832dc15\",\n        \"x_api_key\": \"12345\",\n        \"events\": [\n            \"invoice.published\"\n        ]\n    }\n}"}],"_postman_id":"cc0cd16f-3212-47e4-9a71-96de57128e5e"},{"name":"delete owner webhook","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"343f168c-ffdc-4819-be9b-83b8656365c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/owner/webhook","urlObject":{"path":["public","api","v1","owner","webhook"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"3edee81c-398b-4d95-924a-1025b448ad38","name":"has webhook","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\":\"https://webhook.site/675b91ae-c636-425c-a6d2-60962a463ebc\",\n    \"x_api_key\":\"12345\",\n    \"events\" : [\"invoice.published\", \"report.approved\"] // optional ... sending it null means that you subscribed to all events\n\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/owner/webhook"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx/1.25.3"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.2.27"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 07 Sep 2025 13:14:37 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"has_webhook\": true,\n        \"webhook_url\": \"https://webhook.site/cd96dd19-10d3-4271-bde1-c676a832dc15\",\n        \"x_api_key\": \"12345\",\n        \"events\": [\n            \"invoice.published\"\n        ]\n    }\n}"}],"_postman_id":"343f168c-ffdc-4819-be9b-83b8656365c1"}],"id":"564d04c6-902c-4286-9d92-db1d25acc1c6","description":"<p>Our system supports webhooks to notify your application in real-time about important events. By subscribing to these events, you can keep your system in sync with ours automatically.</p>\n<p>All webhook requests sent to your endpoint will include an <strong><code>x-api-key</code></strong> header for security validation. Make sure to verify this key on your server.</p>\n<p>Below are the webhook events we currently provide:</p>\n<h2 id=\"invoicepublished\">invoice.published</h2>\n<p>Triggered when a new sale invoice is successfully created and published in our system. Use this event to stay updated with newly generated invoices.</p>\n<p>Example Payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"event\": \"invoice.published\",\n  \"payload\": {\n    \"id\": \"4cf47f19-4ae2-4694-b1de-6b1934dbfe73\",\n    \"simple_invoice_preview_links\": {\n      \"ar\": \"https://ahad.local/storage/93/Ahad_INV-25_simple_invoice.pdf\",\n      \"en\": \"https://ahad.local/storage/95/Ahad_INV-25_simple_invoice.pdf\"\n    },\n    \"long_invoice_preview_links\": {\n      \"ar\": \"https://ahad.local/storage/92/Ahad_INV-25_long_invoice.pdf\",\n      \"en\": \"https://ahad.local/storage/94/Ahad_INV-25_long_invoice.pdf\"\n    }\n  }\n}\n\n</code></pre>\n<hr />\n<h2 id=\"invoiceupdated\">invoice.updated</h2>\n<p>Triggered when an existing invoice is updated in our system. Use this event to keep your invoice records in sync.</p>\n<p>Example Payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"event\": \"invoice.updated\",\n  \"payload\": {\n    \"id\": \"4cf47f19-4ae2-4694-b1de-6b1934dbfe73\",\n    \"simple_invoice_preview_links\": {\n      \"ar\": \"https://ahad.local/storage/93/Ahad_INV-25_simple_invoice.pdf\",\n      \"en\": \"https://ahad.local/storage/95/Ahad_INV-25_simple_invoice.pdf\"\n    },\n    \"long_invoice_preview_links\": {\n      \"ar\": \"https://ahad.local/storage/92/Ahad_INV-25_long_invoice.pdf\",\n      \"en\": \"https://ahad.local/storage/94/Ahad_INV-25_long_invoice.pdf\"\n    }\n  }\n}\n\n</code></pre>\n<hr />\n<h2 id=\"reportapproved\">report.approved</h2>\n<p>Triggered when a report is approved in our system. Use this event to track the approval status of your reports.</p>\n<p>Example Payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"event\": \"report.approved\",\n  \"payload\": {\n    \"id\": \"cb5b06ef-db3f-4694-82ad-d20d0b53f725\",\n    \"report_preview_links\": {\n      \"en\": \"https://ahad.local/storage/114/AHAD_3_2023-08-01_report.pdf\",\n      \"ar\": \"https://ahad.local/storage/112/AHAD_3_2023-08-01_report.pdf\"\n    },\n    \"declaration_preview_links\": {\n      \"en\": \"https://ahad.local/storage/115/AHAD_3_2023-08-01_declaration.pdf\",\n      \"ar\": \"https://ahad.local/storage/113/AHAD_3_2023-08-01_declaration.pdf\"\n    },\n    \"vat_package_link\": \"https://ahad.local/storage/110/AHAD_3_2023-08-01_vat_package.xlsx\",\n    \"vat_transactions_log_link\": \"https://ahad.local/storage/111/AHAD_3_2023-08-01_transactions_log.xlsx\",\n    \"vat_transactions_statement_link\": \"\",\n    \"error_count\": 0\n  }\n}\n\n</code></pre>\n","_postman_id":"564d04c6-902c-4286-9d92-db1d25acc1c6"},{"name":"V2","item":[{"name":"Invoice Prefixes","item":[{"name":"index","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"189955b7-038a-4b2c-b8f2-9aa20eeb4e7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/public/api/v2/:company/invoice-prefixes?per_page=50","urlObject":{"path":["public","api","v2",":company","invoice-prefixes"],"host":["{{url}}"],"query":[{"key":"per_page","value":"50"},{"disabled":true,"key":"is_active","value":"1"},{"disabled":true,"key":"for_integration","value":"0"},{"disabled":true,"key":"","value":null}],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"9ea4eec2-5e8a-47f3-8140-4e9e04f42e7c","name":"index","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{url}}/public/api/v2/:company/invoice-prefixes?per_page=50","host":["{{url}}"],"path":["public","api","v2",":company","invoice-prefixes"],"query":[{"key":"per_page","value":"50"},{"key":"is_active","value":"1","disabled":true},{"key":"for_integration","value":"0","disabled":true},{"key":"","value":null,"type":"text","disabled":true}],"variable":[{"key":"company","value":"43"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 15 Dec 2024 11:58:39 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"prefix-re\",\n            \"original_prefix\": \"prefix 1\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-re122\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": true\n        },\n        {\n            \"id\": 4,\n            \"name\": \"prefix-re\",\n            \"original_prefix\": \"prefix-name\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-name-re\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 72,\n            \"name\": null,\n            \"original_prefix\": \"INV\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"INV_RE\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 73,\n            \"name\": null,\n            \"original_prefix\": \"prefix-name\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": null,\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 74,\n            \"name\": null,\n            \"original_prefix\": null,\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-name-re\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 78,\n            \"name\": \"prefix-re\",\n            \"original_prefix\": \"prefix-original\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-ret\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 81,\n            \"name\": \"prefix-orginal1s\",\n            \"original_prefix\": \"prefix-original1s\",\n            \"original_number_start\": \"0001\",\n            \"return_prefix\": \"prefix-ret1s\",\n            \"return_number_start\": \"0001\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 83,\n            \"name\": null,\n            \"original_prefix\": \"INVsss\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"INV_REssss\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 84,\n            \"name\": null,\n            \"original_prefix\": \"INVsss\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"INV_REssss\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 85,\n            \"name\": null,\n            \"original_prefix\": \"INV\",\n            \"original_number_start\": \"0001\",\n            \"return_prefix\": \"INV_RE\",\n            \"return_number_start\": \"001\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 86,\n            \"name\": null,\n            \"original_prefix\": \"INVsss\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"INV_REssss\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 87,\n            \"name\": null,\n            \"original_prefix\": \"INV\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"INV_RE\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 88,\n            \"name\": null,\n            \"original_prefix\": \"INV2\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": null,\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 1,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 89,\n            \"name\": null,\n            \"original_prefix\": \"\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": null,\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 90,\n            \"name\": null,\n            \"original_prefix\": \"prefix-name\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": null,\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 91,\n            \"name\": null,\n            \"original_prefix\": null,\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-name-re\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 92,\n            \"name\": null,\n            \"original_prefix\": null,\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-ret1s\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 93,\n            \"name\": null,\n            \"original_prefix\": \"prefix-original1s\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": null,\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 94,\n            \"name\": null,\n            \"original_prefix\": null,\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"INV_RE2\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": false,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 97,\n            \"name\": null,\n            \"original_prefix\": \"INV9\",\n            \"original_number_start\": \"001\",\n            \"return_prefix\": \"RE-INV9\",\n            \"return_number_start\": \"001\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 98,\n            \"name\": null,\n            \"original_prefix\": \"BB\",\n            \"original_number_start\": \"001\",\n            \"return_prefix\": \"CR\",\n            \"return_number_start\": \"001\",\n            \"zatca_otp\": null,\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 99,\n            \"name\": \"prefix-re\",\n            \"original_prefix\": \"prefix-re1\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-re155\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 100,\n            \"name\": \"prefix-ref\",\n            \"original_prefix\": \"prefix-re1f\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-re155f\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 101,\n            \"name\": \"prefix-reff\",\n            \"original_prefix\": \"prefix-re1ff\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-re155ff\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"12000\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        },\n        {\n            \"id\": 103,\n            \"name\": \"prefix-re2\",\n            \"original_prefix\": \"prefix-re2\",\n            \"original_number_start\": \"1\",\n            \"return_prefix\": \"prefix-re151\",\n            \"return_number_start\": \"1\",\n            \"zatca_otp\": \"123456\",\n            \"for_integration\": false,\n            \"is_active\": true,\n            \"invoice_pdf_type\": 0,\n            \"is_connected_to_store\": false\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.local/public/api/v2/43/invoice-prefixes?per_page=50&page=1\",\n        \"last\": \"https://ahad.local/public/api/v2/43/invoice-prefixes?per_page=50&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.local/public/api/v2/43/invoice-prefixes?per_page=50&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.local/public/api/v2/43/invoice-prefixes\",\n        \"per_page\": 50,\n        \"to\": 25,\n        \"total\": 25\n    }\n}"}],"_postman_id":"189955b7-038a-4b2c-b8f2-9aa20eeb4e7f"},{"name":"Create","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"8b70d04e-90ba-420a-ad6b-ad9344406b46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"prefix","type":"text"},{"key":"original_prefix","value":"1","type":"text"},{"key":"original_number_start","value":"1","type":"text"},{"key":"return_prefix","value":"prefixR","type":"text"},{"key":"return_number_start","value":"1","type":"text"},{"key":"zatca_otp","value":"12000","type":"text"},{"key":"for_integration","value":"0","description":"<p>boolean</p>\n","type":"text"},{"key":"invoice_pdf_type","value":"1","description":"<p>0 for A4 template/ 1 for POS template</p>\n","type":"text"}]},"url":"{{url}}/public/api/v2/:company/invoice-prefixes","urlObject":{"path":["public","api","v2",":company","invoice-prefixes"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"d764ce8e-3559-4350-b7b8-f64e41de6586","name":"Create","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"prefix","type":"text"},{"key":"original_prefix","value":"1","type":"text"},{"key":"original_number_start","value":"1","type":"text"},{"key":"return_prefix","value":"prefixR","type":"text"},{"key":"return_number_start","value":"1","type":"text"},{"key":"zatca_otp","value":"12000","type":"text"},{"key":"for_integration","value":"0","description":"boolean","type":"text"}]},"url":{"raw":"{{url}}/public/api/v2/:company/invoice-prefixes","host":["{{url}}"],"path":["public","api","v2",":company","invoice-prefixes"],"variable":[{"key":"company","value":"43"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Dec 2024 13:31:19 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 102,\n        \"name\": \"prefix\",\n        \"original_prefix\": \"1\",\n        \"original_number_start\": \"1\",\n        \"return_prefix\": \"prefixR\",\n        \"return_number_start\": \"1\",\n        \"zatca_otp\": \"12000\",\n        \"for_integration\": false,\n        \"is_active\": false,\n        \"invoice_pdf_type\": 1,\n        \"is_connected_to_store\": false\n    }\n}"}],"_postman_id":"8b70d04e-90ba-420a-ad6b-ad9344406b46"},{"name":"Update","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"6847e5ef-ec11-44ec-9693-d84268921ee9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"name\": \"prefix-re\",\n\"original_prefix\": \"prefix-re8888\",\n\"original_number_start\": 1,\n\"return_prefix\": \"prefix-re88588\",\n\"return_number_start\": 1,\n\"zatca_otp\": \"12000\",\n\"invoice_pdf_type\" : 1\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix","urlObject":{"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"102","key":"invoice_prefix"}]}},"response":[{"id":"a5e038fe-bf6b-4a69-bcd7-d58677f41c3d","name":"Update","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"name\": \"prefix-re\",\n\"original_prefix\": \"prefix-re8888\",\n\"original_number_start\": 1,\n\"return_prefix\": \"prefix-re88588\",\n\"return_number_start\": 1,\n\"zatca_otp\": \"12000\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix","host":["{{url}}"],"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix"],"variable":[{"key":"company","value":"43"},{"key":"invoice_prefix","value":"102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Dec 2024 13:31:43 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": []\n}"}],"_postman_id":"6847e5ef-ec11-44ec-9693-d84268921ee9"},{"name":"Delete","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"08f6b037-2ec9-4b86-9da1-e467a5bbcfc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix","urlObject":{"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"102","key":"invoice_prefix"}]}},"response":[{"id":"f68eab0b-4920-43b0-827e-ca85f0fe5bc1","name":"Delete","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix","host":["{{url}}"],"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix"],"variable":[{"key":"company","value":"43"},{"key":"invoice_prefix","value":"102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Dec 2024 13:32:45 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": []\n}"}],"_postman_id":"08f6b037-2ec9-4b86-9da1-e467a5bbcfc5"},{"name":"show","event":[{"listen":"test","script":{"id":"6b44f6b5-aff7-4519-81d0-10e98ea77058","exec":[""],"type":"text/javascript","packages":{}}}],"id":"23d7622e-1c42-4142-8ff0-41f285275c62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix","urlObject":{"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"102","key":"invoice_prefix"}]}},"response":[{"id":"deedc65e-e69c-45ab-b29f-395ac4fdcc9a","name":"show","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix","host":["{{url}}"],"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix"],"variable":[{"key":"company","value":"43"},{"key":"invoice_prefix","value":"102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Dec 2024 13:32:01 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 102,\n        \"name\": \"prefix-re\",\n        \"original_prefix\": \"prefix-re8888\",\n        \"original_number_start\": \"1\",\n        \"return_prefix\": \"prefix-re88588\",\n        \"return_number_start\": \"1\",\n        \"zatca_otp\": \"12000\",\n        \"for_integration\": false,\n        \"is_active\": true,\n        \"is_connected_to_store\": false,\n        \"invoice_pdf_type\": 1\n    }\n}"}],"_postman_id":"23d7622e-1c42-4142-8ff0-41f285275c62"},{"name":"set is active","id":"ad4c4064-eae5-4bfc-b1aa-c9feb61cc873","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"is_active\" : 1\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix/set-active","urlObject":{"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix","set-active"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"4","key":"invoice_prefix"}]}},"response":[{"id":"0b14a1b2-953e-4624-a21e-128ea02d9009","name":"set is active","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"is_active\" : 1\n}\n\n","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/public/api/v2/:company/invoice-prefixes/:invoice_prefix/set-active","host":["{{url}}"],"path":["public","api","v2",":company","invoice-prefixes",":invoice_prefix","set-active"],"variable":[{"key":"company","value":"43"},{"key":"invoice_prefix","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 05 Dec 2024 13:33:04 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"is_active\": 1\n    }\n}"}],"_postman_id":"ad4c4064-eae5-4bfc-b1aa-c9feb61cc873"}],"id":"2aaf05ea-42f1-4e93-bb25-995fbb97cbc8","_postman_id":"2aaf05ea-42f1-4e93-bb25-995fbb97cbc8","description":""},{"name":"Invoices","item":[{"name":"sales","item":[{"name":"Create","event":[{"listen":"test","script":{"id":"a4d6a5ec-c986-42a0-9d19-9c22b26742d7","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"cc5cb4b6-32cc-4ce4-814b-f10d27e3d9db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"description\": {\n        \"en\": \"xxxx\",\n        \"ar\": \"xxxx\"\n    },\n    \"invoice_date\": \"2026-01-21T14:19:27.000Z\",\n    \"payment_date\": \"2026-01-21T14:19:27.000Z\",\n    \"supply_date\": \"\",\n    \"invoice_items\": [\n        {\n            \"description\": \"product1\",\n            \"product_price\": \"100\",\n            \"quantity\": \"10\",\n            \"category_id\": \"1\",\n            \"vat_rate_id\": \"299\",\n            \"discount\": \"100\"\n        },\n        {\n            \"description\": \"product2\",\n            \"product_price\": \"50\",\n            \"quantity\": \"5\",\n            \"category_id\": \"1\",\n            \"vat_rate_id\": \"299\"\n        }\n        // {\n        //     \"description\": \"product3\",\n        //     \"product_price\": \"500\",\n        //     \"quantity\": \"1\",\n        //     \"category_id\": \"1\",\n        //     \"vat_rate_id\": \"301\"\n        // }\n    ],\n    \"invoice_discounts\": [\n        {\n            \"vat_rate_id\": 299,\n            \"amount\": 350\n        }\n    ],\n    \"third_party_id\": 2,\n    \"is_sequential\": \"1\",\n    \"invoice_prefix_id\": 2,\n    \"essal_reference_number\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v2/:company/invoices/sales","description":"<p>Kindly note that once you create a new sales invoice, and only if the company invoice settings in Sequential, there should be a webhook automatically created which is going to notify you once the invoice PDFs reports are created successfully, so you don't have to keep checking on it.</p>\n","urlObject":{"path":["public","api","v2",":company","invoices","sales"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"a78793f8-d85f-459c-bf87-2ada72a1ce54","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2024-01-01T22:00:00.000Z","type":"text","description":"[required]"},{"key":"invoice_number","value":"test13","type":"text","description":"[required if invoice setting is not sequential]"},{"key":"third_party_id","value":"1","type":"text","description":"[required]\nid : 2 staging - 32285 prelive - 36645 live"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"2000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][discount]","value":"500","type":"text"},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text"},{"key":"invoice_items[1][amount]","value":"300","type":"text"},{"key":"invoice_items[1][quantity]","value":"5","type":"text"},{"key":"invoice_items[1][product_price]","value":"300","type":"text"},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text"},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"status","value":"1","type":"text"},{"key":"recipient_phone","value":"966532173845","type":"text"},{"key":"recipient_email","value":"nahla@mailinator.com","type":"text"},{"key":"documents[]","type":"file","value":null,"disabled":true},{"key":"original_order_id","value":"test","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales"],"variable":[{"key":"company","value":"1","description":"id: 2 staging - 103 pre live - live 264"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 16:51:41 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"f8f3e218-f299-4b60-935b-d3c9d56ba2c4\",\n        \"company_type\": \"sequential\"\n    }\n}"},{"id":"4c2af36f-a409-400f-987b-e7cf08babea0","name":"validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"sep0042d5558w1s","type":"text"},{"key":"third_party_id","value":"5243","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"3","type":"text","disabled":true},{"key":"invoice_items[0][category_id]","value":"1","type":"text"},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","sales"],"variable":[{"key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:42:09 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_number\": [\n            \"This Invoice Number already exist!\"\n        ]\n    }\n}"}],"_postman_id":"cc5cb4b6-32cc-4ce4-814b-f10d27e3d9db"},{"name":"Create Return","event":[{"listen":"test","script":{"id":"a4d6a5ec-c986-42a0-9d19-9c22b26742d7","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d769ee82-a776-43bc-a541-914e871a4ec0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"description\": {\n        \"en\": \"english description\",\n        \"ar\": \"arabic description\"\n    },\n    \"invoice_date\": \"2026-01-21T14:19:27.000Z\",\n    \"payment_date\": \"2026-01-21T14:19:27.000Z\",\n    \"supply_date\": \"\",\n    \"reference_id\": \"1558b374-ad9e-44bf-b6f4-911032328dc4\",\n    \"third_party_id\": \"2\",\n    \"invoice_items\": [\n        {\n            \"reference_id\": \"289742\",\n            \"description\": \"product1\",\n            \"product_price\": \"100\",\n            \"quantity\": \"9\",\n            \"category_id\": \"1\",\n            \"vat_rate_id\": \"300\",\n            \"discount\": \"50\"\n        },\n        {\n            \"reference_id\": \"289743\",\n            \"description\": \"product2\",\n            \"product_price\": \"50\",\n            \"quantity\": \"5\",\n            \"category_id\": \"1\",\n            \"vat_rate_id\": \"300\"\n            //  \"discount\": \"50\"\n        }\n    ],\n    \"invoice_discounts\": [\n        {\n            \"vat_rate_id\": 300,\n            \"amount\": \"350\"\n        }\n    ],\n    \"original_order_id\": \"xxxx\",\n    \"is_sequential\": \"1\",\n    \"invoice_prefix_id\": \"2\",\n    \"essal_reference_number\": null\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v2/:company/invoices/return/sales","urlObject":{"path":["public","api","v2",":company","invoices","return","sales"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"2","key":"company"}]}},"response":[{"id":"a1cf90d0-f3eb-446e-a2ef-6861575a0eb6","name":"success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text","description":"[required]"},{"key":"invoice_number","value":"test2","type":"text","description":"[required if invoice setting is not sequential]"},{"key":"third_party_id","value":"1","type":"text","description":"[required] id : 2 staging - 32285 prelive - 36645 live"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"4","type":"text"},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[0][discount]","value":"200","type":"text"},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true},{"key":"recipient_phone","value":"966532173845","type":"text"},{"key":"recipient_email","value":"nahlamakhlouf1@gmail.com","type":"text"}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/return/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","return","sales"],"variable":[{"key":"company","value":"1","description":"id: 2 staging - 103 pre live - live 264"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Feb 2024 16:54:32 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"82779978-9c27-4dd7-9b01-551a01a5244c\",\n        \"company_type\": \"sequential\"\n    }\n}"},{"id":"db912366-e16d-4658-a25f-b4ba692c0bc8","name":"validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"description[en]","value":"english description ","type":"text"},{"key":"description[ar]","value":"arabic description","type":"text"},{"key":"invoice_date","value":"2023-09-01T22:00:00.000Z","type":"text"},{"key":"invoice_number","value":"sep00428sss1","type":"text"},{"key":"third_party_id","value":"1","type":"text"},{"key":"invoice_items[0][description]","value":"invoice item 1 test description","type":"text"},{"key":"invoice_items[0][amount]","value":"5000","type":"text"},{"key":"invoice_items[0][quantity]","value":"1","type":"text"},{"key":"invoice_items[0][product_price]","value":"2000","type":"text"},{"key":"invoice_items[0][vat_rate_id]","value":"4","type":"text"},{"key":"invoice_items[0][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[0][product_id]","value":"6d9747cd-dd21-11ed-b588-0242ac120005","type":"text","disabled":true},{"key":"invoice_items[0][tax_value]","value":"300","type":"text"},{"key":"invoice_items[1][description]","value":"invoice item 2","type":"text","disabled":true},{"key":"invoice_items[1][amount]","value":"300","type":"text","disabled":true},{"key":"invoice_items[1][quantity]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][product_price]","value":"5","type":"text","disabled":true},{"key":"invoice_items[1][vat_rate_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][category_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][product_id]","value":"1","type":"text","disabled":true},{"key":"invoice_items[1][tax_value]","value":"400","type":"text","disabled":true},{"key":"payment_date","value":"2023-05-27T22:00:00.000Z","type":"text","disabled":true},{"key":"documents[]","type":"file","value":null,"disabled":true}]},"url":{"raw":"{{url}}/public/api/v1/:company/invoices/return/sales","host":["{{url}}"],"path":["public","api","v1",":company","invoices","return","sales"],"variable":[{"id":"3e9525c6-cc19-46ad-bf5c-7b5430c87d64","key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Nov 2023 19:44:22 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Origin,Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"invoice_number\": [\n            \"This Invoice Number already exist!\"\n        ]\n    }\n}"}],"_postman_id":"d769ee82-a776-43bc-a541-914e871a4ec0"}],"id":"964a1a78-db51-4ce7-bcec-9dbf286f08ec","_postman_id":"964a1a78-db51-4ce7-bcec-9dbf286f08ec","description":""}],"id":"079e32e8-23f4-4256-abe0-98139da693f7","description":"<p><strong>-invoice_date</strong> | <strong>Mandatory</strong><br /><strong>-third_party_id</strong> | <strong>Mandatory</strong> | <strong>Choose one of the saved 3rd parties for this entity</strong> |<br /><strong>-invoice_number</strong> | <strong>[Mandatory if invoice setting is not sequential]</strong> | |<br /><strong>-Invoice_items:</strong><br />--product_id | <strong>Optional</strong> | <strong>Choose one of the saved products for this entity</strong></p>\n<p><a href=\"https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#70582652-5d45-4910-a3d4-364de7a5c0d6\"><b>https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#70582652-5d45-4910-a3d4-364de7a5c0d6</b></a> |<br />category_id | <strong>Optional</strong> | <strong>Choose one from our static saved categories</strong></p>\n<p><a href=\"https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#60ab0340-09b9-41e9-86a5-d7874655d425\"><b>https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#60ab0340-09b9-41e9-86a5-d7874655d425</b></a> |<br />product_price | <strong>Mandatory</strong> | <strong>Can be optional in case the user chose one of the saved products. System will add the default product’s price in this case.</strong><br />quantity | required|<br />discount | <strong>Optional</strong> | |<br />vat_rate_id | <strong>Mandatory</strong> | <strong>Choose one from our static saved VAT rates</strong></p>\n<p><a href=\"https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#d7fbc17b-dcbd-4a5e-9ac0-f1efb53dd05b\"><b>https://documenter.getpostman.com/view/25693439/2s9YRGxpL2#d7fbc17b-dcbd-4a5e-9ac0-f1efb53dd05b</b></a> |</p>\n","_postman_id":"079e32e8-23f4-4256-abe0-98139da693f7"},{"name":"company update setting","item":[{"name":"invoice Setting","id":"27d3d195-84b8-4e58-867f-0fc8ea6f9183","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"enable_english_version_for_invoice_pdf\": 1\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v2/:company/invoice-setting","description":"<p>This API is for setting the invoice english language value, if you want to generate the english version for your invoices, please send this request, otherwise, you don't have to use it.</p>\n","urlObject":{"path":["public","api","v2",":company","invoice-setting"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[],"_postman_id":"27d3d195-84b8-4e58-867f-0fc8ea6f9183"}],"id":"e706783a-9ff0-4b18-a906-daa915aa2863","_postman_id":"e706783a-9ff0-4b18-a906-daa915aa2863","description":""},{"name":"ZATCA","item":[{"name":"Toggling ZATCA","id":"4b007a53-7f44-4e28-bc5e-a35fc0320e84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"1","description":"<p>0 Disable | 1 Enable</p>\n","type":"text"}]},"url":"{{url}}/public/api/v2/:company/zatca/toggle-status","description":"<p>Toggling ZATCA status for your company.</p>\n<blockquote>\n<p>Make sure you have the right subscription plan that includes ZATCA integration.</p>\n</blockquote>\n","urlObject":{"path":["public","api","v2",":company","zatca","toggle-status"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"6f820c54-2d0e-43a5-8136-e9b947e95cd7","name":"Toggling ZATCA","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"1","description":"0 Disable | 1 Enable","type":"text"}]},"url":{"raw":"{{url}}/public/api/v2/:company/zatca/toggle-status","host":["{{url}}"],"path":["public","api","v2",":company","zatca","toggle-status"],"variable":[{"key":"company","value":"43"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 24 Dec 2024 10:55:18 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Origin"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"vat_registeration_number\": [\n            \"To activate the integration with ZATCA, the VAT data in the company details must be completed and correct.\"\n        ]\n    }\n}"},{"id":"b5152257-98c0-4c50-958d-36398c4deff4","name":"Toggling ZATCA - SUCCESS","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"1","description":"0 Disable | 1 Enable","type":"text"}]},"url":{"raw":"{{url}}/public/api/v2/:company/zatca/toggle-status","host":["{{url}}"],"path":["public","api","v2",":company","zatca","toggle-status"],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 11:56:02 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"Done"},{"id":"cea71d76-3258-456a-a465-f75a2a94e163","name":"Toggling ZATCA - ERROR (No national address for the company)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"1","description":"0 Disable | 1 Enable","type":"text"}]},"url":{"raw":"{{url}}/public/api/v2/:company/zatca/toggle-status","host":["{{url}}"],"path":["public","api","v2",":company","zatca","toggle-status"],"variable":[{"key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 11:57:09 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"has_national_address\": [\n            \"To activate the integration with ZATCA, the National Address in the company details must be completed and correct.\"\n        ]\n    }\n}"},{"id":"42e14eec-888c-49c1-beb4-59aec960f7ca","name":"Toggling ZATCA - ERROR (Vat number format)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"status","value":"1","description":"0 Disable | 1 Enable","type":"text"}]},"url":{"raw":"{{url}}/public/api/v2/:company/zatca/toggle-status","host":["{{url}}"],"path":["public","api","v2",":company","zatca","toggle-status"],"variable":[{"key":"company","value":"1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 11:58:09 GMT"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"vat_registeration_number\": [\n            \"To activate the integration with ZATCA, the VAT data in the company details must be completed and correct.\"\n        ]\n    }\n}"}],"_postman_id":"4b007a53-7f44-4e28-bc5e-a35fc0320e84"},{"name":"Switching to Real mode","id":"b61c9dac-618d-4b9d-8731-6e346351e7ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v2/:company/zatca/real-mode","description":"<p>Swtiching zatca mode from <code>simulation</code> to <code>production</code> mode.</p>\n","urlObject":{"path":["public","api","v2",":company","zatca","real-mode"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"c9fc01fa-4cc6-4c98-8f10-e84bc45afcc2","name":"Switching to Real mode","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/zatca/real-mode","host":["{{url}}"],"path":["public","api","v2",":company","zatca","real-mode"],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 11:58:50 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"DONE"},{"id":"1a57c8ea-f398-48de-bdaf-1cf487c2dae3","name":"Switching to Real mode - ERROR (Already switched)","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/zatca/real-mode","host":["{{url}}"],"path":["public","api","v2",":company","zatca","real-mode"],"variable":[{"key":"company","value":"1"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 11:58:57 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are already in the production mode\",\n    \"exception\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\HttpException\",\n    \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Application.php\",\n    \"line\": 1132,\n    \"trace\": [\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php\",\n            \"line\": 44,\n            \"function\": \"abort\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Application\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php\",\n            \"line\": 64,\n            \"function\": \"abort\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/app/Http/Controllers/PublicAPI/V2/ZATCA/SwitchZATCAENVModeController.php\",\n            \"line\": 21,\n            \"function\": \"abort_if\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Controller.php\",\n            \"line\": 54,\n            \"function\": \"__invoke\",\n            \"class\": \"App\\\\Http\\\\Controllers\\\\PublicAPI\\\\V2\\\\ZATCA\\\\SwitchZATCAENVModeController\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php\",\n            \"line\": 45,\n            \"function\": \"callAction\",\n            \"class\": \"Illuminate\\\\Routing\\\\Controller\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 261,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\ControllerDispatcher\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Route.php\",\n            \"line\": 205,\n            \"function\": \"runController\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 721,\n            \"function\": \"run\",\n            \"class\": \"Illuminate\\\\Routing\\\\Route\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 128,\n            \"function\": \"Illuminate\\\\Routing\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php\",\n            \"line\": 50,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/app/Http/Middleware/RegisterCurrentCompanyFromRequest.php\",\n            \"line\": 25,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"App\\\\Http\\\\Middleware\\\\RegisterCurrentCompanyFromRequest\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php\",\n            \"line\": 44,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Auth\\\\Middleware\\\\Authenticate\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/app/Http/Middleware/SetLocalizationCode.php\",\n            \"line\": 21,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"App\\\\Http\\\\Middleware\\\\SetLocalizationCode\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 103,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 719,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 698,\n            \"function\": \"runRouteWithinStack\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 662,\n            \"function\": \"runRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Routing/Router.php\",\n            \"line\": 651,\n            \"function\": \"dispatchToRoute\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 167,\n            \"function\": \"dispatch\",\n            \"class\": \"Illuminate\\\\Routing\\\\Router\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 128,\n            \"function\": \"Illuminate\\\\Foundation\\\\Http\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php\",\n            \"line\": 21,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php\",\n            \"line\": 31,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php\",\n            \"line\": 21,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php\",\n            \"line\": 40,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php\",\n            \"line\": 27,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php\",\n            \"line\": 86,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/fruitcake/laravel-cors/src/HandleCors.php\",\n            \"line\": 52,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Fruitcake\\\\Cors\\\\HandleCors\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php\",\n            \"line\": 39,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 167,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Http\\\\Middleware\\\\TrustProxies\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php\",\n            \"line\": 103,\n            \"function\": \"Illuminate\\\\Pipeline\\\\{closure}\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 142,\n            \"function\": \"then\",\n            \"class\": \"Illuminate\\\\Pipeline\\\\Pipeline\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php\",\n            \"line\": 111,\n            \"function\": \"sendRequestThroughRouter\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Users/mohamed-ibrahim/Developer/ahad/public/index.php\",\n            \"line\": 51,\n            \"function\": \"handle\",\n            \"class\": \"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\n            \"type\": \"->\"\n        },\n        {\n            \"file\": \"/Applications/Herd.app/Contents/Resources/valet/server.php\",\n            \"line\": 167,\n            \"function\": \"require\"\n        }\n    ]\n}"}],"_postman_id":"b61c9dac-618d-4b9d-8731-6e346351e7ab"},{"name":"Show ZATCA Transactions","id":"7b4099da-fb94-47c0-b4a4-3321d897390e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v2/:company/zatca/invoices","description":"<p>Show all ZATCA transactions with status, icv and XML file.</p>\n","urlObject":{"path":["public","api","v2",":company","zatca","invoices"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"}]}},"response":[{"id":"a9299628-d28b-47e0-b6f0-d0d7b2a5b1aa","name":"Show ZATCA Transactions","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/zatca/invoices","host":["{{url}}"],"path":["public","api","v2",":company","zatca","invoices"],"variable":[{"key":"company","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 12:00:28 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"icv\": 0,\n            \"pdf_link\": null,\n            \"xml_link\": null,\n            \"status\": 1,\n            \"errors_count\": 1,\n            \"invoice\": {\n                \"id\": \"ec0bf18b-fdec-409e-8d84-2aa48b624324\",\n                \"invoice_number\": \"INV1877291716_2060910966\"\n            },\n            \"created_at\": \"2024-12-25T12:00:13.000000Z\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.test/public/api/v2/1/zatca/invoices?page=1\",\n        \"last\": \"https://ahad.test/public/api/v2/1/zatca/invoices?page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.test/public/api/v2/1/zatca/invoices?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.test/public/api/v2/1/zatca/invoices\",\n        \"per_page\": 25,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"}],"_postman_id":"7b4099da-fb94-47c0-b4a4-3321d897390e"},{"name":"Show Single ZATCA Transaction","id":"f1083fdc-2702-4832-bf48-bc3d54f7446c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v2/:company/zatca/invoices/:sale/:response","description":"<p>Showing single transactions data with zatca response.</p>\n","urlObject":{"path":["public","api","v2",":company","zatca","invoices",":sale",":response"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"1fa25a7e-977a-4b1c-8404-50c990dd976a","key":"sale"},{"type":"any","value":"247","key":"response"}]}},"response":[{"id":"f257e45f-9c23-4f0e-874d-c40e67020ae1","name":"Show Single ZATCA Transaction","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/zatca/invoices/:sale/:response","host":["{{url}}"],"path":["public","api","v2",":company","zatca","invoices",":sale",":response"],"variable":[{"key":"company","value":"1"},{"key":"sale","value":"ec0bf18b-fdec-409e-8d84-2aa48b624324"},{"key":"response","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 12:01:08 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"icv\": 0,\n    \"pdf_link\": null,\n    \"xml_link\": null,\n    \"status\": 1,\n    \"errors_count\": 1,\n    \"response\": {\n        \"info\": [],\n        \"errors\": [\n            {\n                \"code\": \"FAI_OTP_ERROR\",\n                \"type\": \"ERROR\",\n                \"status\": \"ERROR\",\n                \"message\": \"There is no OTP linked with the prefix that have been used on the invoice\",\n                \"category\": \"KSA\"\n            }\n        ],\n        \"warnings\": []\n    },\n    \"invoice\": {\n        \"id\": \"ec0bf18b-fdec-409e-8d84-2aa48b624324\",\n        \"invoice_number\": \"INV1877291716_2060910966\"\n    },\n    \"created_at\": \"2024-12-25T12:00:13.000000Z\"\n}"}],"_postman_id":"f1083fdc-2702-4832-bf48-bc3d54f7446c"},{"name":"Send invoice to ZATCA","id":"9631d539-a518-4e33-9ca2-db8524a8ccec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v2/:company/zatca/invoices/:sale","description":"<p>Send invoice manully to zatca.</p>\n","urlObject":{"path":["public","api","v2",":company","zatca","invoices",":sale"],"host":["{{url}}"],"query":[],"variable":[{"type":"any","value":"43","key":"company"},{"type":"any","value":"1fa25a7e-977a-4b1c-8404-50c990dd976a","key":"sale"}]}},"response":[{"id":"fdbea669-c0af-453e-a8bd-c5e5d4148cf0","name":"Send invoice to ZATCA","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{url}}/public/api/v2/:company/zatca/invoices/:sale","host":["{{url}}"],"path":["public","api","v2",":company","zatca","invoices",":sale"],"variable":[{"key":"company","value":"1"},{"key":"sale","value":"ec0bf18b-fdec-409e-8d84-2aa48b624324"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.15"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 12:00:13 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"DONE"}],"_postman_id":"9631d539-a518-4e33-9ca2-db8524a8ccec"}],"id":"3ac24e5b-6da8-4408-bc28-e499e3535e96","description":"<p>ZATCA Integration with Fai system</p>\n","_postman_id":"3ac24e5b-6da8-4408-bc28-e499e3535e96"}],"id":"4b24767d-b666-45be-9eeb-20545c006e3b","description":"<h4 id=\"welcome-to-version-2-of-the-multiple-prefixes\"><strong>Welcome to version 2 of the multiple prefixes.</strong></h4>\n<p>In this section you should find v2 APIs which are enabling our users to create more than one prefix for their companies which accordignly should help them while creating sequential invoices to assign specific prefix to specific invoice.</p>\n<p>Getting into more details, The invoices prefixes section contains all required APIs where users can use to create, update, delete, and view their company prefixes, this new feature is enabling a company to have many sequences and in each sequence there is the Prefix, start number, Return-prefix and start number, and a sequence name.</p>\n<p>by creating more than one sequence, and going to the Invoices section you should find that by creating a new invoice, you should select one of those created sequences to use it's prefix in this invoice</p>\n","_postman_id":"4b24767d-b666-45be-9eeb-20545c006e3b"},{"name":"GEO","item":[{"name":"List of countries","id":"27439208-bd88-43a3-ae30-3f55f5058ecf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/public/api/v1/countries","urlObject":{"path":["public","api","v1","countries"],"host":["{{url}}"],"query":[{"disabled":true,"key":"name","value":"Saudi"}],"variable":[]}},"response":[{"id":"6a1e27bd-1faa-465f-a0c0-24364debef04","name":"Filter by name","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/public/api/v1/countries?name=Saudi","host":["{{url}}"],"path":["public","api","v1","countries"],"query":[{"key":"name","value":"Saudi"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Jan 2025 10:32:38 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 195,\n            \"name\": {\n                \"ar\": \"المملكة العربية السعودية\",\n                \"en\": \"Saudi Arabia\"\n            },\n            \"iso\": \"SA\",\n            \"flag\": \"🇸🇦\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.test/public/api/v1/countries?name=Saudi&page=1\",\n        \"last\": \"https://ahad.test/public/api/v1/countries?name=Saudi&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.test/public/api/v1/countries?name=Saudi&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.test/public/api/v1/countries\",\n        \"per_page\": 100,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"},{"id":"4098cd35-a298-4e9d-801d-43a83c248617","name":"List of countries","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.ahadtest.com/public/api/v1/countries?name=Saudi","protocol":"https","host":["api","ahadtest","com"],"path":["public","api","v1","countries"],"query":[{"key":"name","value":"Saudi"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.27.0"},{"key":"Date","value":"Sun, 26 Jan 2025 14:42:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Strict-Transport-Security","value":"max-age=31536000"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"SA\",\n            \"name\": {\n                \"en\": \"Saudi Arabia\",\n                \"ar\": \"المملكة العربية السعودية\"\n            },\n            \"iso\": \"SA\",\n            \"flag\": \"🇸🇦\"\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://api.ahadtest.com/public/api/v1/countries?name=Saudi&page=1\",\n        \"last\": \"https://api.ahadtest.com/public/api/v1/countries?name=Saudi&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://api.ahadtest.com/public/api/v1/countries?name=Saudi&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://api.ahadtest.com/public/api/v1/countries\",\n        \"per_page\": 100,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"}],"_postman_id":"27439208-bd88-43a3-ae30-3f55f5058ecf"},{"name":"List of cities","id":"3e58d941-e9d5-46cb-9f80-5ed32d01bad5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/public/api/v1/cities?name=Riyadh","urlObject":{"path":["public","api","v1","cities"],"host":["{{url}}"],"query":[{"disabled":true,"key":"country","value":"195"},{"key":"name","value":"Riyadh"}],"variable":[]}},"response":[{"id":"f2a85168-28ad-4a3a-9a90-f989de9c5607","name":"Filter by country id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/public/api/v1/cities?country=195","host":["{{url}}"],"path":["public","api","v1","cities"],"query":[{"key":"country","value":"195","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Jan 2025 10:33:12 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 26457,\n            \"name\": {\n                \"ar\": \"الرياض\",\n                \"en\": \"Riyadh\"\n            }\n        },\n        {\n            \"id\": 26458,\n            \"name\": {\n                \"ar\": \"جدة\",\n                \"en\": \"Jeddah\"\n            }\n        },\n        {\n            \"id\": 26459,\n            \"name\": {\n                \"ar\": \"مكة المكرمة\",\n                \"en\": \"Mecca\"\n            }\n        },\n        {\n            \"id\": 26460,\n            \"name\": {\n                \"ar\": \"المدينة المنورة\",\n                \"en\": \"Medina\"\n            }\n        },\n        {\n            \"id\": 26461,\n            \"name\": {\n                \"ar\": \"الدمام\",\n                \"en\": \"Ad Dammām\"\n            }\n        },\n        {\n            \"id\": 26462,\n            \"name\": {\n                \"ar\": \"الهفوف\",\n                \"en\": \"Al Hufūf\"\n            }\n        },\n        {\n            \"id\": 26463,\n            \"name\": {\n                \"ar\": \"بريدة\",\n                \"en\": \"Buraydah\"\n            }\n        },\n        {\n            \"id\": 26464,\n            \"name\": {\n                \"ar\": \"الحلة\",\n                \"en\": \"Al Ḩillah\"\n            }\n        },\n        {\n            \"id\": 26465,\n            \"name\": {\n                \"ar\": \"آصيف\",\n                \"en\": \"Aţ Ţā’if\"\n            }\n        },\n        {\n            \"id\": 26466,\n            \"name\": {\n                \"ar\": \"تبوك\",\n                \"en\": \"Tabūk\"\n            }\n        },\n        {\n            \"id\": 26467,\n            \"name\": {\n                \"ar\": \"خميس مشيط\",\n                \"en\": \"Khamīs Mushayţ\"\n            }\n        },\n        {\n            \"id\": 26468,\n            \"name\": {\n                \"ar\": \"وابل\",\n                \"en\": \"Ḩā’il\"\n            }\n        },\n        {\n            \"id\": 26469,\n            \"name\": {\n                \"ar\": \"القيف\",\n                \"en\": \"Al Qaţīf\"\n            }\n        },\n        {\n            \"id\": 26470,\n            \"name\": {\n                \"ar\": \"المبرز\",\n                \"en\": \"Al Mubarraz\"\n            }\n        },\n        {\n            \"id\": 26471,\n            \"name\": {\n                \"ar\": \"الخرج\",\n                \"en\": \"Al Kharj\"\n            }\n        },\n        {\n            \"id\": 26472,\n            \"name\": {\n                \"ar\": \"نجران\",\n                \"en\": \"Najrān\"\n            }\n        },\n        {\n            \"id\": 26473,\n            \"name\": {\n                \"ar\": \"ينبع\",\n                \"en\": \"Yanbu‘\"\n            }\n        },\n        {\n            \"id\": 26474,\n            \"name\": {\n                \"ar\": \"صفر الباعين\",\n                \"en\": \"Ḩafr al Bāţin\"\n            }\n        },\n        {\n            \"id\": 26475,\n            \"name\": {\n                \"ar\": \"الجبيل\",\n                \"en\": \"Al Jubayl\"\n            }\n        },\n        {\n            \"id\": 26476,\n            \"name\": {\n                \"ar\": \"أبها\",\n                \"en\": \"Abhā\"\n            }\n        },\n        {\n            \"id\": 26477,\n            \"name\": {\n                \"ar\": \"الخبر\",\n                \"en\": \"Al Khubar\"\n            }\n        },\n        {\n            \"id\": 26478,\n            \"name\": {\n                \"ar\": \"عرعر\",\n                \"en\": \"Arar\"\n            }\n        },\n        {\n            \"id\": 26479,\n            \"name\": {\n                \"ar\": \"الحوية\",\n                \"en\": \"Al Ḩawīyah\"\n            }\n        },\n        {\n            \"id\": 26480,\n            \"name\": {\n                \"ar\": \"الظهران\",\n                \"en\": \"Dhahran\"\n            }\n        },\n        {\n            \"id\": 26481,\n            \"name\": {\n                \"ar\": \"جازان\",\n                \"en\": \"Jāzān\"\n            }\n        },\n        {\n            \"id\": 26482,\n            \"name\": {\n                \"ar\": \"سكاكا\",\n                \"en\": \"Sakākā\"\n            }\n        },\n        {\n            \"id\": 26483,\n            \"name\": {\n                \"ar\": \"الباحة\",\n                \"en\": \"Al Bāḩah\"\n            }\n        },\n        {\n            \"id\": 26484,\n            \"name\": {\n                \"ar\": \"قلعة بوشة\",\n                \"en\": \"Qal‘at Bīshah\"\n            }\n        },\n        {\n            \"id\": 26485,\n            \"name\": {\n                \"ar\": \"رفحاء\",\n                \"en\": \"Rafḩā\"\n            }\n        },\n        {\n            \"id\": 26486,\n            \"name\": {\n                \"ar\": \"المجمعة\",\n                \"en\": \"Al Majma‘ah\"\n            }\n        },\n        {\n            \"id\": 26487,\n            \"name\": {\n                \"ar\": \"الدرعية\",\n                \"en\": \"Ad Dir‘īyah\"\n            }\n        },\n        {\n            \"id\": 26488,\n            \"name\": {\n                \"ar\": \"الوجه\",\n                \"en\": \"Al Wajh\"\n            }\n        },\n        {\n            \"id\": 26489,\n            \"name\": {\n                \"ar\": \"ليلى\",\n                \"en\": \"Laylá\"\n            }\n        },\n        {\n            \"id\": 26490,\n            \"name\": {\n                \"ar\": \"السليل\",\n                \"en\": \"As Sulayyil\"\n            }\n        },\n        {\n            \"id\": 26491,\n            \"name\": {\n                \"ar\": \"دومة الجندل\",\n                \"en\": \"Dawmat al Jandal\"\n            }\n        },\n        {\n            \"id\": 26492,\n            \"name\": {\n                \"ar\": \"الكيلبية\",\n                \"en\": \"Al Kilābīyah\"\n            }\n        },\n        {\n            \"id\": 26493,\n            \"name\": {\n                \"ar\": \"سرما\",\n                \"en\": \"Ḑurumā\"\n            }\n        },\n        {\n            \"id\": 26494,\n            \"name\": {\n                \"ar\": \"جبة\",\n                \"en\": \"Jubbah\"\n            }\n        },\n        {\n            \"id\": 26495,\n            \"name\": {\n                \"ar\": \"القريات\",\n                \"en\": \"Al Qurayyāt\"\n            }\n        },\n        {\n            \"id\": 26496,\n            \"name\": {\n                \"ar\": \"القويعية\",\n                \"en\": \"Al Quway‘īyah\"\n            }\n        },\n        {\n            \"id\": 26497,\n            \"name\": {\n                \"ar\": \"نجان\",\n                \"en\": \"Na‘jān\"\n            }\n        },\n        {\n            \"id\": 26498,\n            \"name\": {\n                \"ar\": \"القنفذة\",\n                \"en\": \"Al Qunfudhah\"\n            }\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.test/public/api/v1/cities?country=195&page=1\",\n        \"last\": \"https://ahad.test/public/api/v1/cities?country=195&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.test/public/api/v1/cities?country=195&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.test/public/api/v1/cities\",\n        \"per_page\": 100,\n        \"to\": 42,\n        \"total\": 42\n    }\n}"},{"id":"ca9e8d1c-7246-4266-b9a5-01bef6359522","name":"Filter by name","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/public/api/v1/cities?name=Riyadh","host":["{{url}}"],"path":["public","api","v1","cities"],"query":[{"key":"country","value":"195","type":"text","disabled":true},{"key":"name","value":"Riyadh","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.25.4"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.3.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 26 Jan 2025 10:33:38 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 26457,\n            \"name\": {\n                \"ar\": \"الرياض\",\n                \"en\": \"Riyadh\"\n            }\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://ahad.test/public/api/v1/cities?name=Riyadh&page=1\",\n        \"last\": \"https://ahad.test/public/api/v1/cities?name=Riyadh&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://ahad.test/public/api/v1/cities?name=Riyadh&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://ahad.test/public/api/v1/cities\",\n        \"per_page\": 100,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"},{"id":"475ebf01-997c-4c72-b195-dfe72eb9655e","name":"List of cities","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.ahadtest.com/public/api/v1/cities?name=Riyadh","protocol":"https","host":["api","ahadtest","com"],"path":["public","api","v1","cities"],"query":[{"key":"country","value":"195","type":"text","disabled":true},{"key":"name","value":"Riyadh"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.27.0"},{"key":"Date","value":"Sun, 26 Jan 2025 14:12:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"PHP/8.0.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Encoding","value":"gzip"},{"key":"Strict-Transport-Security","value":"max-age=31536000"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"27097\",\n            \"name\": {\n                \"en\": \"Riyadh\",\n                \"ar\": \"الرياض\"\n            }\n        }\n    ],\n    \"links\": {\n        \"first\": \"https://api.ahadtest.com/public/api/v1/cities?name=Riyadh&page=1\",\n        \"last\": \"https://api.ahadtest.com/public/api/v1/cities?name=Riyadh&page=1\",\n        \"prev\": null,\n        \"next\": null\n    },\n    \"meta\": {\n        \"current_page\": 1,\n        \"from\": 1,\n        \"last_page\": 1,\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"https://api.ahadtest.com/public/api/v1/cities?name=Riyadh&page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"path\": \"https://api.ahadtest.com/public/api/v1/cities\",\n        \"per_page\": 100,\n        \"to\": 1,\n        \"total\": 1\n    }\n}"}],"_postman_id":"3e58d941-e9d5-46cb-9f80-5ed32d01bad5"}],"id":"ec954e56-fb2a-428b-95ac-ad564f067b6b","_postman_id":"ec954e56-fb2a-428b-95ac-ad564f067b6b","description":""},{"name":"Roles","item":[{"name":"list","id":"f4347581-3667-47da-b072-b35d3cbd3c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{url}}/public/api/v1/:company/roles?per_page=30","urlObject":{"path":["public","api","v1",":company","roles"],"host":["{{url}}"],"query":[{"key":"per_page","value":"30"}],"variable":[{"id":"2e6d3fc8-7abb-4a7b-bb89-c9495d547f0f","type":"any","value":"1","key":"company"}]}},"response":[],"_postman_id":"f4347581-3667-47da-b072-b35d3cbd3c93"}],"id":"ed71a3b6-6d72-4bc3-bad6-9db5f19de3f6","_postman_id":"ed71a3b6-6d72-4bc3-bad6-9db5f19de3f6","description":""},{"name":"invitations","item":[{"name":"create","id":"b21434b1-93c9-42e8-b98e-c6eee7c3568b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"invitations\" : [\n        {\n            \"name\" : \"Noha el sayed\",\n            \"email\" : \"noha@mailinator.com\",\n            \"employment_date\" : \"1-1-2025\",\n            \"roles\" : []\n        },\n        {\n            \"name\" : \"Mahmoud el sayed\",\n            \"email\" : \"mahmoud@mailinator.com\",\n            \"employment_date\" : \"1-1-2025\",\n            \"roles\" : [6,69,70,71]\n        },\n        {\n            \"name\" : \"Moustafa el sayed\",\n            \"email\" : \"moustafa@mailinator.com\",\n            \"employment_date\" : \"1-1-2025\",\n            \"roles\" : [910,911]\n        }\n    ],\n    \"msg\" : \"Welcome to Nahla testing invitaion through public APIs\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/public/api/v1/:company/invitations/create","urlObject":{"path":["public","api","v1",":company","invitations","create"],"host":["{{url}}"],"query":[],"variable":[{"id":"33091dc1-b979-478d-8d02-535cc8a4e640","type":"any","value":"2","key":"company"}]}},"response":[],"_postman_id":"b21434b1-93c9-42e8-b98e-c6eee7c3568b"}],"id":"74f0fb22-139b-4933-ba08-c1e0e7caa59b","_postman_id":"74f0fb22-139b-4933-ba08-c1e0e7caa59b","description":""}],"event":[{"listen":"prerequest","script":{"id":"83a057c0-3d4b-42ac-924f-4518a4d2eab2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2e282343-8f05-4abe-9cc5-2355af3df2c7","type":"text/javascript","exec":[""]}}],"variable":[{"key":"user_token","value":"","type":"string"},{"key":"url","value":"{{url}}"}]}