{"info":{"_postman_id":"104005eb-b8ce-45b5-a417-c008a06fda7b","name":"Tajr API Documentations","description":"<html><head></head><body><h2 id=\"👋-introduction\">👋 Introduction</h2>\n<p>This documentation provides a comprehensive guide to integrating with the Al-WSL Merchant API. It covers the essential steps for setting up the API, creating orders, and managing requests. Designed for developers, this guide aims to ensure a smooth integration process by offering clear instructions and practical examples.</p>\n<h2 id=\"🚀-getting-started\">🚀 Getting started</h2>\n<p>Before you begin, make sure you have a merchant account on the Tajr Platform. This account provides access to all Tajr features.</p>\n<h4 id=\"🔐-creating-api-key\">🔐 <strong>Creating API Key</strong></h4>\n<p>To use the Tajr API, you'll need an API key, which can be generated from the Tajr Dashboard. The API key will grant you access to all Tajr APIs and you should never share it with anyone.</p>\n<p><video src=\"https://youtube.com/embed/0bIhX10R1wU\" width=\"638\" height=\"373\"></video></p>\n<p>After creating the API Key, you can now access the Tajr APIs.</p>\n<h4 id=\"🔁-setting-webhook\">🔁 <strong>Setting Webhook</strong></h4>\n<p>To ensure your system stays current with updates from the Tajr Platform, you can configure a webhook. This webhook will receive all order updates, allowing you to process them efficiently.</p>\n<p><video src=\"https://youtube.com/embed/g1ZRQqKbpS4\" width=\"638\" height=\"281\"></video></p>\n<h4 id=\"👮🏼♂️-webhook-verification\">👮🏼‍♂️ Webhook Verification</h4>\n<p>We provide you with a protection method that allows you to verify the updates sent to your Webhook URL. We will send a unique secret code every time a request is made, helping you ensure that the requests come from the Tajr Platform.</p>\n<p>You can find the secret key in the Webhook section in the Tajr Platform:</p>\n<img src=\"https://content.pstmn.io/442a3f6c-e1c2-45d2-b32c-cca3a5966c22/U2NyZWVuc2hvdCAyMDI0LTA4LTE4IGF0IDYuNTEuMTQgUE0ucG5n\" width=\"1611\" height=\"177\">\n\n<h4 id=\"✨-using-the-apis\">✨ Using the APIs</h4>\n<p>You can now use the Tajr APIs to create orders and receive updates through webhooks.</p>\n<h2 id=\"🛟-help-and-support\">🛟 Help and support</h2>\n<p>If you have any questions or suggestions, please don't hesitate to reach out, I will be happy to answer any question you have.</p>\n<p><a href=\"https://mailto:mahmood@wsl.iq\">mahmood@wsl.iq</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"37751406","collectionId":"104005eb-b8ce-45b5-a417-c008a06fda7b","publishedId":"2sB3WqufU2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-05T12:29:15.000Z"},"item":[{"name":"Common APIs","item":[{"name":"Get Statuses","id":"53547a43-3f76-44c1-828e-c4decc289053","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/status","description":"<p>This endpoint retrieves the current system statuses, which are essential for creating new orders and filtering existing ones. These statuses help ensure accurate order management and streamline the order processing workflow.</p>\n","urlObject":{"path":["api","merchant","v1","status"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"53547a43-3f76-44c1-828e-c4decc289053"},{"name":"Get Governorates","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"42ef649b-2812-4249-b57c-2db5e0986dbd"}}],"id":"4d5db6fb-aa93-4c01-be40-ffda80365a82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/governorate","description":"<p>This endpoint retrieves a list of governorates, which are essential for creating new orders and filtering existing ones. These Governorates play a key role in accurately managing and processing orders within specific regions.</p>\n","urlObject":{"path":["api","merchant","v1","governorate"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"53fd562f-cc37-4e3c-b527-de2b667282b6","name":"Get Governorate","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{base_url}}/api/merchant/v1/governorate","host":["{{base_url}}"],"path":["api","merchant","v1","governorate"],"query":[{"key":"sort","value":"-id","description":"Specifies the order in which the data should be sorted based on a particular key","disabled":true},{"key":"filter[unkown]","value":"Value","description":"Filters the data based on the value of a specific key.","disabled":true},{"key":"page","value":"1","description":"Indicates the page number of the results to retrieve.\n","disabled":true},{"key":"take","value":"10","description":"Specifies the number of items to return per page.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:46:08 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"current_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"07a9eb64-087e-4881-ac4c-a308ac9f12d0\",\n            \"name\": \"المثنى\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:37\"\n        },\n        {\n            \"id\": \"1faef8e4-6678-4fa8-97f4-89dbd7a1049b\",\n            \"name\": \"كربلاء\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"246ea451-e376-4528-9af6-42e3fd5714fa\",\n            \"name\": \"نينوى\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"35439c92-1da2-49e0-9ed4-dd82e420dccc\",\n            \"name\": \"ميسان\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"355404e3-6855-45fd-a2eb-abb77b0ac58a\",\n            \"name\": \"صلاح الدين\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"48698788-3919-4097-b536-78fab7c66d27\",\n            \"name\": \"موصل\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"4e6d2866-09b9-47cf-97f3-0ef029f58ca5\",\n            \"name\": \"بغداد\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"58934b86-1fc2-44bd-ae4d-5fdc09612adf\",\n            \"name\": \"البصرة\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:36\"\n        },\n        {\n            \"id\": \"6a60a9da-448d-44ab-bd32-daa55646c347\",\n            \"name\": \"النجف\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:36\"\n        },\n        {\n            \"id\": \"7abddb14-26d9-4669-95d2-162d0842f27d\",\n            \"name\": \"دهوك\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"9c2e72a4-8741-4b0d-82cd-8e73ab549cc8\",\n            \"name\": \"السليمانية\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:36\"\n        },\n        {\n            \"id\": \"a31e2a73-4bb2-4640-a2e1-c8894d83f62b\",\n            \"name\": \"الديوانية\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:36\"\n        },\n        {\n            \"id\": \"adb0dd51-02bf-4695-90e4-e6cdcf198d71\",\n            \"name\": \"واسط\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-03-03 22:50:32\"\n        },\n        {\n            \"id\": \"cd3e4659-6423-4482-84e1-44703095383e\",\n            \"name\": \"ديالى\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:36\"\n        },\n        {\n            \"id\": \"d6b5b375-8a9a-4d76-b18e-4895357d9189\",\n            \"name\": \"أربيل\",\n            \"creator_id\": null,\n            \"updator_id\": null,\n            \"created_at\": \"2024-03-03 22:50:32\",\n            \"updated_at\": \"2024-07-22 14:30:37\"\n        }\n    ],\n    \"first_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate?page=1\",\n    \"from\": 1,\n    \"last_page\": 2,\n    \"last_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate?page=2\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"pagination.previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate?page=2\",\n            \"label\": \"2\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate?page=2\",\n            \"label\": \"pagination.next\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate?page=2\",\n    \"path\": \"https://api-v2.tasleem.app/api/merchant/v1/governorate\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": 15,\n    \"total\": 19\n}"}],"_postman_id":"4d5db6fb-aa93-4c01-be40-ffda80365a82"},{"name":"Get Product Attributes","id":"c24dea6c-e70f-422c-97b5-390521257b44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/attribute","description":"<p>This endpoint retrieves a list of product attributes, which are essential for creating new orders and filtering existing ones. These attributes play a key role in accurately managing and processing orders.</p>\n","urlObject":{"path":["api","merchant","v1","attribute"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c24dea6c-e70f-422c-97b5-390521257b44"}],"id":"2ff2ccbd-b2e3-4e45-924a-b93c0fff792b","description":"<p>Common APIs are typically a set of frequently used or foundational APIs that are essential for various operations within a system. These might include endpoints for basic CRUD (Create, Read, Update, Delete) operations, user management, authentication, and other utilities.</p>\n","_postman_id":"2ff2ccbd-b2e3-4e45-924a-b93c0fff792b"},{"name":"Warehouses","item":[{"name":"Get Warehouses","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"776d5c6c-0059-49c6-bf5d-a1a4325fe545"}}],"id":"ed4a703b-e114-4332-aaa4-04d7e71c55e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/warehouse","description":"<p>This endpoint retrieves a list of available warehouses, which serve as pickup locations for processing orders. By providing the warehouse addresses, this endpoint facilitates efficient order processing and ensures faster delivery times.</p>\n","urlObject":{"path":["api","merchant","v1","warehouse"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Specifies the order in which the data should be sorted based on a particular key</p>\n","type":"text/plain"},"key":"sort","value":"-id"},{"disabled":true,"description":{"content":"<p>Filters the data based on the value of a specific key.</p>\n","type":"text/plain"},"key":"filter[unkown]","value":"Value"},{"disabled":true,"description":{"content":"<p>Indicates the page number of the results to retrieve.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Specifies the number of items to return per page.</p>\n","type":"text/plain"},"key":"take","value":"10"}],"variable":[]}},"response":[{"id":"452af93f-b34b-48c5-94cf-cd5a84a08ecd","name":"Get Warehouses 200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/warehouse"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 16:54:50 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"current_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"9cb1883e-3b39-43e3-aef3-1e94f3e173d4\",\n            \"name\": \"Test\",\n            \"long\": null,\n            \"lat\": null,\n            \"address\": \"baghdad\",\n            \"creator_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n            \"updator_id\": null,\n            \"created_at\": \"2024-08-05 16:04:49\",\n            \"updated_at\": \"2024-08-05 16:04:49\"\n        }\n    ],\n    \"first_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/warehouse?page=1\",\n    \"from\": 1,\n    \"last_page\": 1,\n    \"last_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/warehouse?page=1\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"pagination.previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/warehouse?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"pagination.next\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": null,\n    \"path\": \"https://api-v2.tasleem.app/api/merchant/v1/warehouse\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": 1,\n    \"total\": 1\n}"}],"_postman_id":"ed4a703b-e114-4332-aaa4-04d7e71c55e3"},{"name":"Add Warehouse","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"id":"8d9aff20-39b3-4795-a56b-7f48831568c2"}}],"id":"9546741d-5624-49d5-98eb-c55443df4193","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"string\",\n\t\"phone\": \"string\",\n    \"secondary_phone\": \"string,nullable\",\n\t\"governorate_id\": \"relation (Governorate ID)\",\n    \"address\": \"string\",\n    \"lat\": \"string\",\n\t\"long\": \"string\",\n    \"availability_times_from\": \"nullable|date_format:H:i\",\n    \"availability_times_to\": \"nullable|date_format:H:i\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/warehouse","description":"<p>This endpoint is used to add a new warehouse to the system. The warehouse details, including its address, will be stored and made available for use as a pickup location in order processing.</p>\n","urlObject":{"path":["api","merchant","v1","warehouse"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"45a3bcf5-e562-4f3a-8cd4-f53eff0b5af5","name":"Post Warehouses","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Warehouse 1\",\n    \"address\": \"Baghdad, Inner Karrada\",\n    \"lat\": \"33.303257\",\n    \"long\": \"44.354321\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/warehouse"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:33:37 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Update warehouse successfully\",\n    \"data\": {\n        \"name\": \"Warehouse 1\",\n        \"long\": \"44.354321\",\n        \"lat\": \"33.303257\",\n        \"address\": \"Baghdad, Inner Karrada\",\n        \"id\": \"9ccc0f2a-7029-4ac5-9524-64ecb4911310\",\n        \"creator_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n        \"updated_at\": \"2024-08-18 20:33:37\",\n        \"created_at\": \"2024-08-18 20:33:37\"\n    }\n}"}],"_postman_id":"9546741d-5624-49d5-98eb-c55443df4193"},{"name":"Update Warehouse","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{},"id":"3fa6550d-862f-4b2c-9880-c6252897556e"}}],"id":"cd35eea3-b020-4424-a57c-650c70ad9c2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"string\",\n    \"address\": \"string\",\n    \"lat\": \"string\",\n    \"long\": \"string\",\n    \"phone\": \"string\",\n    \"governorate_id\": \"nullable, relation (Governorate ID)\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/warehouse/{order_id}","description":"<p>This endpoint is used to update the details of an existing warehouse. You can modify the warehouse's information, such as its address or name, to ensure accurate and up-to-date records for order processing and pickup locations.</p>\n","urlObject":{"path":["api","merchant","v1","warehouse","{order_id}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd35eea3-b020-4424-a57c-650c70ad9c2b"},{"name":"Delete Warehouse","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{},"id":"3d156e4c-ecd9-4336-8fd3-372c2012d782"}}],"id":"44f5d5ce-701b-47d8-aff6-1960ec71c562","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/warehouse/{order_id}","description":"<p>This endpoint is used to delete an existing warehouse from the system. Once removed, the warehouse will no longer be available as a pickup location or used in order processing.</p>\n","urlObject":{"path":["api","merchant","v1","warehouse","{order_id}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"44f5d5ce-701b-47d8-aff6-1960ec71c562"},{"name":"Set Warehouse Business Hours","id":"6cf6259d-1724-4956-b6d0-0f4812c733b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"warehouse_id\": \"9edcbf39-6aa3-4f4a-97e1-443a9039134c\",\n    \"business_hours\": {\n        \"sunday\": {\n            \"opens_at\": \"08:00\",\n            \"closes_at\": \"17:00\",\n            \"is_closed\": true\n        },\n        \"monday\": {\n            \"opens_at\": \"08:00\",\n            \"closes_at\": \"17:00\",\n            \"is_closed\": false  \n        },\n        \"tuesday\": {\n            \"opens_at\": \"08:00\",\n            \"closes_at\": \"17:00\",\n            \"is_closed\": false\n        },\n        \"wednesday\": {\n            \"opens_at\": \"08:00\",\n            \"closes_at\": \"17:00\",\n            \"is_closed\": false\n        },\n        \"thursday\": {\n            \"opens_at\": \"08:00\",\n            \"closes_at\": \"17:00\",\n            \"is_closed\": false\n        },\n        \"friday\": {\n            \"opens_at\": null,\n            \"closes_at\": null,\n            \"is_closed\": true\n        },\n        \"saturday\": {\n            \"opens_at\": \"08:00\",\n            \"closes_at\": \"13:00\",\n            \"is_closed\": false\n        }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/warehouse/business_hour","description":"<p>This API is used to set the warehouse's availability time. It allows you to update and define the business hours during which the warehouse operates. This helps indicate when order pickups can be scheduled. If no availability is set, it will be assumed that pickups are allowed at any time.</p>\n","urlObject":{"path":["api","merchant","v1","warehouse","business_hour"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cf6259d-1724-4956-b6d0-0f4812c733b5"}],"id":"beefe3cd-0442-4bac-a61c-a96adb3f7e16","description":"<p>The warehouse is the designated location where your items are securely stored. To ensure efficient order fulfillment, pickups will be scheduled according to the specific location of the warehouse where your items are kept. This helps streamline the process and minimize delays, allowing for a smoother and more organized retrieval of your goods.</p>\n","_postman_id":"beefe3cd-0442-4bac-a61c-a96adb3f7e16"},{"name":"Category","item":[{"name":"Get Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"f21457ba-41ec-4301-acf5-b0319bdbccdd"}}],"id":"6b296622-b56d-495a-83fa-104bb9b29e41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/ordery_category","description":"<p>This endpoint retrieves the available order categories, which assist both merchants and AL-WSL in classifying and identifying orders. By categorizing orders, this endpoint enhances organization and improves order management efficiency.</p>\n","urlObject":{"path":["api","merchant","v1","ordery_category"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Specifies the order in which the data should be sorted based on a particular key</p>\n","type":"text/plain"},"key":"sort","value":"-id"},{"disabled":true,"description":{"content":"<p>Filters the data based on the value of a specific key.</p>\n","type":"text/plain"},"key":"filter[unkown]","value":"Value"},{"disabled":true,"description":{"content":"<p>Indicates the page number of the results to retrieve.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Specifies the number of items to return per page.</p>\n","type":"text/plain"},"key":"take","value":"10"}],"variable":[]}},"response":[{"id":"2208c9a9-f800-4a71-9063-9486a961cdfd","name":"Get Category","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{base_url}}/api/merchant/v1/ordery_category","host":["{{base_url}}"],"path":["api","merchant","v1","ordery_category"],"query":[{"key":"sort","value":"-id","description":"Specifies the order in which the data should be sorted based on a particular key","disabled":true},{"key":"filter[unkown]","value":"Value","description":"Filters the data based on the value of a specific key.","disabled":true},{"key":"page","value":"1","description":"Indicates the page number of the results to retrieve.\n","disabled":true},{"key":"take","value":"10","description":"Specifies the number of items to return per page.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:59:40 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"97"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"current_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"9ccc03dc-aba1-4cfd-bc9a-5f48a860cd76\",\n            \"name\": \"VIP Package\",\n            \"merchant_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n            \"deleted_at\": null,\n            \"created_at\": \"2024-08-18T17:02:00.000000Z\",\n            \"updated_at\": \"2024-08-18T17:02:00.000000Z\"\n        }\n    ],\n    \"first_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category?page=1\",\n    \"from\": 1,\n    \"last_page\": 1,\n    \"last_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category?page=1\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"pagination.previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"pagination.next\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": null,\n    \"path\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": 1,\n    \"total\": 1\n}"}],"_postman_id":"6b296622-b56d-495a-83fa-104bb9b29e41"},{"name":"Create Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"id":"90013f66-27d6-4915-b722-2d248240a6d6"}}],"id":"59c1758a-931b-40c2-a1b1-e7d78efae0d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/ordery_category","description":"<p>This endpoint is used to create a new order category. Defining order categories helps organize and classify orders, improving management and processing efficiency for both merchants and AL-WSL.</p>\n","urlObject":{"path":["api","merchant","v1","ordery_category"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"7e157399-9052-49c6-ab58-f230bc1d39b1","name":"Create Category","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Category Name\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/ordery_category"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Mon, 19 Aug 2024 01:17:48 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Order category created.\",\n    \"data\": {\n        \"name\": \"Category Name\",\n        \"merchant_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n        \"id\": \"9cccb52d-240d-4d53-a8a3-4665dc4b8349\",\n        \"updated_at\": \"2024-08-19T01:17:48.000000Z\",\n        \"created_at\": \"2024-08-19T01:17:48.000000Z\"\n    }\n}"}],"_postman_id":"59c1758a-931b-40c2-a1b1-e7d78efae0d2"},{"name":"Update Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{},"id":"40346ef7-7d92-4a17-9e62-1f29296505b4"}}],"id":"36341307-4dbf-47c4-a6af-a010d1f63b41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/ordery_category/9cccb52d-240d-4d53-a8a3-4665dc4b8349","description":"<p>This endpoint is used to update an existing order category. Modifying the category details helps maintain accurate and relevant classifications, enhancing the organization and management of orders.</p>\n","urlObject":{"path":["api","merchant","v1","ordery_category","9cccb52d-240d-4d53-a8a3-4665dc4b8349"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"bc6b0825-fc5d-45ce-a47a-d1130db9cf1e","name":"Update Category","originalRequest":{"method":"PUT","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Category Name\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/ordery_category/9cccb52d-240d-4d53-a8a3-4665dc4b8349"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Mon, 19 Aug 2024 01:18:40 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"97"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Order category update.\",\n    \"data\": {\n        \"id\": \"9cccb52d-240d-4d53-a8a3-4665dc4b8349\",\n        \"name\": \"New Category Name\",\n        \"merchant_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n        \"deleted_at\": null,\n        \"created_at\": \"2024-08-19T01:17:48.000000Z\",\n        \"updated_at\": \"2024-08-19T01:18:40.000000Z\"\n    }\n}"}],"_postman_id":"36341307-4dbf-47c4-a6af-a010d1f63b41"},{"name":"Delete Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{},"id":"f80fb49c-0554-496a-9837-1be2bff28efc"}}],"id":"fe8d4d6e-fd1a-45f2-8df7-49f630874791","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/ordery_category/9cccb52d-240d-4d53-a8a3-4665dc4b8349","description":"<p>This endpoint is used to delete an existing order category. Once deleted, the category will no longer be available for organizing or classifying orders, which may affect how orders are managed and processed.</p>\n","urlObject":{"path":["api","merchant","v1","ordery_category","9cccb52d-240d-4d53-a8a3-4665dc4b8349"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe8d4d6e-fd1a-45f2-8df7-49f630874791"}],"id":"87410151-7272-4bac-96c5-3ec9871ae511","_postman_id":"87410151-7272-4bac-96c5-3ec9871ae511","description":""},{"name":"Orders","item":[{"name":"Get Orders","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"a9ac08ea-43c3-40e4-9514-87885d570f3d"}}],"id":"75321e32-ce8b-4b08-9ca2-52263cf95dcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/order","description":"<p>This endpoint retrieves a list of orders that match the specified criteria. It allows you to filter and obtain orders based on various parameters, facilitating efficient order management and analysis.</p>\n","urlObject":{"path":["api","merchant","v1","order"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Available includes: customer, governorate, warehouse, status, orderItems, orderCategory</p>\n","type":"text/plain"},"key":"include","value":""}],"variable":[]}},"response":[{"id":"f79772b7-a7e4-440d-ba72-dbeda1698ba5","name":"Get Order","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{base_url}}/api/merchant/v1/order?include=status&sort=-id","host":["{{base_url}}"],"path":["api","merchant","v1","order"],"query":[{"key":"include","value":"status"},{"key":"sort","value":"-id"},{"key":"filter[tr]","value":"xxxxxxxxx","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:04:56 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"current_page\": 1,\n    \"data\": [],\n    \"first_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/order?page=1\",\n    \"from\": null,\n    \"last_page\": 1,\n    \"last_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/order?page=1\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"pagination.previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/order?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"pagination.next\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": null,\n    \"path\": \"https://api-v2.tasleem.app/api/merchant/v1/order\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": null,\n    \"total\": 0\n}"}],"_postman_id":"75321e32-ce8b-4b08-9ca2-52263cf95dcc"},{"name":"Create Order","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"id":"86470896-a6fc-4741-806b-6d4e7adb45d7"}}],"id":"26036d9e-4604-4a6d-b96b-96f9a11bb9e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"tr\": \"12345xx1234xx\",\n    \"warehouse_id\": \"9ecc6a29-1c28-44a5-a0a7-4464f9771e9d\",\n    \"customer_name\": \"Mahmood A.Shakir\",\n    \"customer_phone\": \"07701088892\",\n    \"customer_address\": \"Al-Karrada Inner\",\n    \"amount\": \"10000\",\n    \"governorate_id\": \"98b177ed-4b3e-481b-889a-a3d39c855f05\",\n    \"order_category_id\": \"9ecc6a1f-9570-4571-9bca-b082ac6e7683\",\n    \"notes\": \"<string, optional>\",\n    \"business_name\": \"<string, optional>\",\n    \"destination_coordinate\": \"33.309385,44.423414\",\n    \"is_amount_included_delivery_price\": \"1\",\n    \"scheduled_delivery_date_from\": \"2024-01-01 12:00:00\",\n    \"scheduled_delivery_date_to\": \"2024-01-01 12:00:00\",\n    \"estimated_preparing_time\": \"HH:MM\",\n    \"delivery_type\": 0,\n    \"order_items\": [\n        {\n            \"name\": \"تلفون\",\n            \"attribute_id\": \"03167743-69d9-476b-99f3-504ed6e02846\",\n            \"weight\": \"1\",\n            \"unit\": \"KG\",\n            \"count\": \"1\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/order","description":"<p>This endpoint is used to create a new order.</p>\n<p><strong>Note:</strong> governorate_id accepts both governorate ID or Number, you can use whatever suites you.</p>\n<h3 id=\"order-data\"><strong>Order Data:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Value</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tr</td>\n<td>string</td>\n<td>Unique string for tracking the order</td>\n</tr>\n<tr>\n<td>customer_name</td>\n<td>string</td>\n<td>Name of the customer</td>\n</tr>\n<tr>\n<td>customer_phone</td>\n<td>string</td>\n<td>Customer's phone number</td>\n</tr>\n<tr>\n<td>customer_address</td>\n<td>string</td>\n<td>Full address of the customer</td>\n</tr>\n<tr>\n<td>destination_coordinate</td>\n<td>string (lat,long, nullable)</td>\n<td>GPS coordinates for delivery destination</td>\n</tr>\n<tr>\n<td>scheduled_delivery_date_from</td>\n<td>date (nullable)</td>\n<td>Scheduled date for order delivery from date</td>\n</tr>\n<tr>\n<td>scheduled_delivery_date_to</td>\n<td>date (nullable)</td>\n<td>Scheduled date for order delivery to date</td>\n</tr>\n<tr>\n<td>governorate_id</td>\n<td>relation (Governorate ID or Governorate Number)</td>\n<td>ID or Number of the delivery governorate</td>\n</tr>\n<tr>\n<td>warehouse_id</td>\n<td>relation (Warehouse ID)</td>\n<td>ID and location of the pickup warehouse</td>\n</tr>\n<tr>\n<td>order_category_id</td>\n<td>relation (Category Id)</td>\n<td>ID of the order category</td>\n</tr>\n<tr>\n<td>estimated_preparing_time</td>\n<td>string (hh:mm, nullable)</td>\n<td>Estimated time to prepare the order</td>\n</tr>\n<tr>\n<td>delivery_type</td>\n<td>integer</td>\n<td>Delivery type (e.g., 0 = Regular, 1 = Fast)</td>\n</tr>\n<tr>\n<td>order_items[]</td>\n<td>nullable</td>\n<td>List of items included in the order</td>\n</tr>\n<tr>\n<td>order_items[].name</td>\n<td>string</td>\n<td>Name of the product</td>\n</tr>\n<tr>\n<td>order_items[].weight</td>\n<td>number</td>\n<td>Product weight</td>\n</tr>\n<tr>\n<td>order_items[].unit</td>\n<td>string</td>\n<td>Product weight unit ( KG, MG ... etc)</td>\n</tr>\n<tr>\n<td>order_items[].attribute_id</td>\n<td>relation (Attribute ID)</td>\n<td>Special handling requirement (e.g., fragile, temperature-sensitive).</td>\n</tr>\n<tr>\n<td>order_items[].count</td>\n<td>string</td>\n<td>Quantity of the product ordered</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v1","order"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"26036d9e-4604-4a6d-b96b-96f9a11bb9e1"},{"name":"Delete Order","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{},"id":"18c62322-b3f3-4065-add5-4613970a7f7c"}}],"id":"d8f0cf24-7e80-4e85-bf70-2d2bdca3b352","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/order/1671600","description":"<p>This endpoint deletes an order based on its order ID. Note that the order must be in 'pending' status to be eligible for deletion.</p>\n","urlObject":{"path":["api","merchant","v1","order","1671600"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e0701712-5125-4817-bfe9-4ad010f8a3e0","name":"Delete Order","originalRequest":{"method":"DELETE","header":[{"key":"x-api-key","value":"Em9EZIwFpIPvC5KMzlYBWhPXVFfEZlHOFjbAcaDpkKOfDwXqai0VcGYld5la\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/order/{order_id}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:08:48 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"96"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"model not found\",\n    \"data\": []\n}"}],"_postman_id":"d8f0cf24-7e80-4e85-bf70-2d2bdca3b352"},{"name":"Get Order By ID","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"2fea48df-189b-4ea4-8dae-27064730107b"}}],"id":"38b92414-3693-4cd5-a4e4-0e903103910e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/order/{order_id}","description":"<p>This endpoint retrieves order details using order ID.</p>\n","urlObject":{"path":["api","merchant","v1","order","{order_id}"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"52653a0b-a5e6-408d-a89e-be2d7340c911","name":"Get Order By ID","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{base_url}}/api/merchant/v1/order/22?include=status&=","host":["{{base_url}}"],"path":["api","merchant","v1","order","22"],"query":[{"key":"include","value":"status"},{"key":"","value":""},{"key":"","value":"","disabled":true}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:59:16 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"model not found\",\n    \"data\": []\n}"}],"_postman_id":"38b92414-3693-4cd5-a4e4-0e903103910e"},{"name":"Check TR","id":"b83063bf-a454-4689-8066-bccdd4be4849","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/order/check-tr-exists/TS123456","description":"<p>This endpoint checks whether the TR has been used or not.</p>\n","urlObject":{"path":["api","merchant","v1","order","check-tr-exists","TS123456"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"85b57e09-784a-4580-8dde-7b9eea730444","name":"Check TR","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/order/check-tr-exists/TS123456"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 20:03:55 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"exists\": false\n}"}],"_postman_id":"b83063bf-a454-4689-8066-bccdd4be4849"},{"name":"Generate TR","id":"91b3016c-8f14-479b-96a8-4e9149c245d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/generate-tr-code","description":"<p>This endpoint generates unique TR to use in creating new order</p>\n","urlObject":{"path":["api","merchant","v1","generate-tr-code"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"482d378f-1be7-4ccf-8b7e-df8658478d37","name":"Generate TR","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/generate-tr-code"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Mon, 19 Aug 2024 00:50:11 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"TR Code generated successfully\",\n    \"data\": {\n        \"tr_code\": \"TS73052705\"\n    }\n}"}],"_postman_id":"91b3016c-8f14-479b-96a8-4e9149c245d2"}],"id":"db4bdc1b-dffc-44fe-9909-c17b1843f367","_postman_id":"db4bdc1b-dffc-44fe-9909-c17b1843f367","description":""},{"name":"Account","item":[{"name":"Get My Details","id":"b01db13a-205f-4b3a-8457-113b2665f2be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/auth/details","description":"<p>This endpoint is used to retrieve account details.</p>\n","urlObject":{"path":["api","merchant","auth","details"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"include","value":"documents"}],"variable":[]}},"response":[{"id":"41696a83-8912-4426-ab14-86be996a031c","name":"Get My Details","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{base_url}}/api/merchant/auth/details","host":["{{base_url}}"],"path":["api","merchant","auth","details"],"query":[{"key":"include","value":"documents","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Mon, 19 Aug 2024 00:57:48 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n    \"full_name\": \"07701088892\",\n    \"short_name\": null,\n    \"business_name\": \"Mahmood\",\n    \"phone\": \"07701088892\",\n    \"is_active\": true,\n    \"creator_id\": 1,\n    \"updator_id\": null,\n    \"created_at\": \"2024-07-28T12:25:24.000000Z\",\n    \"updated_at\": \"2024-07-28T12:25:24.000000Z\",\n    \"governorate_id\": null,\n    \"avg_orders_per_month\": 0,\n    \"lat\": null,\n    \"lng\": null,\n    \"front_personal_id\": null,\n    \"back_personal_id\": null,\n    \"merchant_id\": null,\n    \"referral_type\": null,\n    \"referral\": null,\n    \"status\": 1\n}"}],"_postman_id":"b01db13a-205f-4b3a-8457-113b2665f2be"}],"id":"0d2f2c84-003c-4403-b697-2d52f898fe56","_postman_id":"0d2f2c84-003c-4403-b697-2d52f898fe56","description":""},{"name":"Employees","item":[{"name":"Get Employees","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"f2a7953e-49d0-41f9-a3c1-a5e4117a4abe"}}],"id":"8d258e0a-3196-4a41-98a1-51155c045edf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/employee","description":"<p>This endpoint is used to retrive employees accounts.</p>\n","urlObject":{"path":["api","merchant","v1","employee"],"host":["{{base_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Specifies the order in which the data should be sorted based on a particular key</p>\n","type":"text/plain"},"key":"sort","value":"-id"},{"disabled":true,"description":{"content":"<p>Filters the data based on the value of a specific key.</p>\n","type":"text/plain"},"key":"filter[unkown]","value":"Value"},{"disabled":true,"description":{"content":"<p>Indicates the page number of the results to retrieve.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Specifies the number of items to return per page.</p>\n","type":"text/plain"},"key":"take","value":"10"}],"variable":[]}},"response":[{"id":"f8cf9fe1-c12e-4946-a05a-049a13efd53b","name":"Get Category","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{base_url}}/api/merchant/v1/ordery_category","host":["{{base_url}}"],"path":["api","merchant","v1","ordery_category"],"query":[{"key":"sort","value":"-id","description":"Specifies the order in which the data should be sorted based on a particular key","disabled":true},{"key":"filter[unkown]","value":"Value","description":"Filters the data based on the value of a specific key.","disabled":true},{"key":"page","value":"1","description":"Indicates the page number of the results to retrieve.\n","disabled":true},{"key":"take","value":"10","description":"Specifies the number of items to return per page.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 17:59:40 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"97"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"current_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"9ccc03dc-aba1-4cfd-bc9a-5f48a860cd76\",\n            \"name\": \"VIP Package\",\n            \"merchant_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n            \"deleted_at\": null,\n            \"created_at\": \"2024-08-18T17:02:00.000000Z\",\n            \"updated_at\": \"2024-08-18T17:02:00.000000Z\"\n        }\n    ],\n    \"first_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category?page=1\",\n    \"from\": 1,\n    \"last_page\": 1,\n    \"last_page_url\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category?page=1\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"pagination.previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": null,\n            \"label\": \"pagination.next\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": null,\n    \"path\": \"https://api-v2.tasleem.app/api/merchant/v1/ordery_category\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": 1,\n    \"total\": 1\n}"}],"_postman_id":"8d258e0a-3196-4a41-98a1-51155c045edf"},{"name":"Create Employee","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"id":"ffb6f6c4-28c6-42d2-a7c7-5cd4896df9f4"}}],"id":"b07cc48a-6441-4eee-bfbc-38bdf0a43789","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"full_name\": \"string\",\n    \"phone\": \"string,unique\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/employee","description":"<p>This endpoint is used to create a new employee account.</p>\n","urlObject":{"path":["api","merchant","v1","employee"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"b8d1f348-368d-44a6-807e-5d9361adba41","name":"Post Category","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"category 1\"\n \n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/ordery_category"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"must-revalidate, no-cache, no-store, post-check=0, pre-check=0, private"},{"key":"Date","value":"Sun, 18 Aug 2024 18:00:36 GMT"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Permitted-Cross-Domain-Policies","value":"master-only"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"Sat, 26 Jul 1997 05:00:00 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Order category created.\",\n    \"data\": {\n        \"name\": \"category 1\",\n        \"merchant_id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n        \"id\": \"9ccc18d1-4c44-4475-a7bc-6d98e4dd22d6\",\n        \"updated_at\": \"2024-08-18T18:00:36.000000Z\",\n        \"created_at\": \"2024-08-18T18:00:36.000000Z\"\n    }\n}"}],"_postman_id":"b07cc48a-6441-4eee-bfbc-38bdf0a43789"},{"name":"Update Employee","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{},"id":"0fe29b9e-3be1-49a1-a7f0-f579396e2f1e"}}],"id":"a47c2b2c-661f-462e-8a4b-3910a05d88e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/v1/employee/{employee_id}","description":"<p>This endpoint is used to update account details.</p>\n","urlObject":{"path":["api","merchant","v1","employee","{employee_id}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a47c2b2c-661f-462e-8a4b-3910a05d88e4"},{"name":"Delete Employee","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{},"id":"5233153e-f4e7-4c81-8e8c-a0e59d2e620f"}}],"id":"0bc62398-0646-42ca-875e-3a8ada7b806b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/merchant/v1/employee/{employee_id}","description":"<p>This endpoint is used to delete employee account details.</p>\n","urlObject":{"path":["merchant","v1","employee","{employee_id}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0bc62398-0646-42ca-875e-3a8ada7b806b"}],"id":"8696b1d3-8e6f-42c7-860e-e5e761c1aaf8","_postman_id":"8696b1d3-8e6f-42c7-860e-e5e761c1aaf8","description":""},{"name":"Webhook","item":[{"name":"Testing the Webhook","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{},"id":"aac8fd89-5fc5-44b8-bf06-e0eb0df0dd69"}}],"id":"191e83f5-149c-467c-8006-a4ab26bd7150","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api_key}}","type":"text"}],"url":"{{base_url}}/api/merchant/v1/webhook/send/{tr}","description":"<p>To facilitate testing, we provide an API allowing users to trigger webhook events manually. This enables users to validate the webhook setup and response handling.</p>\n<h4 id=\"trigger-webhook-api\">Trigger Webhook API</h4>\n<ul>\n<li><p><strong>Endpoint</strong>: <code>/api/merchant/v1/webhook/send/{tr}</code></p>\n</li>\n<li><p><strong>Method</strong>: <code>POST</code></p>\n</li>\n<li><p><strong>Path Parameters</strong>:</p>\n<ul>\n<li><code>tr</code>: the order tr to be referenced in the payload (get it from Get Orders API)</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["api","merchant","v1","webhook","send","{tr}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"191e83f5-149c-467c-8006-a4ab26bd7150"}],"id":"5cd524b4-5aef-412e-a883-efeed559d658","description":"<p>Our webhook enables seamless communication between our system and external systems by notifying them of key order-related events. When an order is created, updated, or deleted, our system sends a notification via the webhook to keep the external system synchronized.</p>\n<h3 id=\"how-it-works\">How It Works</h3>\n<ul>\n<li><p><strong>Event Trigger</strong>: Whenever an order is created, updated, or deleted in our system.</p>\n</li>\n<li><p><strong>Webhook Notification</strong>: A POST request is sent to the URL provided by the user. This request contains details about the event and the order.</p>\n</li>\n<li><p><strong>Payload</strong>: The payload includes order information (such as order ID, status, and other relevant data) and the type of event (create, update, or delete).</p>\n</li>\n</ul>\n<h3 id=\"webhook-payload-example\">Webhook Payload Example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"opration\": \"updated\",\n  \"data\": {\n    \"id\": 1671605,\n    \"uuid\": \"18cc5282-7bb1-4edf-b0a6-3f5b3f964459\",\n    \"tr\": \"1234567\",\n    \"bn\": null,\n    \"nd\": null,\n    \"long\": null,\n    \"lat\": null,\n    \"rate\": 0,\n    \"company_id\": null,\n    \"driver_id\": null,\n    \"merchant_id\": \"9c9b24e9-b4b6-419e-bda8-535d90185553\",\n    \"warehouse_id\": \"9c9f2691-29dc-4dfe-b035-d994b0290234\",\n    \"status_id\": \"71e506c5-3f72-432c-b02e-1b26030c8125\",\n    \"amount\": 0,\n    \"verification_type\": 0,\n    \"delivery_service_provider_id\": null,\n    \"customer_id\": \"9cb572fd-5418-48e0-8985-5021aaddd2c5\",\n    \"user_updator_id\": null,\n    \"driver_updator_id\": null,\n    \"last_four_digits\": 9642,\n    \"governorate_id\": \"1faef8e4-6678-4fa8-97f4-89dbd7a1049b\",\n    \"provider_type\": 1,\n    \"created_at\": \"2024-08-07 14:48:42\",\n    \"updated_at\": \"2024-08-07 14:48:42\",\n    \"image\": null,\n    \"order_category_id\": \"9cb3a031-ebd3-4e7b-878b-2218d85516d9\",\n    \"warehouse\": {\n      \"id\": \"9c9f2691-29dc-4dfe-b035-d994b0290234\",\n      \"name\": \"بغداد\",\n      \"long\": null,\n      \"lat\": null,\n      \"address\": \"بغداد الكرادة\",\n      \"governorate_id\": null,\n      \"creator_id\": \"9c9b24e9-b4b6-419e-bda8-535d90185553\",\n      \"updator_id\": null,\n      \"created_at\": \"2024-07-27 12:46:47\",\n      \"updated_at\": \"2024-07-27 12:46:47\"\n    },\n    \"status\": {\n      \"id\": \"71e506c5-3f72-432c-b02e-1b26030c8125\",\n      \"name\": \"Pending\",\n      \"color\": \"8E44AD\",\n      \"image\": null\n    },\n    \"order_category\": {\n      \"id\": \"9cb3a031-ebd3-4e7b-878b-2218d85516d9\",\n      \"name\": \"demo\",\n      \"merchant_id\": \"9c9b24e9-b4b6-419e-bda8-535d90185553\",\n      \"deleted_at\": null,\n      \"created_at\": \"2024-08-06T14:03:27.000000Z\",\n      \"updated_at\": \"2024-08-06T14:03:27.000000Z\"\n    },\n    \"governorate\": {\n      \"id\": \"1faef8e4-6678-4fa8-97f4-89dbd7a1049b\",\n      \"name\": \"Baghdad\"\n    },\n    \"merchant\": {\n      \"id\": \"9c9b24e9-b4b6-419e-bda8-535d90185553\",\n      \"full_name\": \"Mahmood\",\n      \"short_name\": null,\n      \"business_name\": \"Al Wasl\",\n      \"parent_merchant_id\": null,\n      \"phone\": \"0770xxxxxxx\",\n      \"is_active\": true,\n      \"creator_id\": 3,\n      \"updator_id\": null,\n      \"created_at\": \"2024-07-25T09:58:51.000000Z\",\n      \"updated_at\": \"2024-08-29T11:50:48.000000Z\",\n      \"governorate_id\": null,\n      \"avg_orders_per_month\": 0,\n      \"lat\": null,\n      \"lng\": null,\n      \"front_personal_id\": null,\n      \"back_personal_id\": null,\n      \"merchant_id\": null,\n      \"referral_type\": null,\n      \"referral\": null,\n      \"status\": 1\n    }\n  }\n}\n\n</code></pre>\n<h2 id=\"order-statuses\"><strong>Order Statuses</strong></h2>\n<p>The following order statuses may be received:</p>\n<ul>\n<li><p><strong>InDeliveryCompanyWarehouse</strong>: The order has been received by WSL, and the delivery process has started.</p>\n</li>\n<li><p><strong>Received</strong>: The order is being sent to the delivery driver.</p>\n</li>\n<li><p><strong>Delayed</strong>: The customer requested delivery on a different day.</p>\n</li>\n<li><p><strong>Returned</strong>: The customer declined to receive the order.</p>\n</li>\n<li><p><strong>Delivered</strong>: The customer successfully received the order.</p>\n</li>\n</ul>\n","_postman_id":"5cd524b4-5aef-412e-a883-efeed559d658"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"759f406e-4c7c-4b10-b616-b40b72b319dd"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"4e7ea580-c225-4fb9-bdac-d0b774dfa10e"}}]}