{"info":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","description":"<html><head></head><body><h2 id=\"welcome-to-the-alostazio-api-documentation\">Welcome to the <strong>alostaz.io API Documentation</strong></h2>\n<p>The <strong>alostaz.io API</strong> provides full access to all the features and capabilities available in our platform. It allows seamless integration and automation of core functionalities within your own applications and systems.</p>\n<p><video src=\"https://youtube.com/embed/5dSf2ZmO6Yk\" width=\"636\" height=\"372\"></video></p>\n<hr>\n<h3 id=\"authentication-and-required-headers\">Authentication and Required Headers</h3>\n<p>Before making requests to the API, please ensure that all required headers are included.<br>These headers are automatically handled in our Postman collection through pre-request scripts (some utilize environment variables).</p>\n<p><strong>Required Headers:</strong></p>\n<ul>\n<li><p><code>Accept</code>: <code>application/json</code></p>\n</li>\n<li><p><code>Content-Type</code>: <code>application/json</code></p>\n</li>\n<li><p><code>X-Branch-Id</code>: <em>(Branch identifier for the request)</em></p>\n</li>\n<li><p><code>X-Locale</code>: <code>en</code> or <code>ar</code> <em>(Language preference)</em></p>\n</li>\n<li><p><code>X-API-Version</code>: <em>(Specify the API version to use)</em></p>\n</li>\n</ul>\n<p>In addition, an <strong>Authorization</strong> header with a <strong>Bearer token</strong> must be included in every request.</p>\n<hr>\n<h3 id=\"authentication-token\">Authentication Token</h3>\n<p>To obtain an access token:</p>\n<ol>\n<li><p>Navigate to <strong>Settings → API</strong> in your dashboard.</p>\n</li>\n<li><p>Create a new <strong>API Client</strong>.</p>\n</li>\n<li><p>After creating the client, you will receive:</p>\n<ul>\n<li><p>A <strong>Bearer token</strong> for authorization.</p>\n</li>\n<li><p>The <strong>API Base URL</strong>, which you’ll use for all requests.</p>\n</li>\n</ul>\n</li>\n</ol>\n<p>Use these credentials to authenticate and interact with the <strong>alostaz.io API</strong> securely.</p>\n<hr>\n<h3 id=\"deprecation-note\">Deprecation Note</h3>\n<p>We plan to remove <strong>deprecated API features and components</strong> after <strong>3 months</strong> only.<br>Please monitor your <strong>registered email</strong> for deprecation notices and migration instructions.</p>\n<hr>\n<h3 id=\"support\">Support</h3>\n<p>For <strong>API Support</strong>, please contact our development team at:<br>📧 <a href=\"https://mailto:dev@alostaz.io\"><b>dev@alostaz.io</b></a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"49203251","collectionId":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","publishedId":"2sB3QMLUUo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4F46E5"},"publishDate":"2025-10-14T12:36:52.000Z"},"item":[{"name":"branches","item":[{"name":"Index","id":"f619acac-4ed7-414c-a4f4-c23df90f1908","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/branches","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["branches"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f619acac-4ed7-414c-a4f4-c23df90f1908"},{"name":"Create","id":"2f2d7cdc-de37-485a-b6cb-8ec4252d3128","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"فرع الرياض الرئيسي\",\n    \"partner_list_id\": 1,\n    \"business_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"/branches","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"register\"><code>register</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"address_line_1\"><code>address_line_1</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"address_line_2\"><code>address_line_2</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"district\"><code>district</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"city\"><code>city</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"state\"><code>state</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"postal_code\"><code>postal_code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"country\"><code>country</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Length: 2 (ISO 3166-1 alpha-2)</li>\n<li>Must be uppercase letters</li>\n</ul>\n<h4 id=\"partner_list_id\"><code>partner_list_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>partner_lists.id</code></li>\n</ul>\n<h4 id=\"business_id\"><code>business_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>businesses.id</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["branches"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2f2d7cdc-de37-485a-b6cb-8ec4252d3128"},{"name":"View","id":"8c0f2ba6-98d1-45ec-b657-268fb8f263c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/branches/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["branches",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"8c0f2ba6-98d1-45ec-b657-268fb8f263c4"},{"name":"Update","id":"172b12e6-ea07-41f8-a0cb-e3dc842f0995","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"فرع جدة الشمالي\"\n}","options":{"raw":{"language":"json"}}},"url":"/branches/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"register\"><code>register</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"address_line_1\"><code>address_line_1</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"address_line_2\"><code>address_line_2</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"district\"><code>district</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"city\"><code>city</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"state\"><code>state</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"postal_code\"><code>postal_code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"country\"><code>country</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Length: 2 (ISO 3166-1 alpha-2)</li>\n<li>Must be uppercase letters</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["branches",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"172b12e6-ea07-41f8-a0cb-e3dc842f0995"},{"name":"Delete","id":"b57bfff3-2eb9-4e17-9f25-00204315a348","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/branches/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["branches",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"b57bfff3-2eb9-4e17-9f25-00204315a348"}],"id":"cb2a66be-f2ce-4af1-bda5-3d1044c7b05f","_postman_id":"cb2a66be-f2ce-4af1-bda5-3d1044c7b05f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"businesses","item":[{"name":"Index","id":"742f9e57-7cec-4068-80a8-b1526ccce2a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/businesses","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["businesses"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"742f9e57-7cec-4068-80a8-b1526ccce2a0"},{"name":"Create","id":"f7bdc781-cc8c-4ada-b295-b209eae6c91f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"النشاط التجاري\"\n}","options":{"raw":{"language":"json"}}},"url":"/businesses","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["businesses"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f7bdc781-cc8c-4ada-b295-b209eae6c91f"},{"name":"View","id":"9a40965f-b3df-4501-a197-f417bf5dfaf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/businesses/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["businesses",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"9a40965f-b3df-4501-a197-f417bf5dfaf2"},{"name":"Update","id":"3a310f54-f2bc-4f46-994b-2c570cb5a53d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"النشاط الخيري\"\n}","options":{"raw":{"language":"json"}}},"url":"/businesses/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["businesses",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"3a310f54-f2bc-4f46-994b-2c570cb5a53d"},{"name":"Delete","id":"123d6714-a788-4594-8bd3-e6512f4d98d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/businesses/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["businesses",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"123d6714-a788-4594-8bd3-e6512f4d98d3"}],"id":"6696ce8a-839e-4605-a059-ac30c24d8b02","_postman_id":"6696ce8a-839e-4605-a059-ac30c24d8b02","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"closed-accounting-periods","item":[{"name":"Index","id":"1a2e00ec-937b-4d33-8878-c36f32a4c959","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/closed-accounting-periods","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["closed-accounting-periods"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1a2e00ec-937b-4d33-8878-c36f32a4c959"},{"name":"Create","id":"d8631b42-f996-4f56-8bbb-8db0ba110867","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Q1 2026\",\n    \"date\": \"2026-03-31\",\n    \"creates_journal_entry\": 1\n}","options":{"raw":{"language":"json"}}},"url":"/closed-accounting-periods","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: <code>Y-m-d</code></li>\n</ul>\n<h4 id=\"creates_journal_entry\"><code>creates_journal_entry</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["closed-accounting-periods"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d8631b42-f996-4f56-8bbb-8db0ba110867"},{"name":"View","id":"57d835c5-cf12-4019-825e-0822fe5ac567","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/closed-accounting-periods/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["closed-accounting-periods",":id"],"host":[""],"query":[],"variable":[{"id":"5d12ae09-5b9a-46fa-ac0e-ba3f2210ae5e","type":"any","key":"id"}]}},"response":[],"_postman_id":"57d835c5-cf12-4019-825e-0822fe5ac567"},{"name":"Update","id":"39916973-ff47-4ec3-9978-75312dfbcaae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Q1 2026 (Closed)\",\n    \"date\": \"2026-03-31\",\n    \"creates_journal_entry\": 0\n}","options":{"raw":{"language":"json"}}},"url":"/closed-accounting-periods/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: <code>Y-m-d</code></li>\n</ul>\n<h4 id=\"creates_journal_entry\"><code>creates_journal_entry</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["closed-accounting-periods",":id"],"host":[""],"query":[],"variable":[{"id":"d9ecfe54-ae55-4845-9d94-c4706783be21","type":"any","key":"id"}]}},"response":[],"_postman_id":"39916973-ff47-4ec3-9978-75312dfbcaae"},{"name":"Delete","id":"ae2f75ac-c6d7-41f6-a2d4-295b8d4ee751","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/closed-accounting-periods/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["closed-accounting-periods",":id"],"host":[""],"query":[],"variable":[{"id":"1eb93db3-7d74-4e67-b4e7-d343aad37934","type":"any","key":"id"}]}},"response":[],"_postman_id":"ae2f75ac-c6d7-41f6-a2d4-295b8d4ee751"}],"id":"1e7b3ec3-6150-472d-96bf-f5d64affe40f","_postman_id":"1e7b3ec3-6150-472d-96bf-f5d64affe40f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"document-template-designs","item":[{"name":"Index","id":"8d1364b9-9300-46d4-8e41-73ada38ac8dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/document-template-designs","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-template-designs"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter designs belonging to templates with this type. Allowed values: general, invoice, product.</p>\n","type":"text/plain"},"key":"type","value":""}],"variable":[]}},"response":[],"_postman_id":"8d1364b9-9300-46d4-8e41-73ada38ac8dd"},{"name":"Create","id":"4997dfbe-23d1-4237-ac48-275ad5f9c9fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/document-template-designs","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"document_template_id\"><code>document_template_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>document_templates.id</code></li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"settings\"><code>settings</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Holds design-specific configuration values</li>\n</ul>\n<h4 id=\"logo\"><code>logo</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"left_signature_image-middle_signature_image-right_signature_image\"><code>left_signature_image</code>, <code>middle_signature_image</code>, <code>right_signature_image</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>object</code></li>\n<li>Each uses the same properties as <code>logo</code></li>\n</ul>\n<h4 id=\"version\"><code>version</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-template-designs"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4997dfbe-23d1-4237-ac48-275ad5f9c9fc"},{"name":"View","id":"df0ee6d3-abc0-451e-9373-2f69f7a5133d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/document-template-designs/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-template-designs",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"df0ee6d3-abc0-451e-9373-2f69f7a5133d"},{"name":"Update","id":"108dcd7e-b213-44b0-b66c-f6043978bdfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/document-template-designs/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"settings\"><code>settings</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Holds design-specific configuration values</li>\n</ul>\n<h4 id=\"logo\"><code>logo</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"left_signature_image-middle_signature_image-right_signature_image\"><code>left_signature_image</code>, <code>middle_signature_image</code>, <code>right_signature_image</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>object</code></li>\n<li>Each uses the same properties as <code>logo</code></li>\n</ul>\n<h4 id=\"version\"><code>version</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-template-designs",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"108dcd7e-b213-44b0-b66c-f6043978bdfb"},{"name":"Delete","id":"eb9917d3-c48a-4b14-9870-3cd4a6cc59e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/document-template-designs/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-template-designs",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"eb9917d3-c48a-4b14-9870-3cd4a6cc59e7"}],"id":"dd7803b6-a8d0-4547-98e7-e84b3bda5901","_postman_id":"dd7803b6-a8d0-4547-98e7-e84b3bda5901","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"document-templates","item":[{"name":"Index","id":"16e5af1c-49fc-4dae-a4af-4a52f9547bc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/document-templates","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-templates"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter templates by type. Allowed values: general, invoice, product.</p>\n","type":"text/plain"},"key":"type","value":""}],"variable":[]}},"response":[],"_postman_id":"16e5af1c-49fc-4dae-a4af-4a52f9547bc9"},{"name":"View","id":"1ff5e016-4076-461b-9b0e-2d8d5c539059","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/document-templates/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["document-templates",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"1ff5e016-4076-461b-9b0e-2d8d5c539059"}],"id":"c5ef16d0-af2b-4f60-9a6d-18f795e382de","_postman_id":"c5ef16d0-af2b-4f60-9a6d-18f795e382de","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"exports","item":[{"name":"partners","id":"dda2930d-a696-4a26-8820-a19650d9391b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[]"},"url":"/exports/partners","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["exports","partners"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"dda2930d-a696-4a26-8820-a19650d9391b"},{"name":"products","id":"8e13b0c3-303d-41ad-b15a-cae82979f867","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[]"},"url":"/exports/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["exports","products"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"8e13b0c3-303d-41ad-b15a-cae82979f867"}],"id":"504e7292-9334-47a1-bb0a-8190ed72c164","_postman_id":"504e7292-9334-47a1-bb0a-8190ed72c164","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"helpers","item":[{"name":"zatca","item":[{"name":"onboard","id":"bede3df8-191a-4ad2-92fb-f272cf4b0af0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"environment\": \"environment sample value\",\n    \"csr_info\": [],\n    \"csr_info.uid\": \"csr_info.uid sample value\",\n    \"csr_info.organization_name\": \"csr_info.organization_name sample value\",\n    \"csr_info.organization_unit_name\": \"csr_info.organization_unit_name sample value\",\n    \"csr_info.registered_address\": \"csr_info.registered_address sample value\",\n    \"csr_info.business_category\": \"csr_info.business_category sample value\",\n    \"otps\": []\n}"},"url":"/helpers/zatca/onboard","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"environment\"><code>environment</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"csr_info\"><code>csr_info</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n</ul>\n<h4 id=\"csr_infouid\"><code>csr_info.uid</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"csr_infoorganization_name\"><code>csr_info.organization_name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"csr_infoorganization_unit_name\"><code>csr_info.organization_unit_name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"csr_inforegistered_address\"><code>csr_info.registered_address</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 64</li>\n</ul>\n<h4 id=\"csr_infobusiness_category\"><code>csr_info.business_category</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 64</li>\n</ul>\n<h4 id=\"otps\"><code>otps</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","zatca","onboard"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"bede3df8-191a-4ad2-92fb-f272cf4b0af0"},{"name":"submit","id":"fc0c4912-284f-43b4-ac80-c2b82f244bc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoice_id\": \"invoice_id sample value\"\n}"},"url":"/helpers/zatca/submit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","zatca","submit"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"fc0c4912-284f-43b4-ac80-c2b82f244bc6"}],"id":"12c39b5f-dade-4503-91bf-72f7cba2c711","_postman_id":"12c39b5f-dade-4503-91bf-72f7cba2c711","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"auto-settle-invoices","id":"4fafe935-e1de-40fc-9d4c-b611ce57b93c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"partner_id\": \"partner_id sample value\"\n}"},"url":"/helpers/auto-settle-invoices","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","auto-settle-invoices"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"4fafe935-e1de-40fc-9d4c-b611ce57b93c"},{"name":"document-template-design-default-settings","id":"1689af6f-b601-4166-9c22-d8202bddaf3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/helpers/document-template-design-default-settings","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","document-template-design-default-settings"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1689af6f-b601-4166-9c22-d8202bddaf3a"},{"name":"export-excel","id":"59779bae-4c54-4f28-bd74-0ad004780ff1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": [],\n    \"filename\": \"filename sample value\",\n    \"options\": [],\n    \"options.is_rtl\": true,\n    \"options.column_formats\": [],\n    \"options.styles\": []\n}"},"url":"/helpers/export-excel","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","export-excel"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"59779bae-4c54-4f28-bd74-0ad004780ff1"},{"name":"import-excel","id":"fd6b98d4-4b51-4ab8-926b-0fc411fd6579","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"file\": \"file sample value\"\n}"},"url":"/helpers/import-excel","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","import-excel"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"fd6b98d4-4b51-4ab8-926b-0fc411fd6579"},{"name":"inventory","id":"2e561cde-0710-4013-94a2-4ee29d2593e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/helpers/inventory","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","inventory"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2e561cde-0710-4013-94a2-4ee29d2593e7"},{"name":"share-invoice","id":"b564bd7a-1926-4475-ad05-18fd6a4af742","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoice_id\": 1,\n    \"document_template_design_id\": 1,\n    \"method\": \"link\"\n}","options":{"raw":{"language":"json"}}},"url":"/helpers/share/invoice","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"invoice_id\"><code>invoice_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>invoices.id</code></li>\n</ul>\n<h4 id=\"document_template_design_id\"><code>document_template_design_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>document_template_designs.id</code> (invoice type)</li>\n</ul>\n<h4 id=\"method\"><code>method</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Allowed values: <code>link</code>, <code>email</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["helpers","share","invoice"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b564bd7a-1926-4475-ad05-18fd6a4af742"}],"id":"86e5e829-8d54-40d3-9187-bd8a534fe647","_postman_id":"86e5e829-8d54-40d3-9187-bd8a534fe647","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"import-tables","item":[{"name":"Create","id":"164ae9c0-e40d-44f6-81ad-b9bec303e51f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"purpose","value":"","type":"text","uuid":"543b1b93-eb75-4ed6-a697-9c65e9439399"},{"key":"file","type":"file","uuid":"9f00b592-87b2-4055-be03-071fff2d8823","value":null}]},"url":"/import-tables","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"purpose\"><code>purpose</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"file\"><code>file</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>file</code></li>\n<li>Allowed MIME types: xlsx, xls, csv</li>\n<li>Maximum size: 16 MB</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["import-tables"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"164ae9c0-e40d-44f6-81ad-b9bec303e51f"}],"id":"9bf55a84-d080-4aba-9e71-4ab8232e76be","_postman_id":"9bf55a84-d080-4aba-9e71-4ab8232e76be","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"imports","item":[{"name":"partners","id":"22898363-6c19-4ce4-a854-7ab2588b36ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"import_table_id\": \"import_table_id sample value\",\n    \"type\": \"type sample value\",\n    \"mapping\": [],\n    \"mapping.key\": [],\n    \"mapping.column\": [],\n    \"update\": [],\n    \"update.enabled\": false,\n    \"update.unique_by\": \"update.unique_by sample value\"\n}"},"url":"/imports/partners","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["imports","partners"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"22898363-6c19-4ce4-a854-7ab2588b36ca"},{"name":"products","id":"e93b5500-f14a-4e37-867c-3a479ab0bc91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"import_table_id\": \"import_table_id sample value\",\n    \"mapping\": [],\n    \"mapping.key\": [],\n    \"mapping.column\": [],\n    \"update\": [],\n    \"update.enabled\": false,\n    \"update.unique_by\": \"update.unique_by sample value\"\n}"},"url":"/imports/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["imports","products"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"e93b5500-f14a-4e37-867c-3a479ab0bc91"}],"id":"5ff5f8fa-1fed-4e98-893b-6a471de492b5","_postman_id":"5ff5f8fa-1fed-4e98-893b-6a471de492b5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"invoice-settlements","item":[{"name":"Index","id":"5d518b2d-1997-47cc-ba62-61700a7ab66b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/invoice-settlements","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoice-settlements"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Required. Return settlements belonging to this <code>invoices.id</code>.</p>\n","type":"text/plain"},"key":"invoice_id","value":""}],"variable":[]}},"response":[],"_postman_id":"5d518b2d-1997-47cc-ba62-61700a7ab66b"},{"name":"Create","id":"dc4ced56-d4e3-445d-b23b-ba093d50f4ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoice_id\": 1201,\n    \"amount\": 18500,\n    \"date\": \"2024-10-15\"\n}","options":{"raw":{"language":"json"}}},"url":"/invoice-settlements","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"invoice_id\"><code>invoice_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>invoices.id</code> with variant <code>standard</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n<li>Must belong to a branch accessible to the authenticated user</li>\n</ul>\n<h4 id=\"amount\"><code>amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoice-settlements"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"dc4ced56-d4e3-445d-b23b-ba093d50f4ab"},{"name":"View","id":"d1cace7e-f846-44e7-b4fa-a93e48b87272","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/invoice-settlements/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoice-settlements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"d1cace7e-f846-44e7-b4fa-a93e48b87272"},{"name":"Update","id":"0a8b8e7f-8989-4803-85e5-b3281ce4b7e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 19000\n}","options":{"raw":{"language":"json"}}},"url":"/invoice-settlements/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n<li>Required when the settlement currently targets a journal account</li>\n</ul>\n<h4 id=\"amount\"><code>amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoice-settlements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"0a8b8e7f-8989-4803-85e5-b3281ce4b7e5"},{"name":"Delete","id":"a09b95a4-3cec-49d0-a7e3-931bf9e0a4ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/invoice-settlements/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoice-settlements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"a09b95a4-3cec-49d0-a7e3-931bf9e0a4ff"}],"id":"81dac3e8-d457-433b-9a0c-d12d41f38ce5","_postman_id":"81dac3e8-d457-433b-9a0c-d12d41f38ce5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"invoices","item":[{"name":"Index","id":"f96e8348-0d01-4348-9d64-4796c8859d8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/invoices","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoices"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by invoice variant. Allowed values: standard, order.</p>\n","type":"text/plain"},"key":"variant","value":""},{"disabled":true,"description":{"content":"<p>Filter by invoice status. Allowed values: draft, issued.</p>\n","type":"text/plain"},"key":"status","value":""},{"disabled":true,"description":{"content":"<p>Filter by invoice nature. Allowed values: sale, purchase.</p>\n","type":"text/plain"},"key":"nature","value":""},{"disabled":true,"description":{"content":"<p>Filter by invoice type. Allowed values: invoice, credit_note.</p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>Filter by invoice code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Filter by partner identifier.</p>\n","type":"text/plain"},"key":"partner_id","value":""},{"disabled":true,"description":{"content":"<p>Filter by partner order code.</p>\n","type":"text/plain"},"key":"partner_order_code","value":""},{"disabled":true,"description":{"content":"<p>Filter invoices that contain the given product in their line items.</p>\n","type":"text/plain"},"key":"product_id","value":""},{"disabled":true,"description":{"content":"<p>Return invoices created at or after this ISO 8601 date/time.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return invoices created at or before this ISO 8601 date/time.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Return invoices with issue_date on or after this ISO 8601 date/time.</p>\n","type":"text/plain"},"key":"start_issue_date","value":""},{"disabled":true,"description":{"content":"<p>Return invoices with issue_date on or before this ISO 8601 date/time.</p>\n","type":"text/plain"},"key":"end_issue_date","value":""},{"disabled":true,"description":{"content":"<p>Return invoices with due_date on or after this ISO 8601 date/time.</p>\n","type":"text/plain"},"key":"start_due_date","value":""},{"disabled":true,"description":{"content":"<p>Return invoices with due_date on or before this ISO 8601 date/time.</p>\n","type":"text/plain"},"key":"end_due_date","value":""},{"disabled":true,"description":{"content":"<p>Search invoices whose notes contain this text.</p>\n","type":"text/plain"},"key":"notes","value":""},{"disabled":true,"description":{"content":"<p>Search invoices whose line item descriptions contain this text.</p>\n","type":"text/plain"},"key":"line_item_description","value":""},{"disabled":true,"description":{"content":"<p>Filter by whether payments are marked as full (1) or not (0).</p>\n","type":"text/plain"},"key":"payments_is_full","value":""},{"disabled":true,"description":{"content":"<p>Filter by comma-separated payment statuses. Allowed values: unpaid, partially_paid, paid, partially_settled, settled.</p>\n","type":"text/plain"},"key":"payments_status","value":""},{"disabled":true,"description":{"content":"<p>Filter by stock movements status. Allowed values: pending, partially_processed, processed.</p>\n","type":"text/plain"},"key":"stock_movements_status","value":""},{"disabled":true,"description":{"content":"<p>Filter by reverse status. Allowed values: unreversed, partially_reversed, reversed.</p>\n","type":"text/plain"},"key":"reverse_status","value":""},{"disabled":true,"description":{"content":"<p>Column used to sort results. Allowed values: id, issue_date, due_date.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc.</p>\n","type":"text/plain"},"key":"order","value":""},{"disabled":true,"description":{"content":"<p>Number of items per page (max 100).</p>\n","type":"text/plain"},"key":"per_page","value":""}],"variable":[]}},"response":[],"_postman_id":"f96e8348-0d01-4348-9d64-4796c8859d8b"},{"name":"Create","id":"f94d9568-ebfa-4c47-92a1-473bf8513402","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"variant\": \"standard\",\n    \"nature\": \"sale\",\n    \"type\": \"invoice\",\n    \"status\": \"issued\",\n    \"issue_date\": \"2025-10-13T11:08:11.492Z\",\n    \"due_date\": \"2025-10-13T11:08:11.492Z\",\n    \"partner_id\": 1,\n    \"line_items\": [\n        {\n            \"product_id\": 1,\n            \"storehouse_id\": 1,\n            \"unit_quantity\": 1000,\n            \"unit_price\": 4800,\n            \"unit_content\": 1,\n            \"taxes\": [\n                {\n                    \"id\": 1\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/invoices","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n<h4 id=\"variant\"><code>variant</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Enum: <code>standard</code>, <code>order</code></p>\n</li>\n</ul>\n<h4 id=\"nature\"><code>nature</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Enum: <code>sale</code>, <code>purchase</code></p>\n</li>\n</ul>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Enum: <code>invoice</code>, <code>credit_note</code></p>\n</li>\n</ul>\n<h4 id=\"status\"><code>status</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Enum: <code>draft</code>, <code>issued</code></p>\n</li>\n</ul>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n<h4 id=\"partner_id\"><code>partner_id</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n<h4 id=\"partner_order_code\"><code>partner_order_code</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n<h4 id=\"issue_date\"><code>issue_date</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Format: date-time</p>\n</li>\n</ul>\n<h4 id=\"due_date\"><code>due_date</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Format: date-time</p>\n</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n<h4 id=\"discount_amount\"><code>discount_amount</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n<h4 id=\"discount_percentage\"><code>discount_percentage</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>number</code> (0–100)</p>\n</li>\n</ul>\n<h4 id=\"notes\"><code>notes</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n<h4 id=\"responsible_user_id\"><code>responsible_user_id</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code> (max 5)</p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>secret</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"line_items\"><code>line_items</code></h4>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>product_id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>storehouse_id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>description</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_quantity</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_price</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_name</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_content</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>discount_amount</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n</li>\n<li><p><code>discount_percentage</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>number</code> (0–100)</p>\n</li>\n</ul>\n</li>\n<li><p><code>taxes</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><code>id</code><ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"journal_analytic_accounts\"><code>journal_analytic_accounts</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>pivot</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>object</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><code>percentage</code><ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"payments\"><code>payments</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>amount</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>treasury_id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"settlements\"><code>settlements</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>amount</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>journal_account_id</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoices"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f94d9568-ebfa-4c47-92a1-473bf8513402"},{"name":"View","id":"c392eef2-c3a1-4268-9697-b71951540fc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/invoices/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoices",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"c392eef2-c3a1-4268-9697-b71951540fc2"},{"name":"Document","id":"836008dc-47cb-48dc-aed1-b7a57ac55ff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/invoices/:id/document?document_template_design_id=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoices",":id","document"],"host":[""],"query":[{"description":{"content":"<p>Document template design id (Required)</p>\n","type":"text/plain"},"key":"document_template_design_id","value":""}],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"836008dc-47cb-48dc-aed1-b7a57ac55ff4"},{"name":"Update","id":"eefe38a6-8afa-41a0-85d8-dc27a5f24e4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"due_date\": \"2025-10-27T11:08:11.492Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/invoices/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n<h4 id=\"status\"><code>status</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Enum: <code>draft</code>, <code>issued</code></p>\n</li>\n</ul>\n<h4 id=\"partner_order_code\"><code>partner_order_code</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n<h4 id=\"issue_date\"><code>issue_date</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Format: date-time</p>\n</li>\n</ul>\n<h4 id=\"due_date\"><code>due_date</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n<li><p>Format: date-time</p>\n</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n<h4 id=\"discount_amount\"><code>discount_amount</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n<h4 id=\"discount_percentage\"><code>discount_percentage</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>number</code> (0-100)</p>\n</li>\n</ul>\n<h4 id=\"notes\"><code>notes</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n<h4 id=\"responsible_user_id\"><code>responsible_user_id</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code> (max 5)</p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>secret</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"line_items\"><code>line_items</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>product_id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>storehouse_id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>description</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_quantity</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_price</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_name</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>string</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>unit_content</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n</li>\n<li><p><code>discount_amount</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>integer</code> (minimum 1)</p>\n</li>\n</ul>\n</li>\n<li><p><code>discount_percentage</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>number</code> (0-100)</p>\n</li>\n</ul>\n</li>\n<li><p><code>taxes</code></p>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"journal_analytic_accounts\"><code>journal_analytic_accounts</code></h4>\n<ul>\n<li><p>Optional</p>\n</li>\n<li><p>Type: <code>array</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>id</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>pivot</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>object</code></p>\n</li>\n<li><p>Item Properties:</p>\n<ul>\n<li><p><code>percentage</code></p>\n<ul>\n<li><p>Required</p>\n</li>\n<li><p>Type: <code>integer</code></p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoices",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"eefe38a6-8afa-41a0-85d8-dc27a5f24e4d"},{"name":"Delete","id":"cf1b0399-94c4-4fdf-b635-6e9a7f42af1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/invoices/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["invoices",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"cf1b0399-94c4-4fdf-b635-6e9a7f42af1f"}],"id":"e5d856f0-794f-4a94-906e-c4d9258b7f24","_postman_id":"e5d856f0-794f-4a94-906e-c4d9258b7f24","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"journal-accounts","item":[{"name":"Index","id":"dc6e2a42-7b31-45e9-8e38-24d4086b7c99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/journal-accounts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-accounts"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Return changes since this ISO 8601 date/time checkpoint.</p>\n","type":"text/plain"},"key":"checkpoint","value":""}],"variable":[]}},"response":[],"_postman_id":"dc6e2a42-7b31-45e9-8e38-24d4086b7c99"},{"name":"Create","id":"99a0b468-0e25-4b99-8c9f-3291462c00d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"sub\",\n    \"name\": \"مصروفات الرواتب\",\n    \"code\": \"5200\",\n    \"parent_id\": 3\n}","options":{"raw":{"language":"json"}}},"url":"/journal-accounts","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>main</code>, <code>sub</code></li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across journal accounts</li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>main</code></li>\n</ul>\n<h4 id=\"journal_analytic_accounts\"><code>journal_analytic_accounts</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>sub</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>percentage</code><ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Range: <code>0.01</code> - <code>100</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Constraint: cumulative percentage per top-level analytic account must not exceed <code>100</code></li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference a branch accessible to the authenticated user</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-accounts"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"99a0b468-0e25-4b99-8c9f-3291462c00d1"},{"name":"View","id":"be3f7fd4-5583-45c0-9983-5ecbbe61ec76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/journal-accounts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-accounts",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"be3f7fd4-5583-45c0-9983-5ecbbe61ec76"},{"name":"Update","id":"34611a76-642e-41b5-bc19-e5340636720d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"مصروفات الرواتب السنوية\"\n}","options":{"raw":{"language":"json"}}},"url":"/journal-accounts/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across journal accounts (excluding the current account)</li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Optional when the account already has a parent; otherwise prohibited</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>main</code></li>\n<li>Cannot equal the current journal account id</li>\n</ul>\n<h4 id=\"journal_analytic_accounts\"><code>journal_analytic_accounts</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>sub</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>percentage</code><ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Range: <code>0.01</code> - <code>100</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Constraint: cumulative percentage per top-level analytic account must not exceed <code>100</code></li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference a branch accessible to the authenticated user</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-accounts",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"34611a76-642e-41b5-bc19-e5340636720d"},{"name":"Delete","id":"3e9ab96e-31af-457d-a463-c2469fca329c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/journal-accounts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-accounts",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"3e9ab96e-31af-457d-a463-c2469fca329c"}],"id":"34cdc90e-b696-43a2-819f-569d99f37c6c","_postman_id":"34cdc90e-b696-43a2-819f-569d99f37c6c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"journal-analytic-accounts","item":[{"name":"Index","id":"ded669e6-078e-410f-ad60-d1d290ae26ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/journal-analytic-accounts","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>main</code>, <code>sub</code></li>\n<li>Root accounts must use <code>main</code></li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Required when <code>type</code> is <code>sub</code></li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>main</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-analytic-accounts"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ded669e6-078e-410f-ad60-d1d290ae26ab"},{"name":"Create","id":"70ebaca2-c00f-4be7-a9f7-6229139aff96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"sub\",\n    \"name\": \"تكلفة الدعم الفني\",\n    \"parent_id\": 2\n}","options":{"raw":{"language":"json"}}},"url":"/journal-analytic-accounts","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>main</code>, <code>sub</code></li>\n<li>Root accounts must use <code>main</code></li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Required when <code>type</code> is <code>sub</code></li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>main</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-analytic-accounts"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"70ebaca2-c00f-4be7-a9f7-6229139aff96"},{"name":"View","id":"b815a1a3-e159-418f-93ed-747defc00d32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/journal-analytic-accounts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-analytic-accounts",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"b815a1a3-e159-418f-93ed-747defc00d32"},{"name":"Update","id":"8212f3ca-f839-4e38-b72e-8ca9ced572a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"تكلفة المبيعات\"\n}","options":{"raw":{"language":"json"}}},"url":"/journal-analytic-accounts/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>main</code></li>\n<li>Cannot equal the current analytic account id</li>\n<li>Required when the account already belongs to a parent</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-analytic-accounts",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"8212f3ca-f839-4e38-b72e-8ca9ced572a4"},{"name":"Delete","id":"edba086c-fc67-410d-8953-9b3e3efc1e63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/journal-analytic-accounts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-analytic-accounts",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"edba086c-fc67-410d-8953-9b3e3efc1e63"}],"id":"ae1efa3f-4b81-4fa5-8061-3c1610424cf8","_postman_id":"ae1efa3f-4b81-4fa5-8061-3c1610424cf8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"journal-entries","item":[{"name":"Index","id":"38263942-9983-4f3e-9554-278eccc277f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/journal-entries","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-entries"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter entries whose code contains this value.</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Search entries whose description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return entries that reference the given <code>journal_accounts.id</code> in one of their records.</p>\n","type":"text/plain"},"key":"journal_account_id","value":""},{"disabled":true,"description":{"content":"<p>Return entries dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return entries dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Sort field. Allowed values: id, date. Defaults to id.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc. Defaults to desc.</p>\n","type":"text/plain"},"key":"order","value":""},{"disabled":true,"description":{"content":"<p>Items per page (max 20). Defaults to 20.</p>\n","type":"text/plain"},"key":"per_page","value":""}],"variable":[]}},"response":[],"_postman_id":"38263942-9983-4f3e-9554-278eccc277f9"},{"name":"Create","id":"e59b8d25-ccf1-47f6-bdf2-dc33c56dbb6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"records\": [\n        {\n            \"journal_account_id\": 41,\n            \"type\": \"debit\",\n            \"value\": 3500\n        },\n        {\n            \"journal_account_id\": 18,\n            \"type\": \"credit\",\n            \"value\": 3500\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/journal-entries","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across journal entries</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>journal_account_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n<li>Must belong to a branch accessible to the authenticated user</li>\n</ul>\n</li>\n<li><code>type</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>debit</code>, <code>credit</code></li>\n</ul>\n</li>\n<li><code>value</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>description</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n<li><code>journal_analytic_accounts</code><ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>sub</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>percentage</code><ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Range: <code>0.01</code> - <code>100</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Constraint: the total percentage per top-level analytic account must not exceed <code>100</code></li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-entries"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"e59b8d25-ccf1-47f6-bdf2-dc33c56dbb6d"},{"name":"View","id":"e53c7a46-185d-4bda-887a-12d146c11abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/journal-entries/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-entries",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"e53c7a46-185d-4bda-887a-12d146c11abe"},{"name":"Update","id":"d7c3cf8a-49fb-41bf-9c2e-5924bf154400","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"تسوية نهاية الأسبوع\"\n}","options":{"raw":{"language":"json"}}},"url":"/journal-entries/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across journal entries (excluding the current entry)</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>journal_account_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n<li>Must belong to the branch associated with the journal entry</li>\n</ul>\n</li>\n<li><code>type</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>debit</code>, <code>credit</code></li>\n</ul>\n</li>\n<li><code>value</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>description</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n<li><code>journal_analytic_accounts</code><ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>sub</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>percentage</code><ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Range: <code>0.01</code> - <code>100</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Constraint: the total percentage per top-level analytic account must not exceed <code>100</code></li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-entries",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"d7c3cf8a-49fb-41bf-9c2e-5924bf154400"},{"name":"Delete","id":"79c85aee-88fc-4d8e-b169-7d6e79d89d16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/journal-entries/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["journal-entries",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"79c85aee-88fc-4d8e-b169-7d6e79d89d16"}],"id":"da30d5ad-f59f-4175-8748-036ac06ae4b6","_postman_id":"da30d5ad-f59f-4175-8748-036ac06ae4b6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"money-movement-requisitions","item":[{"name":"Index","id":"0d0bdc40-5917-403b-ba25-47b3470f52a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-movement-requisitions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movement-requisitions"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by requisition identifier.</p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>Return requisitions targeting the given <code>treasuries.id</code>.</p>\n","type":"text/plain"},"key":"treasury_id","value":""},{"disabled":true,"description":{"content":"<p>Set to <code>1</code> or <code>0</code> to filter by conflict flag.</p>\n","type":"text/plain"},"key":"has_conflict","value":""},{"disabled":true,"description":{"content":"<p>Return requisitions created on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return requisitions created on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""}],"variable":[]}},"response":[],"_postman_id":"0d0bdc40-5917-403b-ba25-47b3470f52a5"},{"name":"View","id":"ae816df8-c728-426e-8b77-6f76f74be682","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-movement-requisitions/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movement-requisitions",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"ae816df8-c728-426e-8b77-6f76f74be682"},{"name":"Update","id":"d9fe4396-1558-4e6a-95b9-964f7cb0f7e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"notes\": \"الموافقة بعد مراجعة المدير المالي\"\n}","options":{"raw":{"language":"json"}}},"url":"/money-movement-requisitions/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"approved_amount\"><code>approved_amount</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n<h4 id=\"has_conflict\"><code>has_conflict</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"notes\"><code>notes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>products.id</code></li>\n</ul>\n</li>\n<li><code>approved_unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>0</code></li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movement-requisitions",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"d9fe4396-1558-4e6a-95b9-964f7cb0f7e6"}],"id":"48cb76a0-5cc8-464d-a5ca-5698b08bb9f0","_postman_id":"48cb76a0-5cc8-464d-a5ca-5698b08bb9f0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"money-movements","item":[{"name":"Index","id":"49f3a535-3363-4a8d-9b2b-5b82ff96fb07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-movements","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movements"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by money movement code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Filter by money movement type. Allowed values: incoming, outgoing.</p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>Search movements whose description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return movements recorded against the given <code>treasuries.id</code>.</p>\n","type":"text/plain"},"key":"treasury_id","value":""},{"disabled":true,"description":{"content":"<p>Return movements dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return movements dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Set to <code>null</code> (string) to return only manual movements. Other values are reserved.</p>\n","type":"text/plain"},"key":"source_type","value":""},{"disabled":true,"description":{"content":"<p>Sort field. Allowed values: id, date. Defaults to id.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc. Defaults to desc.</p>\n","type":"text/plain"},"key":"order","value":""}],"variable":[]}},"response":[],"_postman_id":"49f3a535-3363-4a8d-9b2b-5b82ff96fb07"},{"name":"Create","id":"21165620-810f-4599-9ba0-2495ab796b4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"incoming\",\n    \"treasury_id\": 4,\n    \"requested_amount\": 12500,\n    \"date\": \"2024-09-05\"\n}","options":{"raw":{"language":"json"}}},"url":"/money-movements","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across money movements</li>\n</ul>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>incoming</code>, <code>outgoing</code></li>\n</ul>\n<h4 id=\"treasury_id\"><code>treasury_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>treasuries.id</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code></li>\n<li>Must belong to a branch accessible to the authenticated user</li>\n</ul>\n<h4 id=\"requested_amount\"><code>requested_amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"taxes\"><code>taxes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>taxes.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"journal_analytic_accounts\"><code>journal_analytic_accounts</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>sub</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>percentage</code><ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Range: <code>0.01</code> - <code>100</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Constraint: the total percentage per top-level analytic account must not exceed <code>100</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movements"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"21165620-810f-4599-9ba0-2495ab796b4b"},{"name":"View","id":"434b374b-b6f1-4277-a89a-698e338b0fb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-movements/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"434b374b-b6f1-4277-a89a-698e338b0fb8"},{"name":"Update","id":"6e05c8db-39e7-489d-97bc-654b30cb32b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"requested_amount\": 11800\n}","options":{"raw":{"language":"json"}}},"url":"/money-movements/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across money movements (excluding the current movement)</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code></li>\n<li>Must belong to the branch associated with this movement</li>\n</ul>\n<h4 id=\"requested_amount\"><code>requested_amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"taxes\"><code>taxes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>taxes.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"journal_analytic_accounts\"><code>journal_analytic_accounts</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_analytic_accounts.id</code> with type <code>sub</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>percentage</code><ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Range: <code>0.01</code> - <code>100</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li>Constraint: the total percentage per top-level analytic account must not exceed <code>100</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"6e05c8db-39e7-489d-97bc-654b30cb32b2"},{"name":"Delete","id":"17ac8462-4e94-4776-a767-9c50ffef8884","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/money-movements/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-movements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"17ac8462-4e94-4776-a767-9c50ffef8884"}],"id":"cb9d9e93-2c6e-4133-a12c-e1876486ff43","_postman_id":"cb9d9e93-2c6e-4133-a12c-e1876486ff43","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"money-transactions","item":[{"name":"Index","id":"b3d13409-65c6-4770-9b02-f1e9e9ee510d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-transactions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transactions"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by underlying money movement or transfer code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Search transactions whose source description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return transactions involving the given <code>treasuries.id</code> (as source or destination).</p>\n","type":"text/plain"},"key":"treasury_id","value":""},{"disabled":true,"description":{"content":"<p>Return transactions dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return transactions dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Filter by calculation status of the underlying record. Allowed values: pending, partially_processed, processed.</p>\n","type":"text/plain"},"key":"status","value":""},{"disabled":true,"description":{"content":"<p>Sort field. Allowed values: id, date. Defaults to id.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc. Defaults to desc.</p>\n","type":"text/plain"},"key":"order","value":""}],"variable":[]}},"response":[],"_postman_id":"b3d13409-65c6-4770-9b02-f1e9e9ee510d"},{"name":"View","id":"239db74d-6d54-4222-a9fd-a9f5d83a97ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-transactions/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transactions",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"239db74d-6d54-4222-a9fd-a9f5d83a97ec"}],"id":"0a27d05e-5c83-47c9-82ee-3d5224d48d95","_postman_id":"0a27d05e-5c83-47c9-82ee-3d5224d48d95","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"money-transfers","item":[{"name":"Index","id":"cda5d1db-3403-4508-a234-6cbd39bb6c58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-transfers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transfers"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by money transfer code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Search transfers whose description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return transfers where the given <code>treasuries.id</code> is either source or destination.</p>\n","type":"text/plain"},"key":"treasury_id","value":""},{"disabled":true,"description":{"content":"<p>Return transfers dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return transfers dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""}],"variable":[]}},"response":[],"_postman_id":"cda5d1db-3403-4508-a234-6cbd39bb6c58"},{"name":"Create","id":"a683c105-bd2b-49ff-ab81-9f55f8e372a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"source_treasury_id\": 3,\n    \"destination_treasury_id\": 6,\n    \"requested_amount\": 15000,\n    \"date\": \"2024-09-10\",\n    \"records\": [\n        {\n            \"product_id\": 21,\n            \"requested_unit_quantity\": 15,\n            \"unit_content\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/money-transfers","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across money transfers</li>\n</ul>\n<h4 id=\"source_treasury_id\"><code>source_treasury_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>treasuries.id</code></li>\n</ul>\n<h4 id=\"destination_treasury_id\"><code>destination_treasury_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>treasuries.id</code></li>\n<li>Must be different from <code>source_treasury_id</code></li>\n</ul>\n<h4 id=\"requested_amount\"><code>requested_amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transfers"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"a683c105-bd2b-49ff-ab81-9f55f8e372a6"},{"name":"View","id":"bd4b338e-bf40-4f3b-8156-842663ef2255","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/money-transfers/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transfers",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"bd4b338e-bf40-4f3b-8156-842663ef2255"},{"name":"Update","id":"37a0ca8e-a6d8-477c-a24b-71b4fc5c53e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"requested_amount\": 15250\n}","options":{"raw":{"language":"json"}}},"url":"/money-transfers/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across money transfers (excluding the current transfer)</li>\n</ul>\n<h4 id=\"requested_amount\"><code>requested_amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transfers",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"37a0ca8e-a6d8-477c-a24b-71b4fc5c53e6"},{"name":"Delete","id":"ca016410-981a-4809-95fb-58180f2a8b52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/money-transfers/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["money-transfers",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"ca016410-981a-4809-95fb-58180f2a8b52"}],"id":"1b441e28-c156-44ad-be8f-0657a32e2e3f","_postman_id":"1b441e28-c156-44ad-be8f-0657a32e2e3f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"partner-calculations","item":[{"name":"Index","id":"8defd014-646b-49de-8e27-370d836d8ddd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partner-calculations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-calculations"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"8defd014-646b-49de-8e27-370d836d8ddd"}],"id":"56d6bb50-da34-4b86-a39c-b20adb168ec7","_postman_id":"56d6bb50-da34-4b86-a39c-b20adb168ec7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"partner-lists","item":[{"name":"Index","id":"13ffe0ce-94a0-4c6b-827d-c603654136f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partner-lists","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-lists"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"13ffe0ce-94a0-4c6b-827d-c603654136f7"},{"name":"Create","id":"3ba196c7-ba2f-4159-9e95-ea20e8441522","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"قائمة عملاء فرع الرياض\"\n}","options":{"raw":{"language":"json"}}},"url":"/partner-lists","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-lists"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3ba196c7-ba2f-4159-9e95-ea20e8441522"},{"name":"View","id":"5e29bf18-4756-4a89-b1d6-d41b7f591e6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partner-lists/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-lists",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"5e29bf18-4756-4a89-b1d6-d41b7f591e6c"},{"name":"Update","id":"ad0cc826-7ec3-42d7-ad9f-a3afd1b96d0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"قائمة عملاء فرع جدة\"\n}","options":{"raw":{"language":"json"}}},"url":"/partner-lists/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-lists",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"ad0cc826-7ec3-42d7-ad9f-a3afd1b96d0a"},{"name":"Delete","id":"45facf2f-d8e0-4031-829d-73f3323e06e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/partner-lists/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-lists",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"45facf2f-d8e0-4031-829d-73f3323e06e8"}],"id":"dee59f75-3f63-4a92-b34e-8f1da1ce76e9","_postman_id":"dee59f75-3f63-4a92-b34e-8f1da1ce76e9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"partner-payments","item":[{"name":"Index","id":"0a313961-f701-49b3-9795-4296d1b86428","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partner-payments","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-payments"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Required when <code>partner_id</code> is omitted. Allowed values: supplier, client.</p>\n","type":"text/plain"},"key":"partner_type","value":""},{"disabled":true,"description":{"content":"<p>Required when <code>partner_type</code> is omitted. Must reference a partner accessible to the current branch.</p>\n","type":"text/plain"},"key":"partner_id","value":""},{"disabled":true,"description":{"content":"<p>Filter by payment identifier.</p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>Return payments linked to the given invoice.</p>\n","type":"text/plain"},"key":"invoice_id","value":""},{"disabled":true,"description":{"content":"<p>Filter by payment type. Allowed values: incoming, outgoing.</p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>Filter by treasury identifier.</p>\n","type":"text/plain"},"key":"treasury_id","value":""},{"disabled":true,"description":{"content":"<p>Return payments dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return payments dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Filter by linked money movement status. Allowed values: pending, partially_processed, processed.</p>\n","type":"text/plain"},"key":"money_movement_status","value":""},{"disabled":true,"description":{"content":"<p>Sort field. Allowed values: id, date. Defaults to id.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc. Defaults to desc.</p>\n","type":"text/plain"},"key":"order","value":""},{"disabled":true,"description":{"content":"<p>Items per page (max 20). Defaults to 20.</p>\n","type":"text/plain"},"key":"per_page","value":""}],"variable":[]}},"response":[],"_postman_id":"0a313961-f701-49b3-9795-4296d1b86428"},{"name":"Create","id":"f376797e-6ddc-4ce8-92cb-68ec72d1ded6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"partner_id\": 8,\n    \"treasury_id\": 4,\n    \"type\": \"incoming\",\n    \"amount\": 2750,\n    \"date\": \"2024-08-20\"\n}","options":{"raw":{"language":"json"}}},"url":"/partner-payments","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"partner_id\"><code>partner_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference a partner accessible to the current branch</li>\n</ul>\n<h4 id=\"treasury_id\"><code>treasury_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>treasuries.id</code></li>\n</ul>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>incoming</code>, <code>outgoing</code></li>\n</ul>\n<h4 id=\"amount\"><code>amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"responsible_user_id\"><code>responsible_user_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n<li>Availability: when the <code>enable_responsible_user</code> setting is enabled</li>\n</ul>\n<h4 id=\"invoices\"><code>invoices</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>invoices.id</code> with variant <code>standard</code> and status <code>issued</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>amount</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-payments"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f376797e-6ddc-4ce8-92cb-68ec72d1ded6"},{"name":"View","id":"ef1c1898-ea38-4367-a781-778cf8f0aaef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partner-payments/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-payments",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"ef1c1898-ea38-4367-a781-778cf8f0aaef"},{"name":"Update","id":"53e0861d-4288-4125-8346-9182d659b754","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 3200\n}","options":{"raw":{"language":"json"}}},"url":"/partner-payments/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"amount\"><code>amount</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"responsible_user_id\"><code>responsible_user_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n<li>Availability: when the <code>enable_responsible_user</code> setting is enabled</li>\n</ul>\n<h4 id=\"invoices\"><code>invoices</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>invoices.id</code> with variant <code>standard</code> and status <code>issued</code></li>\n</ul>\n</li>\n<li><code>pivot</code><ul>\n<li>Required</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>amount</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-payments",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"53e0861d-4288-4125-8346-9182d659b754"},{"name":"Delete","id":"3b917f35-7b3d-4321-9cc8-4594e4f1a534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/partner-payments/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partner-payments",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"3b917f35-7b3d-4321-9cc8-4594e4f1a534"}],"id":"ca7a52f3-7a39-4690-89b0-dc1c262be194","_postman_id":"ca7a52f3-7a39-4690-89b0-dc1c262be194","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"partners","item":[{"name":"Index","id":"017d0d7d-54ef-49e3-971b-90c3a5caf5d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partners","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partners"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by partner type. Allowed values: supplier, client.</p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>Return changes since this ISO 8601 date/time checkpoint.</p>\n","type":"text/plain"},"key":"checkpoint","value":""}],"variable":[]}},"response":[],"_postman_id":"017d0d7d-54ef-49e3-971b-90c3a5caf5d8"},{"name":"Create","id":"d51ec931-1ddb-41f8-a36b-8640a3222e6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"client\",\n    \"name\": \"شركة النخبة للاستشارات\",\n    \"nature\": \"company\",\n    \"tax_number\": \"399999999900003\",\n    \"company_register\": \"123456\",\n    \"contacts\": [\n        {\n            \"phone\": \"+966550000001\",\n            \"address_line_1\": \"25 شارع الملك فهد\",\n            \"address_line_2\": \"\",\n            \"city\": \"الرياض\",\n            \"state\": \"\",\n            \"district\": \"النخيل\",\n            \"country\": \"SA\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/partners","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>supplier</code>, <code>client</code></li>\n</ul>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"nature\"><code>nature</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>individual</code>, <code>company</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> of type <code>sub</code></li>\n<li>Availability: when the <code>allow_journal_account_change</code> setting is enabled</li>\n</ul>\n<h4 id=\"tax_number\"><code>tax_number</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"company_register\"><code>company_register</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"notes\"><code>notes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"responsible_user_id\"><code>responsible_user_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n<li>Availability: when the <code>enable_responsible_user</code> setting is enabled</li>\n</ul>\n<h4 id=\"contacts\"><code>contacts</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>email</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: email</li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>phone</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>mobile</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>address_line_1</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>address_line_2</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>district</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>city</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>state</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>postal_code</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>country</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Length: 2 (ISO 3166-1 alpha-2)</li>\n<li>Must be uppercase</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"initial_balance\"><code>initial_balance</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partners"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d51ec931-1ddb-41f8-a36b-8640a3222e6e"},{"name":"View","id":"3df6ea95-ac71-4486-b321-a511598661cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/partners/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partners",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"3df6ea95-ac71-4486-b321-a511598661cb"},{"name":"Update","id":"058b1ee7-4ebe-44d6-be49-9b4e0f096f62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company_register\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/partners/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Unique within the same partner type</li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"nature\"><code>nature</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>individual</code>, <code>company</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> of type <code>sub</code></li>\n<li>Availability: when the <code>allow_journal_account_change</code> setting is enabled</li>\n</ul>\n<h4 id=\"tax_number\"><code>tax_number</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"company_register\"><code>company_register</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"notes\"><code>notes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"responsible_user_id\"><code>responsible_user_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n<li>Availability: when the <code>enable_responsible_user</code> setting is enabled</li>\n</ul>\n<h4 id=\"contacts\"><code>contacts</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>partner_id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>email</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: email</li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>phone</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>mobile</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>address_line_1</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>address_line_2</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>district</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>city</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>state</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>postal_code</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>country</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Length: 2 (ISO 3166-1 alpha-2)</li>\n<li>Must be uppercase</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partners",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"058b1ee7-4ebe-44d6-be49-9b4e0f096f62"},{"name":"Delete","id":"8ebb57d7-e3fc-4154-aff0-dd1c16fdec1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/partners/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["partners",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"8ebb57d7-e3fc-4154-aff0-dd1c16fdec1e"}],"id":"775196d4-2ecd-4c06-ae52-fcfc354ddd7c","_postman_id":"775196d4-2ecd-4c06-ae52-fcfc354ddd7c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"permissions","item":[{"name":"Index","id":"12300c72-5f05-4c51-a132-abe51fbdfd5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/permissions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["permissions"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"12300c72-5f05-4c51-a132-abe51fbdfd5d"}],"id":"c60ae3bc-80a8-4730-957e-1084cbe36395","_postman_id":"c60ae3bc-80a8-4730-957e-1084cbe36395","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"product-calculations","item":[{"name":"Index","id":"22d9306a-11c1-49b6-985f-5ee416e33988","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/product-calculations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["product-calculations"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"22d9306a-11c1-49b6-985f-5ee416e33988"}],"id":"e7b628fd-d99f-4e2c-b11c-ba9f88450368","_postman_id":"e7b628fd-d99f-4e2c-b11c-ba9f88450368","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"product-categories","item":[{"name":"Index","id":"bc018735-33ea-4adc-9fd5-7ac8562167a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/product-categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["product-categories"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Return changes since this ISO 8601 date/time checkpoint.</p>\n","type":"text/plain"},"key":"checkpoint","value":""}],"variable":[]}},"response":[],"_postman_id":"bc018735-33ea-4adc-9fd5-7ac8562167a4"},{"name":"Create","id":"840b98f8-ba09-46cc-a322-22eed600b0f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"معدات المطابخ\"\n}","options":{"raw":{"language":"json"}}},"url":"/product-categories","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>product_categories.id</code> (cannot create cycles)</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["product-categories"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"840b98f8-ba09-46cc-a322-22eed600b0f8"},{"name":"View","id":"e6bd217e-0844-4b20-a8d3-20d185d57781","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/product-categories/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["product-categories",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"e6bd217e-0844-4b20-a8d3-20d185d57781"},{"name":"Update","id":"1ef4f05a-7ec2-4b72-9ffd-972a81cde231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"معدات المطابخ\"\n}","options":{"raw":{"language":"json"}}},"url":"/product-categories/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"parent_id\"><code>parent_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>product_categories.id</code></li>\n<li>Cannot equal the current category id</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["product-categories",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"1ef4f05a-7ec2-4b72-9ffd-972a81cde231"},{"name":"Delete","id":"8542a212-2e6b-4955-8570-87f6e163339c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/product-categories/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["product-categories",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"8542a212-2e6b-4955-8570-87f6e163339c"}],"id":"7c350a0f-2496-4fc1-ab4b-84043d925daf","_postman_id":"7c350a0f-2496-4fc1-ab4b-84043d925daf","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"products","item":[{"name":"Index","id":"158ed7f9-771a-46b5-89b4-17470829dc3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["products"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Return changes since this ISO 8601 date/time checkpoint.</p>\n","type":"text/plain"},"key":"checkpoint","value":""}],"variable":[]}},"response":[],"_postman_id":"158ed7f9-771a-46b5-89b4-17470829dc3c"},{"name":"Create","id":"2cfe44f9-5e8b-490d-9858-7cb882492ecc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"قلم رصاص\",\n    \"supports_inventory\": 1,\n    \"units\": [\n        {\n            \"content\": 1,\n            \"purchase_price\": 100,\n            \"sale_price\": 200\n        }\n    ],\n    \"taxes\": [\n        {\n            \"id\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/products","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Unique across products</li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"supports_inventory\"><code>supports_inventory</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Enum: <code>0</code>, <code>1</code></li>\n<li>Use <code>1</code> to track inventory quantities</li>\n</ul>\n<h4 id=\"low_inventory_quantity\"><code>low_inventory_quantity</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>0</code></li>\n</ul>\n<h4 id=\"product_category_id\"><code>product_category_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>product_categories.id</code></li>\n</ul>\n<h4 id=\"units\"><code>units</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>purchase_price</code><ul>\n<li>Required when <code>supports_inventory</code> is <code>1</code></li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>sale_price</code><ul>\n<li>Required when <code>supports_inventory</code> is <code>1</code></li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>lowest_sale_price</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>barcodes</code><ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>value</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"image\"><code>image</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"taxes\"><code>taxes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>taxes.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"initial_inventory\"><code>initial_inventory</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Availability: only when <code>supports_inventory</code> is <code>1</code></li>\n<li>Item Properties:<ul>\n<li><code>storehouse_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>storehouses.id</code></li>\n<li>Each entry must be distinct</li>\n</ul>\n</li>\n<li><code>unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["products"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2cfe44f9-5e8b-490d-9858-7cb882492ecc"},{"name":"View","id":"87b58102-d4dc-4a4b-b1ba-0f0c8674dc39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/products/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["products",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"87b58102-d4dc-4a4b-b1ba-0f0c8674dc39"},{"name":"Update","id":"d00707dd-a4b3-4526-a9ef-6be22028f345","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"units\": [\n        {\n            \"content\": 1,\n            \"purchase_price\": 100,\n            \"sale_price\": 300\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/products/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across products (excluding the current product)</li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"low_inventory_quantity\"><code>low_inventory_quantity</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>0</code></li>\n</ul>\n<h4 id=\"product_category_id\"><code>product_category_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>product_categories.id</code></li>\n</ul>\n<h4 id=\"units\"><code>units</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>product_id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>purchase_price</code><ul>\n<li>Required when <code>supports_inventory</code> is <code>1</code></li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>sale_price</code><ul>\n<li>Required when <code>supports_inventory</code> is <code>1</code></li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>lowest_sale_price</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>barcodes</code><ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>unit_id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>value</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"image\"><code>image</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>object</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"taxes\"><code>taxes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>taxes.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["products",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"d00707dd-a4b3-4526-a9ef-6be22028f345"},{"name":"Delete","id":"58125c24-15ff-4667-883b-9ad165351234","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/products/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["products",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"58125c24-15ff-4667-883b-9ad165351234"}],"id":"6125825c-e8e6-41a3-90fa-b995a7428872","_postman_id":"6125825c-e8e6-41a3-90fa-b995a7428872","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"reports","item":[{"name":"accounting","item":[{"name":"tax","item":[{"name":"detailed","id":"b8f5dc06-da76-4b64-ad18-d0951654f8d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/tax/detailed","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","tax","detailed"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b8f5dc06-da76-4b64-ad18-d0951654f8d0"},{"name":"summary","id":"ee0cba9d-fd4b-4f2a-b3d3-24680d8498f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/tax/summary","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","tax","summary"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ee0cba9d-fd4b-4f2a-b3d3-24680d8498f6"}],"id":"e041e14f-ffeb-4502-bcde-ab8d233c9f70","_postman_id":"e041e14f-ffeb-4502-bcde-ab8d233c9f70","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"balance-sheet","id":"2628fbb2-667d-47d4-bd6f-edd21f69a39f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/balance-sheet","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","balance-sheet"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2628fbb2-667d-47d4-bd6f-edd21f69a39f"},{"name":"general-ledger","id":"41a10524-0c91-4aa3-8171-546af7ad432a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/general-ledger","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","general-ledger"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"41a10524-0c91-4aa3-8171-546af7ad432a"},{"name":"income-statement","id":"ae29df5f-8ded-46ab-a7a9-4d04665f75e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/income-statement","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","income-statement"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ae29df5f-8ded-46ab-a7a9-4d04665f75e9"},{"name":"journal-analytic-account","id":"2225ac37-4ec0-4e2b-b37e-e566b4c9bca6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/journal-analytic-account","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","journal-analytic-account"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2225ac37-4ec0-4e2b-b37e-e566b4c9bca6"},{"name":"trial-balance","id":"d8d798a9-6ff5-47fb-a4c9-ed199043cfa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/accounting/trial-balance","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","accounting","trial-balance"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d8d798a9-6ff5-47fb-a4c9-ed199043cfa0"}],"id":"cf45ae58-5beb-42af-9a24-a717fe7780f3","_postman_id":"cf45ae58-5beb-42af-9a24-a717fe7780f3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"gross-profit","item":[{"name":"detailed","id":"d63889c8-8d6f-484a-89bd-81ab79a18806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/gross-profit/detailed","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","gross-profit","detailed"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d63889c8-8d6f-484a-89bd-81ab79a18806"},{"name":"summary","id":"8f2d4fee-f58c-45f3-ab7b-ce623d14e8b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/gross-profit/summary","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","gross-profit","summary"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"8f2d4fee-f58c-45f3-ab7b-ce623d14e8b8"}],"id":"d3d937b8-d226-4325-82a7-48cab3062258","_postman_id":"d3d937b8-d226-4325-82a7-48cab3062258","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"inventory","item":[{"name":"inventory-value","item":[{"name":"detailed","id":"9b334f68-8462-4613-ada5-ecf06be2d780","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/inventory/inventory-value/detailed","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","inventory","inventory-value","detailed"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"9b334f68-8462-4613-ada5-ecf06be2d780"},{"name":"summary","id":"1ad41e41-bdac-4225-899a-a2bfb28fb312","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/inventory/inventory-value/summary","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","inventory","inventory-value","summary"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1ad41e41-bdac-4225-899a-a2bfb28fb312"}],"id":"bc44c0d5-8401-4517-9f66-a63ed62fc0fb","_postman_id":"bc44c0d5-8401-4517-9f66-a63ed62fc0fb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}}],"id":"ae48058d-f414-42bb-a9c2-3d6cab60e3b7","_postman_id":"ae48058d-f414-42bb-a9c2-3d6cab60e3b7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"invoice","item":[{"name":"detailed","id":"dbc5ebad-1293-44ef-82a7-e0539eaf8438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/invoice/detailed","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","invoice","detailed"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"dbc5ebad-1293-44ef-82a7-e0539eaf8438"},{"name":"summary","id":"1236190f-fa6d-4097-ae96-444b766902a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/invoice/summary","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","invoice","summary"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1236190f-fa6d-4097-ae96-444b766902a7"}],"id":"ebe67cf3-efdb-4f0b-903f-429fdc0a58b5","_postman_id":"ebe67cf3-efdb-4f0b-903f-429fdc0a58b5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"partner","item":[{"name":"aged-balance","id":"0654c4d5-7e99-47b1-a890-a8f1758c504d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/partner/aged-balance","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","partner","aged-balance"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"0654c4d5-7e99-47b1-a890-a8f1758c504d"}],"id":"e7fe0c6d-56f7-4a6c-9600-2ecf62df2c95","_postman_id":"e7fe0c6d-56f7-4a6c-9600-2ecf62df2c95","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"partner-payment","item":[{"name":"detailed","id":"b861efb8-eb21-4e08-82e2-f341667bb633","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/partner-payment/detailed","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","partner-payment","detailed"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"b861efb8-eb21-4e08-82e2-f341667bb633"},{"name":"summary","id":"2fbbc5c3-42d0-41fa-b436-4421dc3d8a8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/reports/partner-payment/summary","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["reports","partner-payment","summary"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2fbbc5c3-42d0-41fa-b436-4421dc3d8a8d"}],"id":"bd8bed3a-b7ad-427b-bcf6-f8d7207a256d","_postman_id":"bd8bed3a-b7ad-427b-bcf6-f8d7207a256d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}}],"id":"e4a16fcb-c6f9-4754-b8df-abd990b5a2bd","_postman_id":"e4a16fcb-c6f9-4754-b8df-abd990b5a2bd","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"roles","item":[{"name":"Index","id":"756bae10-0d5d-44ff-8edf-d63b307d6f84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/roles","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["roles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"756bae10-0d5d-44ff-8edf-d63b307d6f84"},{"name":"Create","id":"7ed47d77-4b73-4e45-8f96-6258f720a019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"مدير المبيعات\",\n    \"permissions\": [\n        {\n            \"name\": \"invoices.manage\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/roles","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across roles</li>\n</ul>\n<h4 id=\"permissions\"><code>permissions</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>name</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Must be one of the enumerated permission identifiers</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["roles"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"7ed47d77-4b73-4e45-8f96-6258f720a019"},{"name":"View","id":"ac3e89ac-8d47-4f60-b2a1-917cbf66fd90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/roles/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["roles",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"ac3e89ac-8d47-4f60-b2a1-917cbf66fd90"},{"name":"Update","id":"dd99fae0-a628-4666-97e6-96f6618876c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"مشرف المشتريات\"\n}","options":{"raw":{"language":"json"}}},"url":"/roles/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across roles (excluding the current role)</li>\n</ul>\n<h4 id=\"permissions\"><code>permissions</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Existing permission pivot identifier (include when updating existing assignments)</li>\n</ul>\n</li>\n<li><code>name</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Must be one of the enumerated permission identifiers</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["roles",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"dd99fae0-a628-4666-97e6-96f6618876c2"},{"name":"Delete","id":"915bffbc-63fb-4617-8fe3-7f3b4f45cc14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/roles/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["roles",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"915bffbc-63fb-4617-8fe3-7f3b4f45cc14"}],"id":"e80bb589-ae98-4ef4-83fa-35929b11cc07","_postman_id":"e80bb589-ae98-4ef4-83fa-35929b11cc07","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"settings","item":[{"name":"Index","id":"9f79ef6a-3fc1-4ff7-906b-9d6572dfbde1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/settings","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["settings"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by setting name. Requires administrator privileges.</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>Controls whether the <code>name</code> filter is an exact match. Allowed values: true, false. Defaults to true.</p>\n","type":"text/plain"},"key":"exact","value":""},{"disabled":true,"description":{"content":"<p>When filtering by name, narrow results to the current branch (<code>branch</code>), partner list (<code>partner_list</code>), or business (<code>business</code>).</p>\n","type":"text/plain"},"key":"owner_type","value":""},{"disabled":true,"description":{"content":"<p>Override the default owner ID for the given owner_type (e.g. a specific branch, partner list, or business ID).</p>\n","type":"text/plain"},"key":"owner_id","value":""}],"variable":[]}},"response":[],"_postman_id":"9f79ef6a-3fc1-4ff7-906b-9d6572dfbde1"},{"name":"View","id":"94bc974d-f9e3-4b3c-ae7e-e413d5a26fa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/settings/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["settings",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"94bc974d-f9e3-4b3c-ae7e-e413d5a26fa7"},{"name":"Update","id":"313f8a1d-a2d0-4414-8df3-2d67907198f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"value\": true\n}","options":{"raw":{"language":"json"}}},"url":"/settings/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"value\"><code>value</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: varies by setting</li>\n<li>Provide the new configuration payload. The expected structure depends on the setting name and must satisfy the server-side validation for that setting.</li>\n</ul>\n<h4 id=\"files\"><code>files</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Used only for settings that accept file attachments (for example, the company logo)</li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["settings",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"313f8a1d-a2d0-4414-8df3-2d67907198f8"}],"id":"6987b469-47e8-4c11-9dfc-6236805f854f","_postman_id":"6987b469-47e8-4c11-9dfc-6236805f854f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"stock-movement-requisitions","item":[{"name":"Index","id":"f6842f9c-91c1-4f2c-9adf-bfae8acd9b4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-movement-requisitions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movement-requisitions"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by requisition identifier.</p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>Return requisitions for the given <code>storehouses.id</code>.</p>\n","type":"text/plain"},"key":"storehouse_id","value":""},{"disabled":true,"description":{"content":"<p>Set to <code>1</code> or <code>0</code> to filter by conflict flag.</p>\n","type":"text/plain"},"key":"has_conflict","value":""},{"disabled":true,"description":{"content":"<p>Return requisitions created on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return requisitions created on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""}],"variable":[]}},"response":[],"_postman_id":"f6842f9c-91c1-4f2c-9adf-bfae8acd9b4e"},{"name":"View","id":"eba22fcc-2110-409b-ac79-4226e97a7b61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-movement-requisitions/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movement-requisitions",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"eba22fcc-2110-409b-ac79-4226e97a7b61"},{"name":"Update","id":"485a7ce3-fab6-45ba-9cdc-3646746311bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"notes\": \"يرجى التأكيد على الجرد قبل الشحن\"\n}","options":{"raw":{"language":"json"}}},"url":"/stock-movement-requisitions/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"has_conflict\"><code>has_conflict</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"notes\"><code>notes</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>products.id</code></li>\n</ul>\n</li>\n<li><code>approved_unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>0</code></li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movement-requisitions",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"485a7ce3-fab6-45ba-9cdc-3646746311bc"}],"id":"6c1a18cb-7cbb-484d-931d-9b8e50bfb702","_postman_id":"6c1a18cb-7cbb-484d-931d-9b8e50bfb702","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"stock-movements","item":[{"name":"Index","id":"25e38ab9-68a6-4f7d-8955-e788e2c8013b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-movements","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movements"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by stock movement code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Search stock movements whose description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return movements recorded for the given storehouse.</p>\n","type":"text/plain"},"key":"storehouse_id","value":""},{"disabled":true,"description":{"content":"<p>Return movements dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return movements dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Filter by source document type. Allowed values: invoice.</p>\n","type":"text/plain"},"key":"source_type","value":""},{"disabled":true,"description":{"content":"<p>Filter by source document identifier (requires <code>source_type</code>).</p>\n","type":"text/plain"},"key":"source_id","value":""},{"disabled":true,"description":{"content":"<p>Sort field. Allowed values: id, date. Defaults to id.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc. Defaults to desc.</p>\n","type":"text/plain"},"key":"order","value":""}],"variable":[]}},"response":[],"_postman_id":"25e38ab9-68a6-4f7d-8955-e788e2c8013b"},{"name":"Create","id":"3c2ab0de-583b-4879-ab54-0759067fc16a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"incoming\",\n    \"storehouse_id\": 5,\n    \"date\": \"2024-09-12\",\n    \"records\": [\n        {\n            \"product_id\": 21,\n            \"requested_unit_quantity\": 40,\n            \"unit_price\": 85,\n            \"unit_content\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/stock-movements","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across stock movements</li>\n</ul>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>incoming</code>, <code>outgoing</code></li>\n</ul>\n<h4 id=\"storehouse_id\"><code>storehouse_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>storehouses.id</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code> and belong to the current branch</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing inventory-supported <code>products.id</code></li>\n</ul>\n</li>\n<li><code>requested_unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_price</code><ul>\n<li>Required when <code>type</code> is <code>incoming</code></li>\n<li>Prohibited when <code>type</code> is <code>outgoing</code></li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movements"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"3c2ab0de-583b-4879-ab54-0759067fc16a"},{"name":"View","id":"1933e548-d60b-45f9-9630-cf1114df0559","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-movements/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"1933e548-d60b-45f9-9630-cf1114df0559"},{"name":"Update","id":"5d42ea6a-9047-4670-a267-dd8c7f3091d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"records\": [\n        {\n            \"product_id\": 21,\n            \"requested_unit_quantity\": 38,\n            \"unit_price\": 85,\n            \"unit_content\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/stock-movements/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across stock movements (excluding the current movement)</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code> and belong to the current branch</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing inventory-supported <code>products.id</code></li>\n</ul>\n</li>\n<li><code>requested_unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_price</code><ul>\n<li>Required when the movement type is <code>incoming</code></li>\n<li>Prohibited when the movement type is <code>outgoing</code></li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"5d42ea6a-9047-4670-a267-dd8c7f3091d8"},{"name":"Delete","id":"251ec049-a316-4212-8b1d-6f0070dbf6e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/stock-movements/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-movements",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"251ec049-a316-4212-8b1d-6f0070dbf6e6"}],"id":"0b0dc12e-72df-4179-b9a3-bf3ce1b8a003","_postman_id":"0b0dc12e-72df-4179-b9a3-bf3ce1b8a003","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"stock-takes","item":[{"name":"Index","id":"be845335-7a02-48a2-91ec-61e35d037c28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-takes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-takes"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by stock take identifier.</p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>Search stock takes whose description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return stock takes recorded for the given storehouse.</p>\n","type":"text/plain"},"key":"storehouse_id","value":""}],"variable":[]}},"response":[],"_postman_id":"be845335-7a02-48a2-91ec-61e35d037c28"},{"name":"Create","id":"f93afd47-4504-4653-928d-30e1882e366c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"draft\",\n    \"storehouse_id\": 5,\n    \"date\": \"2024-09-01\"\n}","options":{"raw":{"language":"json"}}},"url":"/stock-takes","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"status\"><code>status</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>draft</code>, <code>issued</code></li>\n</ul>\n<h4 id=\"storehouse_id\"><code>storehouse_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>storehouses.id</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code> and belong to the current branch</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing inventory-supported <code>products.id</code></li>\n</ul>\n</li>\n<li><code>application_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>physical_quantity</code><ul>\n<li>Required when <code>status</code> is <code>issued</code></li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-takes"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f93afd47-4504-4653-928d-30e1882e366c"},{"name":"View","id":"8e866e08-1ead-486c-9c0f-365a936e32bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-takes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-takes",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"8e866e08-1ead-486c-9c0f-365a936e32bd"},{"name":"Update","id":"e02a025c-87d4-443a-a7f4-62f80a420dc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"تم اعتماد الجرد الأولي\"\n}","options":{"raw":{"language":"json"}}},"url":"/stock-takes/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"status\"><code>status</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>draft</code>, <code>issued</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code> and belong to the current branch</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing inventory-supported <code>products.id</code></li>\n</ul>\n</li>\n<li><code>application_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n</ul>\n</li>\n<li><code>physical_quantity</code><ul>\n<li>Required when the request sets <code>status</code> to <code>issued</code></li>\n<li>Type: <code>integer</code> or <code>null</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-takes",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"e02a025c-87d4-443a-a7f4-62f80a420dc1"},{"name":"Delete","id":"050ee99e-57a1-4053-aff4-b196742af98e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/stock-takes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-takes",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"050ee99e-57a1-4053-aff4-b196742af98e"}],"id":"fffe4607-c879-4eb3-9eb9-9e253368d3be","_postman_id":"fffe4607-c879-4eb3-9eb9-9e253368d3be","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"stock-transactions","item":[{"name":"Index","id":"302214c0-c096-4da0-8e3b-85c1b7cefa4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-transactions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transactions"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by stock movement or transfer code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Search transactions whose source description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return transactions involving the given storehouse.</p>\n","type":"text/plain"},"key":"storehouse_id","value":""},{"disabled":true,"description":{"content":"<p>Return transactions that include the given product.</p>\n","type":"text/plain"},"key":"product_id","value":""},{"disabled":true,"description":{"content":"<p>Return transactions dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return transactions dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Filter by calculation status of the underlying record. Allowed values: pending, partially_processed, processed.</p>\n","type":"text/plain"},"key":"status","value":""},{"disabled":true,"description":{"content":"<p>Sort field. Allowed values: id, date. Defaults to id.</p>\n","type":"text/plain"},"key":"order_by","value":""},{"disabled":true,"description":{"content":"<p>Sort direction. Allowed values: asc, desc. Defaults to desc.</p>\n","type":"text/plain"},"key":"order","value":""}],"variable":[]}},"response":[],"_postman_id":"302214c0-c096-4da0-8e3b-85c1b7cefa4a"},{"name":"View","id":"c29a0b76-e9a0-4142-869b-a0659621dc4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-transactions/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transactions",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"c29a0b76-e9a0-4142-869b-a0659621dc4b"}],"id":"84e6579f-36cb-413d-a1c6-415f63e48c0d","_postman_id":"84e6579f-36cb-413d-a1c6-415f63e48c0d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"stock-transfers","item":[{"name":"Index","id":"78f7f897-4407-4c6c-bf55-07c7b2cd1150","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-transfers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transfers"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter by stock transfer code (partial match).</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Search stock transfers whose description contains this text.</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>Return transfers where the storehouse is either the source or destination.</p>\n","type":"text/plain"},"key":"storehouse_id","value":""},{"disabled":true,"description":{"content":"<p>Return transfers dated on or after this ISO 8601 date.</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Return transfers dated on or before this ISO 8601 date.</p>\n","type":"text/plain"},"key":"end_date","value":""}],"variable":[]}},"response":[],"_postman_id":"78f7f897-4407-4c6c-bf55-07c7b2cd1150"},{"name":"Create","id":"9db768ed-d6e2-44b3-a210-812797e2b85d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"source_storehouse_id\": 2,\n    \"destination_storehouse_id\": 5,\n    \"date\": \"2024-09-18\",\n    \"records\": [\n        {\n            \"product_id\": 21,\n            \"requested_unit_quantity\": 12,\n            \"unit_content\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/stock-transfers","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across stock transfers</li>\n</ul>\n<h4 id=\"source_storehouse_id\"><code>source_storehouse_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>storehouses.id</code></li>\n</ul>\n<h4 id=\"destination_storehouse_id\"><code>destination_storehouse_id</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>storehouses.id</code></li>\n<li>Must differ from <code>source_storehouse_id</code></li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing inventory-supported <code>products.id</code></li>\n</ul>\n</li>\n<li><code>requested_unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transfers"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"9db768ed-d6e2-44b3-a210-812797e2b85d"},{"name":"View","id":"b28c491c-20b7-4bc0-b373-72f7b2452e38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stock-transfers/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transfers",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"b28c491c-20b7-4bc0-b373-72f7b2452e38"},{"name":"Update","id":"90d6eeee-4f1b-4b17-aac9-6ae3f7f4acef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"records\": [\n        {\n            \"product_id\": 21,\n            \"requested_unit_quantity\": 10,\n            \"unit_content\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/stock-transfers/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"code\"><code>code</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n<li>Must be unique across stock transfers (excluding the current transfer)</li>\n</ul>\n<h4 id=\"description\"><code>description</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n</ul>\n<h4 id=\"date\"><code>date</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Format: date</li>\n</ul>\n<h4 id=\"records\"><code>records</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>product_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing inventory-supported <code>products.id</code></li>\n</ul>\n</li>\n<li><code>requested_unit_quantity</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_content</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Minimum: <code>1</code></li>\n</ul>\n</li>\n<li><code>unit_name</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"attachments\"><code>attachments</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Max items: <code>5</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>stored_files.id</code></li>\n</ul>\n</li>\n<li><code>secret</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transfers",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"90d6eeee-4f1b-4b17-aac9-6ae3f7f4acef"},{"name":"Delete","id":"de759ff1-f554-4622-8609-1928dbba4f1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/stock-transfers/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stock-transfers",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"de759ff1-f554-4622-8609-1928dbba4f1b"}],"id":"2ad9f6a3-47fa-4904-8061-0b380abc0bdb","_postman_id":"2ad9f6a3-47fa-4904-8061-0b380abc0bdb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"stored-files","item":[{"name":"Create","id":"d83c5188-b7d5-41c6-b22a-150d6cd6fde9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"5a0e4126-9c59-41d8-a8d6-395967643d72","value":null}]},"url":"/stored-files","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"file\"><code>file</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>file</code></li>\n<li>Allowed MIME types: png, jpg, txt, pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp</li>\n<li>Maximum size: 16 MB</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stored-files"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d83c5188-b7d5-41c6-b22a-150d6cd6fde9"},{"name":"binary","id":"933cfa3e-8a3f-4734-b790-08306165436e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/stored-files/:stored_file/:secret/:filename","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["stored-files",":stored_file",":secret",":filename"],"host":[""],"query":[],"variable":[{"type":"any","key":"stored_file"},{"type":"any","key":"secret"},{"type":"any","key":"filename"}]}},"response":[],"_postman_id":"933cfa3e-8a3f-4734-b790-08306165436e"}],"id":"2bb86d6f-71ab-45c8-be72-e4dd37bbeca5","_postman_id":"2bb86d6f-71ab-45c8-be72-e4dd37bbeca5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"storehouses","item":[{"name":"Index","id":"cd1fc466-0905-4119-9cf4-f4d632f4b323","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/storehouses","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["storehouses"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"cd1fc466-0905-4119-9cf4-f4d632f4b323"},{"name":"Create","id":"31ab7e9d-8d1d-4f9f-b40d-81e33126c086","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"مستودع الشحنات الشرقية\",\n    \"requires_incoming_requisitions\": 1,\n    \"requires_outgoing_requisitions\": 0\n}","options":{"raw":{"language":"json"}}},"url":"/storehouses","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n<h4 id=\"requires_incoming_requisitions\"><code>requires_incoming_requisitions</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"requires_outgoing_requisitions\"><code>requires_outgoing_requisitions</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"users\"><code>users</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"custodians\"><code>custodians</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["storehouses"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"31ab7e9d-8d1d-4f9f-b40d-81e33126c086"},{"name":"View","id":"549b9e5d-7550-42cd-af64-7c1549055848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/storehouses/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["storehouses",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"549b9e5d-7550-42cd-af64-7c1549055848"},{"name":"Update","id":"22c6110f-4665-4a10-afe6-a99cfa57dde0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"مستودع جدة اللوجستي\"\n}","options":{"raw":{"language":"json"}}},"url":"/storehouses/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n<h4 id=\"requires_incoming_requisitions\"><code>requires_incoming_requisitions</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"requires_outgoing_requisitions\"><code>requires_outgoing_requisitions</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"users\"><code>users</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"custodians\"><code>custodians</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["storehouses",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"22c6110f-4665-4a10-afe6-a99cfa57dde0"},{"name":"Delete","id":"f2cf9d55-5550-4ff6-80ad-f3247fc7a551","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/storehouses/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["storehouses",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"f2cf9d55-5550-4ff6-80ad-f3247fc7a551"}],"id":"6bc8f236-e134-4ab5-9f6f-a7a1f30841dc","_postman_id":"6bc8f236-e134-4ab5-9f6f-a7a1f30841dc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"taxes","item":[{"name":"Index","id":"62b4c2d6-a004-4102-81ce-0a723ea90dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/taxes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["taxes"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"62b4c2d6-a004-4102-81ce-0a723ea90dd4"},{"name":"Create","id":"45cf936a-ec5a-4ea4-b65f-ff0c2865080c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ضريبة القيمة المضافة\",\n    \"percentage\": 15,\n    \"inclusive\": 1\n}","options":{"raw":{"language":"json"}}},"url":"/taxes","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"percentage\"><code>percentage</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>number</code></li>\n<li>Minimum: <code>0</code></li>\n</ul>\n<h4 id=\"inclusive\"><code>inclusive</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"paid_journal_account_id\"><code>paid_journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n<h4 id=\"collected_journal_account_id\"><code>collected_journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["taxes"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"45cf936a-ec5a-4ea4-b65f-ff0c2865080c"},{"name":"View","id":"b148eeaa-e58e-49fc-add4-1f78740335fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/taxes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["taxes",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"b148eeaa-e58e-49fc-add4-1f78740335fc"},{"name":"Update","id":"cdfcacb7-b03c-4bd9-96de-851483706383","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ضريبة القيمة المضافة\"\n}","options":{"raw":{"language":"json"}}},"url":"/taxes/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"percentage\"><code>percentage</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>number</code></li>\n<li>Minimum: <code>0</code></li>\n</ul>\n<h4 id=\"inclusive\"><code>inclusive</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"paid_journal_account_id\"><code>paid_journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n<h4 id=\"collected_journal_account_id\"><code>collected_journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["taxes",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"cdfcacb7-b03c-4bd9-96de-851483706383"},{"name":"Delete","id":"0cbe1e76-c030-41af-8cf1-a01c5e6049e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/taxes/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["taxes",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"0cbe1e76-c030-41af-8cf1-a01c5e6049e0"}],"id":"25e253fe-47bc-4290-a7e9-5ca9fce952f2","_postman_id":"25e253fe-47bc-4290-a7e9-5ca9fce952f2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"treasuries","item":[{"name":"Index","id":"1580cbe1-be32-41e5-b423-8590122d8f02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/treasuries","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["treasuries"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Filter treasuries by type. Allowed values: safe, bank_account, pos_safe, custody.</p>\n","type":"text/plain"},"key":"type","value":""}],"variable":[]}},"response":[],"_postman_id":"1580cbe1-be32-41e5-b423-8590122d8f02"},{"name":"Create","id":"8ed8ecf4-e49c-460c-b942-a0473f3e6517","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"خزينة الرياض الرئيسية\",\n    \"type\": \"safe\",\n    \"requires_incoming_requisitions\": 1,\n    \"requires_outgoing_requisitions\": 0\n}","options":{"raw":{"language":"json"}}},"url":"/treasuries","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>safe</code>, <code>bank_account</code>, <code>pos_safe</code>, <code>custody</code></li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n<h4 id=\"requires_incoming_requisitions\"><code>requires_incoming_requisitions</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"requires_outgoing_requisitions\"><code>requires_outgoing_requisitions</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"users\"><code>users</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"custodians\"><code>custodians</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["treasuries"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"8ed8ecf4-e49c-460c-b942-a0473f3e6517"},{"name":"View","id":"14f994a0-a0fb-4b6d-aa60-e8777a7edd3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/treasuries/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["treasuries",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"14f994a0-a0fb-4b6d-aa60-e8777a7edd3a"},{"name":"Update","id":"fe60434e-f812-47d5-a381-3fbb6d756a7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"خزينة جدة للمدفوعات\"\n}","options":{"raw":{"language":"json"}}},"url":"/treasuries/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"journal_account_id\"><code>journal_account_id</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>journal_accounts.id</code> with type <code>sub</code></li>\n</ul>\n<h4 id=\"requires_incoming_requisitions\"><code>requires_incoming_requisitions</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"requires_outgoing_requisitions\"><code>requires_outgoing_requisitions</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Allowed values: <code>0</code>, <code>1</code></li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"users\"><code>users</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Optional</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"custodians\"><code>custodians</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>users.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["treasuries",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"fe60434e-f812-47d5-a381-3fbb6d756a7f"},{"name":"Delete","id":"8316b64d-6d8d-4e71-8fdf-c02d8601e7b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/treasuries/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["treasuries",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"8316b64d-6d8d-4e71-8fdf-c02d8601e7b4"}],"id":"f18543b2-556b-4faf-b313-da407db48518","_postman_id":"f18543b2-556b-4faf-b313-da407db48518","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}},{"name":"users","item":[{"name":"Index","id":"b4d06a5c-3bb2-4c68-89c5-3cdf496bd76f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["users"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>Set to <code>1</code> to return the lightweight sync payload (id, type, name).</p>\n","type":"text/plain"},"key":"is_sync","value":""}],"variable":[]}},"response":[],"_postman_id":"b4d06a5c-3bb2-4c68-89c5-3cdf496bd76f"},{"name":"Create","id":"d222ba7c-f4af-4ebc-b810-a5538a6a5618","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"user\",\n    \"name\": \"أحمد المنصور\",\n    \"email\": \"ahmed.almansour@example.com\",\n    \"password\": \"\",\n    \"role_id\": 2,\n    \"branches\": [\n        {\n            \"id\": 1\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"/users","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Enum: <code>user</code>, <code>employee</code></li>\n</ul>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"when-type-is-user\">When <code>type</code> is <code>user</code></h4>\n<ul>\n<li><code>email</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Format: email</li>\n<li>Max length: 255</li>\n<li>Must be unique across users</li>\n</ul>\n</li>\n<li><code>phone</code><ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n</li>\n<li><code>password</code><ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Minimum length: 6</li>\n</ul>\n</li>\n<li><code>role_id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>roles.id</code></li>\n</ul>\n</li>\n<li><code>branches</code><ul>\n<li>Required</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"when-type-is-employee\">When <code>type</code> is <code>employee</code></h4>\n<ul>\n<li>No additional fields are required. Email, phone, password, role, and branches are managed automatically.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["users"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d222ba7c-f4af-4ebc-b810-a5538a6a5618"},{"name":"View","id":"c0f28c6b-0229-4411-b327-da5895f55a21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["users",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"c0f28c6b-0229-4411-b327-da5895f55a21"},{"name":"Update","id":"7f2339bc-dec0-4598-9829-0fd3509ee2fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"محمد السبيعي\",\n    \"type\": \"employee\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/:id","description":"<h3 id=\"properties\">Properties</h3>\n<h4 id=\"name\"><code>name</code></h4>\n<ul>\n<li>Required</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"type\"><code>type</code></h4>\n<ul>\n<li>Required for users and employees</li>\n<li>Type: <code>string</code></li>\n<li>Allowed values: <code>user</code>, <code>employee</code></li>\n<li>Owners cannot change their type</li>\n</ul>\n<h4 id=\"email\"><code>email</code></h4>\n<ul>\n<li>Required when the resulting type is <code>user</code> or the target account is an owner</li>\n<li>Type: <code>string</code></li>\n<li>Format: email</li>\n<li>Max length: 255</li>\n<li>Must be unique across users (excluding the current user)</li>\n</ul>\n<h4 id=\"phone\"><code>phone</code></h4>\n<ul>\n<li>Required when editing an owner</li>\n<li>Optional otherwise</li>\n<li>Type: <code>string</code></li>\n<li>Max length: 255</li>\n</ul>\n<h4 id=\"password\"><code>password</code></h4>\n<ul>\n<li>Optional</li>\n<li>Type: <code>string</code></li>\n<li>Minimum length: 6</li>\n</ul>\n<h4 id=\"branches\"><code>branches</code></h4>\n<ul>\n<li>Required when the resulting type is <code>user</code> or the target account is an owner</li>\n<li>Type: <code>array</code></li>\n<li>Item Properties:<ul>\n<li><code>id</code><ul>\n<li>Required</li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>branches.id</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"role_id\"><code>role_id</code></h4>\n<ul>\n<li>Required when the resulting type is <code>user</code></li>\n<li>Type: <code>integer</code></li>\n<li>Must reference an existing <code>roles.id</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["users",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"7f2339bc-dec0-4598-9829-0fd3509ee2fe"},{"name":"Delete","id":"1b16bcb0-d2fb-4a6e-9431-984b121c6b3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/users/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}},"urlObject":{"path":["users",":id"],"host":[""],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[],"_postman_id":"1b16bcb0-d2fb-4a6e-9431-984b121c6b3e"}],"id":"06e211b1-7985-462c-b09b-725656d44e96","_postman_id":"06e211b1-7985-462c-b09b-725656d44e96","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","id":"76d4c653-bf9e-4547-8eb9-086b04cf7a27","name":"alostaz.io","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"0f9d50d5-301a-4f50-be9c-c3a09d2b3442","type":"text/javascript","packages":{},"requests":{},"exec":["if (!pm.request.headers.has(\"Accept\")) {\r","    pm.request.headers.add({ key: \"Accept\", value: \"application/json\" });\r","}\r","if (!pm.request.headers.has(\"Content-Type\")) {\r","    pm.request.headers.add({ key: \"Content-Type\", value: \"application/json\" });\r","}\r","if (!pm.request.headers.has(\"X-Branch-Id\")) {\r","    pm.request.headers.add({ key: \"X-Branch-Id\", value: pm.variables.get(\"branch_id\") });\r","}\r","if (!pm.request.headers.has(\"X-Locale\")) {\r","    pm.request.headers.add({ key: \"X-Locale\", value: pm.variables.get(\"locale\") });\r","}\r","if (!pm.request.headers.has(\"X-API-Version\")) {\r","    pm.request.headers.add({ key: \"X-API-Version\", value: pm.variables.get(\"api_version\") });\r","}"]}},{"listen":"test","script":{"id":"e796f7e9-f008-4169-ab7d-35853a2decdd","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"base_url","value":""},{"key":"access_token","value":""},{"key":"branch_id","value":"1"},{"key":"locale","value":"en"},{"key":"api_version","value":"1.0.0"}]}