{"info":{"_postman_id":"9507618b-816e-4c33-a731-13da37315d93","name":"Vendor","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"8538142","collectionId":"9507618b-816e-4c33-a731-13da37315d93","publishedId":"Tz5ndzTX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-10T19:46:05.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"cd998f19-1dbf-407a-94e6-796610e4ecb0","protocolProfileBehavior":{"disableBodyPruning":true,"followRedirects":true,"strictSSL":false},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","type":"text","value":"{{vendor_email}}"},{"key":"password","type":"text","value":"{{vendor_password}}"}]},"url":"{{api_url}}/vendor/auth/gettoken","description":"<p>Login user and get the token</p>\n","urlObject":{"path":["vendor","auth","gettoken"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd998f19-1dbf-407a-94e6-796610e4ecb0"},{"name":"Register","id":"10a0c86e-26b2-495c-b634-8a1b8d23d005","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"JOHN DOE"},{"key":"email","value":"john@example.com","type":"text"},{"key":"phone","value":"123456789121","type":"text"},{"key":"password","value":"123456789","type":"text"},{"key":"vendor_name","value":"Buena Vista","type":"text"},{"key":"app_secret","value":"APP_SECRET","type":"text"}]},"url":"{{api_url}}/vendor/auth/register","description":"<p>Login user and get the token</p>\n","urlObject":{"path":["vendor","auth","register"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"10a0c86e-26b2-495c-b634-8a1b8d23d005"},{"name":"Get user data","id":"0882d9e0-9f88-4d40-9bca-ef020685e2c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/vendor/auth/data?api_token={{vendor_api_token}}","description":"<p>Get current user logged in data</p>\n","urlObject":{"path":["vendor","auth","data"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"0882d9e0-9f88-4d40-9bca-ef020685e2c8"},{"name":"Deactivate","id":"4aa55f10-2c4b-4ca7-b659-d7947d98e2ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/vendor/auth/deactivate?api_token={{vendor_api_token}}","description":"<p>Deactivate user</p>\n","urlObject":{"path":["vendor","auth","deactivate"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"4aa55f10-2c4b-4ca7-b659-d7947d98e2ad"}],"id":"906f1447-ac72-4de8-9f46-928487f5ef3e","_postman_id":"906f1447-ac72-4de8-9f46-928487f5ef3e","description":""},{"name":"Orders","item":[{"name":"List of orders","id":"038905b6-54a3-4494-8b8c-7eda49db9724","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{api_url}}/vendor/orders?api_token={{vendor_api_token}}","urlObject":{"path":["vendor","orders"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"038905b6-54a3-4494-8b8c-7eda49db9724"},{"name":"Order info","id":"6ec33a2a-da60-4f76-88a5-242f01ff1fb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{api_url}}/vendor/orders/order/1?api_token={{vendor_api_token}}","urlObject":{"path":["vendor","orders","order","1"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"6ec33a2a-da60-4f76-88a5-242f01ff1fb8"},{"name":"Earnings","id":"dce3e080-7ef7-4470-afc1-5f1762d48555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{api_url}}/vendor/orders/earnings?api_token={{vendor_api_token}}","urlObject":{"path":["vendor","orders","earnings"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"dce3e080-7ef7-4470-afc1-5f1762d48555"},{"name":"Update order status","id":"d1dee242-b165-4b16-b0b4-1c151e8e4125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{api_url}}/vendor/orders/updateorderstatus/{{order_id}}/{{status_id}}?api_token={{vendor_api_token}}&comment={{comment_from_vendor}}","urlObject":{"path":["vendor","orders","updateorderstatus","{{order_id}}","{{status_id}}"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"},{"key":"comment","value":"{{comment_from_vendor}}"}],"variable":[]}},"response":[],"_postman_id":"d1dee242-b165-4b16-b0b4-1c151e8e4125"},{"name":"Reject order","id":"0a68f54b-9168-4a86-aca9-a28fe598183b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{api_url}}/vendor/orders/rejectorder/{{order_id}}?api_token={{vendor_api_token}}","urlObject":{"path":["vendor","orders","rejectorder","{{order_id}}"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"0a68f54b-9168-4a86-aca9-a28fe598183b"},{"name":"Accept order","id":"41c92c56-9452-4c16-ab6e-11c2bbb9e4a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{api_url}}/vendor/orders/acceptorder/{{order_id}}?api_token={{vendor_api_token}}","urlObject":{"path":["vendor","orders","acceptorder","{{order_id}}"],"host":["{{api_url}}"],"query":[{"key":"api_token","value":"{{vendor_api_token}}"}],"variable":[]}},"response":[],"_postman_id":"41c92c56-9452-4c16-ab6e-11c2bbb9e4a9"}],"id":"e9a5640c-69a7-4621-93b8-0f5c0a727b59","_postman_id":"e9a5640c-69a7-4621-93b8-0f5c0a727b59","description":""},{"name":"Settings","item":[{"name":"App settings","id":"05f67ae6-44f4-4b26-ae79-7422d5c672d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"}],"url":"{{api_url}}/vendor/settings","urlObject":{"path":["vendor","settings"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"05f67ae6-44f4-4b26-ae79-7422d5c672d4"}],"id":"a1c66e87-90ff-4cc1-8741-7165dc3ad5a9","_postman_id":"a1c66e87-90ff-4cc1-8741-7165dc3ad5a9","description":""},{"name":"Reservations","item":[],"id":"15d1857a-38e2-4d07-8f99-4d6f29fed290","_postman_id":"15d1857a-38e2-4d07-8f99-4d6f29fed290","description":""},{"name":"Update Reservation","id":"c1ddac25-ab68-4001-93cf-02928946a6eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"{{token}}","type":"text"},{"key":"reservation_id","value":"1","type":"text"},{"key":"table_id","value":"12","type":"text"}]},"url":"{{api_endpoint}}api/updatereservation","description":"<p>This endpoint is used to update a reservation by making an HTTP POST request to {{api_endpoint}}api/updatereservation. The request should include the following parameters in the x-www-form-urlencoded request body:</p>\n<ul>\n<li><p><code>token</code>: A text parameter containing the authentication token.</p>\n</li>\n<li><p><code>reservation_id</code>: A text parameter representing the ID of the reservation to be updated.</p>\n</li>\n<li><p><code>table_id</code>: A text parameter indicating the ID of the new table for the reservation.</p>\n</li>\n</ul>\n<p>The response to this request will include the updated reservation details, reflecting any changes made as a result of the request.</p>\n","urlObject":{"path":["updatereservation"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1ddac25-ab68-4001-93cf-02928946a6eb"},{"name":"Create Reservations","id":"96e3b5a7-4956-474b-b033-f00ce176f4ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"sTyzDzhYusOKGsGecWn7BN65PTuVRgOjGsd6Dj2rcbbdf398","type":"text"},{"key":"reservation_time","value":"10:45","type":"text"},{"key":"number_of_guests","value":"2","type":"text"},{"key":"channel","value":"api","type":"text"},{"key":"name","value":"Daniel Dimov mk","type":"text"},{"key":"phone","value":"+232343434","type":"text"},{"key":"status","value":"confirmed","type":"text"}]},"url":"{{api_endpoint}}api/createreservation","description":"<h3 id=\"create-reservation\">Create Reservation</h3>\n<p>This endpoint allows you to create a new reservation.</p>\n<h4 id=\"request-body-parameters\">Request Body Parameters</h4>\n<ul>\n<li><p><code>token</code> (text): The authentication token.</p>\n</li>\n<li><p><code>reservation_time</code> (text): The time for the reservation.</p>\n</li>\n<li><p><code>number_of_guests</code> (text): The number of guests for the reservation.</p>\n</li>\n<li><p><code>channel</code> (text): The channel through which the reservation was made.</p>\n</li>\n<li><p><code>name</code> (text): The name of the guest for the reservation.</p>\n</li>\n<li><p><code>phone</code> (text): The contact phone number for the guest.</p>\n</li>\n<li><p><code>status</code> (text): The status of the reservation.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"reservation_id\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["createreservation"],"host":["{{api_endpoint}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"96e3b5a7-4956-474b-b033-f00ce176f4ce"}]}