{"info":{"_postman_id":"67ee059b-9e40-476e-9899-477e352e2e57","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 Ebhar Tajr 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>Mahmood A.Shakir</p>\n<p><a href=\"mailto:contact@mahmoodshakir.com\">contact@mahmoodshakir.com</a></p>\n<p>+964 770 108 8892</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"40788482","collectionId":"67ee059b-9e40-476e-9899-477e352e2e57","publishedId":"2sAYJ99xyg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-04T12:09:04.000Z"},"item":[{"name":"Common APIs","item":[{"name":"Get Statuses","id":"5296aece-784c-4a0c-ad12-d161a89f3a10","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":"5296aece-784c-4a0c-ad12-d161a89f3a10"},{"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":"fb046a17-271a-4e88-9e41-3d8eafc5ed10"}}],"id":"83ef7edc-24ad-4ea0-ac72-248e995c3fb5","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":"3fc2be17-a82f-45e9-810e-7b9b862a416d","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":"83ef7edc-24ad-4ea0-ac72-248e995c3fb5"}],"id":"75d6778b-df4a-4629-911a-a66ce3c94334","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":"75d6778b-df4a-4629-911a-a66ce3c94334"},{"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":"db30a669-bf96-461e-84c6-1737ce8997d5"}}],"id":"bcdad623-b49b-4649-82bb-03794c9fd836","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"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":"7e8ce7ec-4091-4602-ac0d-9d92523bfb4d","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":"bcdad623-b49b-4649-82bb-03794c9fd836"},{"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":"b32ea57f-f27b-4e1b-960c-be96c807a604"}}],"id":"559fbff8-da5c-4d4b-976b-cb0473f3ce91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"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    \"phone\": \"07701088892\",\n    \"governorate_id\": \"XXXXXXXX\"\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":"e9ef195c-e09f-4b28-9701-54c65c33e15b","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":"559fbff8-da5c-4d4b-976b-cb0473f3ce91"},{"name":"Update Warehouse","event":[{"listen":"test","script":{"id":"071bf5d3-ee97-4290-966d-fc74a4a6eccd","exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{}}}],"id":"c6cbbecd-628a-4c16-984f-850ef289c8f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Warehouse 1\",\n    \"address\": \"Baghdad, Inner Karrada\",\n    \"lat\": \"33.303257\",\n    \"long\": \"44.354321\",\n    \"phone\": \"07701088892\",\n    \"governorate_id\": \"XXXXXXXX\"\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":"c6cbbecd-628a-4c16-984f-850ef289c8f3"},{"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":"73fe7274-96f1-4259-9289-8155118a7e9f"}}],"id":"28dc6943-a310-40dc-8b52-b7e08b785089","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":"28dc6943-a310-40dc-8b52-b7e08b785089"}],"id":"ccf026da-20ae-4014-ad30-077cbcc0d103","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":"ccf026da-20ae-4014-ad30-077cbcc0d103"},{"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":"76fa0e44-4df8-449c-96df-16ab346cfd83"}}],"id":"79beda9d-4563-45ba-9ff4-cafdc41de36f","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":"6442d7c2-337d-4f43-ba89-590646ab0d24","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":"79beda9d-4563-45ba-9ff4-cafdc41de36f"},{"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":"fcec5bbf-d544-4915-8ec0-e644cc5bca2a"}}],"id":"81d0216b-b7c2-4dc7-8491-1d71155b3778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"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","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":"cea3c4d2-e048-41b2-88d9-a99cd453faf7","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":"81d0216b-b7c2-4dc7-8491-1d71155b3778"},{"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":"58378063-21f2-4c51-a5ff-649aa722922b"}}],"id":"93cd2c84-5b09-403c-97fa-769588f6e82e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"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","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":"44c16673-7934-45f0-9af2-24104b451bc5","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":"93cd2c84-5b09-403c-97fa-769588f6e82e"},{"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":"ef97b1d1-9a72-43a9-a623-880ca4adc7c4"}}],"id":"c82dbb57-18ec-4f73-8d9a-a60a0ef19781","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":"c82dbb57-18ec-4f73-8d9a-a60a0ef19781"}],"id":"f9150d47-f8ae-4f51-abf2-45c6fb8fb056","_postman_id":"f9150d47-f8ae-4f51-abf2-45c6fb8fb056","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":"f2a916e0-128c-4179-b668-e7deb99ab41d"}}],"id":"0b55ef21-1cbf-48a5-a619-e67f571c8a37","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":[],"variable":[]}},"response":[{"id":"072ca0de-d5d7-4e81-9f99-eb1b10d541ab","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":"0b55ef21-1cbf-48a5-a619-e67f571c8a37"},{"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":"d68c41a4-c657-48c7-a1e0-92c89fc1151a"}}],"id":"017f88d8-e872-4452-9a73-34ea7bfc38c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"tr\": \"TS8703352\",\n  \"warehouse_id\": \"9c9f2691-29dc-4dfe-b035-d994b0290234\",\n  \"customer_name\": \"Mahmood A.Shakir\",\n  \"business_name\": \"Ebhar\",\n  \"customer_phone\": \"9647701088892\",\n  \"governorate_id\": \"4e6d2866-09b9-47cf-97f3-0ef029f58ca5\",\n  \"customer_address\": \"Inner Karrada\",\n  \"order_category_id\": \"9cb3a031-ebd3-4e7b-878b-2218d85516d9\",\n  \"destination_coordinate\": \"33.309385,44.423414\",\n  \"amount\": 0,\n  \"is_amount_included_delivery_price\": 0\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","urlObject":{"path":["api","merchant","v1","order"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"017f88d8-e872-4452-9a73-34ea7bfc38c7"},{"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":"7d5e880c-156e-4925-a940-af32eeb068a3"}}],"id":"6b02f9da-911e-485c-9363-fc4d49cb475e","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":"e3724504-a4a2-4dfa-89e7-49592d5fe2ec","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":"6b02f9da-911e-485c-9363-fc4d49cb475e"},{"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":"84fa0421-296f-44cc-92be-3d3c2a0ac897"}}],"id":"5499ff32-c67e-4b31-82ec-ca6d90a1fd83","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":"97a80cb3-9bf3-45f5-8715-d79a5b0dbe2c","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":"5499ff32-c67e-4b31-82ec-ca6d90a1fd83"},{"name":"Check TR","id":"2624b719-9b3d-47ee-8455-7ce623f403f7","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":"e916903d-e08f-4c72-af07-034e2a9fde83","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":"2624b719-9b3d-47ee-8455-7ce623f403f7"},{"name":"Generate TR","id":"9de6d3d7-5e4f-4928-a7cf-e7006e001de9","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":"0b7af1bb-e7c5-47af-97ed-3dd33ca36ffe","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":"9de6d3d7-5e4f-4928-a7cf-e7006e001de9"}],"id":"700afc27-af2d-4449-a79e-a223f754802a","_postman_id":"700afc27-af2d-4449-a79e-a223f754802a","description":""},{"name":"Account","item":[{"name":"Get My Details","id":"faea3d4e-8a15-4b3e-81f2-43ed113fe8da","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":"2fc1523c-b0bf-4e9a-9a51-95540160a697","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":"faea3d4e-8a15-4b3e-81f2-43ed113fe8da"},{"name":"Update my details","id":"6715ce89-e5ea-4a60-8856-3f8379d352a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"Mahmood A.Shakir\",\n  \"business_name\": \"Al-WSL\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/auth/profile","description":"<p>This endpoint is used to update account details.</p>\n","urlObject":{"path":["api","merchant","auth","profile"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"df5c800e-2de3-4752-a4cd-65f37ab0163d","name":"Update my details","originalRequest":{"method":"PUT","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"Mahmood A.Shakir\",\n  \"business_name\": \"Al-WSL\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/merchant/auth/profile"},"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:01:42 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 profile successfully\",\n    \"data\": {\n        \"id\": \"9ca16246-ab53-4244-8cf7-ef295a0d92d1\",\n        \"full_name\": \"Mahmood A.Shakir\",\n        \"short_name\": null,\n        \"business_name\": \"Al-WSL\",\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-08-19T01:01:42.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}"}],"_postman_id":"6715ce89-e5ea-4a60-8856-3f8379d352a6"}],"id":"b08e63e6-8feb-44a5-941d-d5a0c4cd9a4d","_postman_id":"b08e63e6-8feb-44a5-941d-d5a0c4cd9a4d","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":"98529aac-cd94-4700-9bc6-58e5d4cf5dd7"}}],"id":"0c97eb50-4044-45b2-9062-9de11458f5b0","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":"7eac1e82-079b-455b-86bc-240f6f4d8c16","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":"0c97eb50-4044-45b2-9062-9de11458f5b0"},{"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":"d1538e85-473a-4ee4-93ae-515b40792d87"}}],"id":"28a22064-aabd-4391-86f9-a8b9ec1e3cad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"full_name\": \"Employee 1\",\n    \"phone\": \"07701088888\"\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":"c48ee29a-d4f2-4214-a89d-d307af7e00d2","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":"28a22064-aabd-4391-86f9-a8b9ec1e3cad"},{"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":"62105dd3-74ca-4612-879e-89bdb313d5a9"}}],"id":"8fa51f76-9b34-4553-990c-10e0483ff1ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Add your name in the body\"\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":"8fa51f76-9b34-4553-990c-10e0483ff1ec"},{"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":"c8e040d5-6946-4af5-b1bb-f6bb8de742a0"}}],"id":"e91493f8-5614-4a3c-983c-a222a1b3c18a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"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":"e91493f8-5614-4a3c-983c-a222a1b3c18a"}],"id":"8862f998-7c22-4874-8282-25a2ebf1e8ce","_postman_id":"8862f998-7c22-4874-8282-25a2ebf1e8ce","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":"fa7887e0-a7ae-4e18-a00d-3265f70466b3"}}],"id":"b27bbf70-2025-4e3d-95cb-0b2782575409","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":"b27bbf70-2025-4e3d-95cb-0b2782575409"}],"id":"e8bf5873-6b5b-4e9e-b29a-5ae6e9d7d8e2","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    \"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":"e8bf5873-6b5b-4e9e-b29a-5ae6e9d7d8e2"}]}