{"info":{"_postman_id":"b8dd20af-3f10-4271-8278-b0ab4eff5ad3","name":"Dual Link API","description":"<html><head></head><body><p><strong>Version 4.0</strong></p>\n<hr>\n<h1 id=\"how-to-authenticate\">How to authenticate</h1>\n<p>To use all API endpoints you must have a valid token. As soon as you get the token, you must include in all the request headers. This methos gives you a secure access to the API link every requuest to your user account.</p>\n<p>Every business will have his own token, and you must add the header \"Authorization\" with the value of the token for each venue.</p>\n<hr>\n<h1 id=\"url-endpoint-variables\">URL endpoint variables</h1>\n<p>Dual Link will give the right values for every venue so you can use in your own integration. The varibales are represented in the URL enpoint with brackets</p>\n<p>{{server}} : The server/host computer where all the API and db are allocation. Could be diferent for each venue, country and so on.</p>\n<p>{{business_id}} : The identifier of Dual Link business. Each venue / business has his own ID (UUID).</p>\n<p><strong>Header variables</strong></p>\n<p>{{token}} : The authentication token that links the business with the user account.</p>\n<hr>\n<h1 id=\"api-notes\">API Notes</h1>\n<p>All API request must be use the HTTPS protocol. We don't support the non secure HTTP protocol.</p>\n<p>The mayority of the Dual Link API is like a RESTful API but with a few modifications:</p>\n<ul>\n<li>The API request can be GET, POST, PUT, PATCH or DELETE depends on the action.</li>\n<li>All IDs in the API are a string represation of 36 UUID characters.</li>\n<li>You can consider that all response with a code other than 200 like an error.</li>\n<li>All reponses are return in a JSON format</li>\n</ul>\n<hr>\n<h1 id=\"response-format\">Response format</h1>\n<p>All succesful resquest gives a response in a JSON format with the attribute 'status' and the value 'OK' and the attribute 'data' with the result values. Be aware that the attribute 'data' is always an array.</p>\n<code>\n{  \n    \"status\": \"OK\",  \n    \"data\": [{  \n        ...  \n    }]  \n}  \n</code>\n\n<p>If the request result has an error, (even if you get a 200 HTTP code), the response will give a JSON object with the attribute 'status' and with the value 'Error'. Also you'll get another 2 more attributes, the 'error_code' and 'error_message'</p>\n<code>\n{  \n    \"status\": \"Error\",  \n    \"error_message\": \"Business Not found\",  \n    \"error_code\": 100  \n}  \n</code>\n\n\n<hr>\n<h1 id=\"bit-flag-option-flag-structure\">Bit flag / option flag structure</h1>\n<p>To store some structures like allergies, we store in a Integer variable in the form of bit flag / option flag. It's efficient in memory and bandwidth and you can store several values into one integer without the need to create a key for each value. It's a common pattern in C code, but because could be strange for a web developer we like to point out how it works.</p>\n<p>Every integer is represented in bit 0 or 1. For example this table shows you a small example of the converion betwen a number (decimal) and his binary representation</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Binary value</th>\n<th>decimal value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>000</td>\n<td>0</td>\n</tr>\n<tr>\n<td>001</td>\n<td>1</td>\n</tr>\n<tr>\n<td>010</td>\n<td>2</td>\n</tr>\n<tr>\n<td>011</td>\n<td>3</td>\n</tr>\n<tr>\n<td>100</td>\n<td>4</td>\n</tr>\n</tbody>\n</table>\n</div><p>The idea is to use every bit position to hold on of the values. For example: if of declaring serveral options or enum like:</p>\n<p>option1 = 0<br>option2 = 1<br>option3 = 2<br>option4 = 3  </p>\n<p>you only can hold in a variable one option at one time. Or is option 1 or 2 but not both.</p>\n<p>instead, if we declare:  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Declaration</th>\n<th>binary value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>option1 = 1</td>\n<td>000<strong>1</strong></td>\n</tr>\n<tr>\n<td>option2 = 2</td>\n<td>00<strong>1</strong>0</td>\n</tr>\n<tr>\n<td>option3 = 4</td>\n<td>0<strong>1</strong>00</td>\n</tr>\n<tr>\n<td>option4 = 8</td>\n<td><strong>1</strong>000</td>\n</tr>\n</tbody>\n</table>\n</div><p>You can have multiple options in one variable. For example if the value of the variable is 3 (0<strong>11</strong>) that meas you have the option 1 (00<strong>1</strong>) and the option 2 (0<strong>1</strong>0) at the same time. The binary AND operation result from option1 + option2 is 3 (0<strong>11</strong>). </p>\n<p>Another exmaple: </p>\n<p>if have the value 5 (<strong>1</strong>0<strong>1</strong>) that means you have the option1 (00<strong>1</strong>) and the option3 (<strong>1</strong>00)</p>\n<h1 id=\"allergies-values\">Allergies values</h1>\n<ul>\n<li>Gluten       = 1</li>\n<li>Crustaceans  = 2</li>\n<li>Eggs         = 4</li>\n<li>Fish         = 8</li>\n<li>Peanuts      = 16</li>\n<li>Soya         = 32</li>\n<li>Milk         = 64</li>\n<li>Nuts         = 128</li>\n<li>Celery       = 256</li>\n<li>Mustard      = 512</li>\n<li>Sesame       = 1024</li>\n<li>Sulphates    = 2048</li>\n<li>Mollusk      = 4096</li>\n<li>Lupins       = 8192</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"How to authenticate","slug":"how-to-authenticate"},{"content":"URL endpoint variables","slug":"url-endpoint-variables"},{"content":"API Notes","slug":"api-notes"},{"content":"Response format","slug":"response-format"},{"content":"Bit flag / option flag structure","slug":"bit-flag-option-flag-structure"},{"content":"Allergies values","slug":"allergies-values"}],"owner":"1656383","collectionId":"b8dd20af-3f10-4271-8278-b0ab4eff5ad3","publishedId":"TW77f3Ro","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-02-09T22:24:56.000Z"},"item":[{"name":"Bookings","item":[{"name":"Get bookings","id":"15228bd6-f867-4e06-b534-ba2dbbacfe67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{server}}/api/online/{{business_id}}/booking","description":"<p>Return the full list of the bookings.</p>\n<p>Be aware that could a lot of reservations. Uusally we recomend to use the the endpoint to retrieve the booking with a filter.</p>\n","urlObject":{"protocol":"https","path":["api","online","{{business_id}}","booking"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"15228bd6-f867-4e06-b534-ba2dbbacfe67"},{"name":"Get bookings with filters","id":"e47fa3fa-30e6-4f7d-af8b-238feb9d0a9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"filter\": {\n        \"where\": \"status = 0\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://{{server}}/api/online/{{business_id}}/booking","description":"<p>This is recomened methos to retireve the booking you want. You can and filter asking about the status, date and so on.</p>\n<p>The sintax is like an SQL WHERE style but with a few improvements, for example: we support key path so you can search inside second table relation. \nExamples: </p>\n<ul>\n<li>\"status == 0\"</li>\n<li>\"status == 0 AND status == 1\"</li>\n<li>\"client.name CONTAINS 'John'\"</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","online","{{business_id}}","booking"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e47fa3fa-30e6-4f7d-af8b-238feb9d0a9f"},{"name":"Insert booking","id":"0fc702f8-188d-4fb7-93a5-804f19bc2dfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"allergens\": 1,\n    \"allergies\": true,\n    \"hour\": \"19:45\",\n    \"language\": \"es\",\n    \"nationalities\": \"es, en\",\n    \"pax\": 2,\n    \"paxAttend\": 0,\n    \"paxInvited\": 0,\n    \"comments\": \"Dusty guy\",\n    \"deposit\": 0,\n    \"duration\": 90,\n    \"isPaid\": false,\n    \"status\": 0,\n    \"client\": {\n        \"name\": \"Indiana Jones\",\n        \"email\": \"indy@duallink.com\",\n        \"phone\": \"919191919\",\n        \"mobilePhone\": \"123123123\",\n        \"address1\": \"First line of the address\",\n        \"address2\": \"Piso 4B\",\n        \"city\": \"Alicante\",\n        \"state\": \"Alicante\",\n        \"postalCode\": \"03550\",\n        \"countryCode\": \"es\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{server}}/api/online/{{business_id}}/booking","description":"<p>To insert a booking to need to add several keys in the request body  </p>\n<h1 id=\"booking-keys\">booking keys:</h1>\n<ul>\n<li><strong>status</strong>: 0         // [Integer] The booking status. See the the booking status.  </li>\n<li><strong>hour</strong>: \"19:45\"     // [String]  The time the reservation was book for.  </li>\n<li><strong>pax</strong>: 2            // [Integer] The number of people in the reservation (covers).  </li>\n<li><strong>client</strong>: {}        // [Client Object] The information about a client/customer.  </li>\n<li><strong>allergens</strong>: 1      // [Integer] <em>Optional</em>. The number (bit flag style) of the allergies. To know which allergies they have.  </li>\n<li><strong>allergies</strong>: true   // [Boolean] <em>Optional</em>. Just a check to know if the customer really check on the web if they have or haven't allergies.  </li>\n<li><strong>language</strong>: \"es\"    // [String]  <em>Optional</em>. The main language in iso2 format of the reservation. This is good to assign the waiter to speak the langauge of the customer.  </li>\n<li><strong>nationalities</strong>: \"es, en\" // [String] <em>Optional</em>. To know if they need a waiter with several languages to assis the customer on the table better. The format is iso2.  </li>\n<li><strong>paxAttend</strong>: 0      // [Integer] <em>Optional</em>. The number of people that are already in the venue. With this infromation the kitchen can now if every one of the reservation are there or they need to wait to the others.  </li>\n<li><strong>paxInvited</strong>: 0     // [Integer] <em>Optional</em>. Means how many people the waiter or the cashier need to invite like PR, friends, etc...  </li>\n<li><strong>comments</strong>: \"Dusty guy\" // [String] <em>Optional</em>. Any note the venue (waiter, kitchen, etc) need to know about the reservation.  </li>\n<li><strong>deposit</strong>: 0        // [Double] <em>Optional</em>. If they already give to the venue a deposit. Be aware that a deposit doesn't means it pay the full amount of the booking.  </li>\n<li><strong>duration</strong>: 90     // [Integer] <em>Optional</em>. How much time the reservation can be on the table.  </li>\n<li><strong>isPaid</strong>: false     // [Boolean] <em>Optional</em>. If all the reservation are paid before.</li>\n</ul>\n<h1 id=\"client-keys\">client keys:</h1>\n<ul>\n<li><strong>name</strong>: \"Indiana Jones\"       // [String] </li>\n<li><strong>countryCode</strong>: \"es\"           // [String] iso2 format  </li>\n<li><strong>email</strong>: \"<a href=\"mailto:indy@duallink.com\">indy@duallink.com</a>\"  // [String] <em>Optional</em>  </li>\n<li><strong>phone</strong>: \"919191919\"          // [String] <em>Optional</em>  </li>\n<li><strong>mobilePhone</strong>: \"123123123\"    // [String] <em>Optional</em>  </li>\n<li><strong>address1</strong>: \"First line of the address\" // [String] <em>Optional</em>  </li>\n<li><strong>address</strong>: \"Piso 4B\"         // [String] <em>Optional</em>  </li>\n<li><strong>city</strong>: \"Alicante\"            // [String] <em>Optional</em>  </li>\n<li><strong>state</strong>: \"Alicante\"           // [String] <em>Optional</em>  </li>\n<li><strong>postalCode</strong>: \"03550\"         // [String] <em>Optional</em></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","online","{{business_id}}","booking"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fc702f8-188d-4fb7-93a5-804f19bc2dfb"},{"name":"Update booking","id":"6e04790c-69dc-4147-a3ad-8b67d1d4656d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"allergens\": 3,\n    \"client\": {\n        \"countryCode\": \"es\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{server}}/api/online/{{business_id}}/booking","urlObject":{"protocol":"https","path":["api","online","{{business_id}}","booking"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e04790c-69dc-4147-a3ad-8b67d1d4656d"},{"name":"Delete booking","id":"8fc12c6d-4232-4543-802f-1b857aaaeed6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://{{server}}/api/online/{{business_id}}/booking","urlObject":{"protocol":"https","path":["api","online","{{business_id}}","booking"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8fc12c6d-4232-4543-802f-1b857aaaeed6"}],"id":"a4b22524-44e0-484f-8a99-883cf723408c","description":"<p>In our system, the bookings could have diferent statuses and in every status you can link to an action like sending and email when the status change.</p>\n<p>All posible status values are:</p>\n<ul>\n<li><strong>Request</strong>:(tIsh e inital status. Is really a request so the business can reject that request becuase there's no room for make a booking.</li>\n<li><strong>Assigned</strong>: This is a half status, the booking was accepted but is not paid. Depends on the configuration, after several days, if still is not paid the system can change to the status 'cancelled'.</li>\n<li><strong>Reserved</strong>: The normal status. The booking is assigned to a Zone or a Table and it's paid.</li>\n<li><strong>Confirmed</strong>: The purpose of this status is make a double check. Depends on the configuration, but usually, 2 day before the date, the system sends an email to remember the user the date of teh booking.</li>\n<li><strong>Finished</strong>: The booking are finished. Means there no one on the table anymore. The customer went out of the venue.</li>\n<li><strong>Waiting</strong>: The booking is in a waiting list.</li>\n<li><strong>Cancelled</strong>: The booking is cancelled by the user. </li>\n<li><strong>Denied</strong>: The booking is denied/cancelled by the business.</li>\n<li><strong>NoShow</strong>: This means that the customer didn't show up. Depends on the configuration could be a penaluty charge in the credict card of the customer.</li>\n<li><strong>NoCC</strong>: There's no credict card in the system so could not be apply a possible penalty if they didn't show up. It's posible to paid a booking with different pay methods but credict card is always the recomended one.</li>\n<li><strong>Deleted</strong>: The booking was 'deleted'. In our system we don't delete the booking, we only mark that was deleted, so in case you need to recover or get any information about what happend you can still check the booking.</li>\n<li><strong>CCCanceled</strong>: Some credict card providers has the ability to notify us if the credict card we store are cancelled or stolen. If you have the configuration active, when the system gets that notification the booking change to this status so the business can take any action like sending an email to the customer to update their credict card info.</li>\n<li><strong>Show</strong>: The customer is in the venue. This status has the ability to distinguish that they could be waiting in the bar to other collegues or just waiting to be seated in the table.</li>\n<li><strong>Sitting</strong>: Teh costumer is in the table.</li>\n</ul>\n<p>Every status are optional, every business can setup all the status they want to work with.</p>\n","event":[{"listen":"prerequest","script":{"id":"f2976870-6811-45b2-8b49-805249202a9c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d0da1ac7-65b8-4ec4-9243-f1d0921a81db","type":"text/javascript","exec":[""]}}],"_postman_id":"a4b22524-44e0-484f-8a99-883cf723408c"},{"name":"Online Order","item":[{"name":"Get Online Products","id":"079ca28e-5c97-4878-965c-2671d5192dd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderby\": [\n        {\n            \"name\": \"asc\"\n        }\n    ],\n    \"includeRelationships\": [\n        \"category\",\n        \"productModifiersCategories.productModifiers\"\n    ]\n}"},"url":"https://{{server}}/api/place/{{place_id}}/online/product","urlObject":{"protocol":"https","path":["api","place","{{place_id}}","online","product"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"079ca28e-5c97-4878-965c-2671d5192dd8"},{"name":"Insert OnlineOrder","event":[{"listen":"test","script":{"id":"87a28277-e189-4d81-8b77-241896150c2b","exec":[""],"type":"text/javascript"}}],"id":"49aaca5b-05a3-4e51-a692-6c0b7e0d55a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 3,\n    \"type\": 0,\n    \n    \"client_email\" : \"paco@gmail.com\",\n    \"client_name\" : \"Paco Ramirez\",\n    \"client_address\" : \"Otra dirección especial para este pedido, 1\",\n\n    \"comments\": \"comentario 2\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order","description":"<p>Inserta un OnlineOrder</p>\n<p>pax y type obligatorio\npax: numero de comensales\ntype: tipo de pedido: Take Away = 0, Delivery = 1, In Place = 2</p>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"3188a29b-f315-4d49-ba8a-10423b1c44a0","name":"Insert OnlineOrder with existing client id","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 2,\n    \"type\": 0,\n    \n    \"client_id\" : \"*PUT HERE A REAL ID OF A CLIENT IN THE DATABASE*\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 13 Feb 2020 12:54:55 GMT"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"Keep-Alive"},{"key":"Keep-Alive","value":"timeout=60"}],"cookie":[],"responseTime":null,"body":"12FBB213-4B78-4275-BE69-73D11470C011"},{"id":"35600247-c1a1-437d-8ee7-32492cde9bc8","name":"Insert OnlineOrder with client email and specific address","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 3,\n    \"type\": 0,\n    \n    \"client_email\" : \"paco@gmail.com\",\n    \"client_address\" : \"Otra dirección especial para este pedido, 1\",\n\n    \"comments\": \"comentario 2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 13 Feb 2020 12:54:55 GMT"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"Keep-Alive"},{"key":"Keep-Alive","value":"timeout=60"}],"cookie":[],"responseTime":null,"body":"12FBB213-4B78-4275-BE69-73D11470C011"},{"id":"ced6bca5-240c-4d02-bfd6-afdbb65a89b1","name":"Insert OnlineOrder with full client data","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Botella de Ron Cacique\",\n  \"allergens\": 4197,\n  \"barcode\": \"TD-D23R-01234\",\n  \"info\": \"short\",\n  \"detailedinfo\": \"detail\",\n  \"enabledfordelivery\": true,\n  \"enabledfortakeaway\": true,\n  \"enabledforwaiter\": true,\n  \"isavailable\": true,\n  \"isfavourite\": false,\n  \"measureunittype\": 5,\n  \"quantity\": 70,\n  \"price\": 30,\n  \"tags\": \"BEBIDA\",\n  \"category\": \"A42945D7-BB3D-4C00-A3A9-719F8B382092\",\n  \"tax\": \"A3BBE4B1-1C59-496F-8F52-D8947D550E48\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:44:17 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"118"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"version\": 1,\n        \"id\": \"23F565A6-CD82-4C2D-B844-074FC1346C62\",\n        \"onlineorderlineids\": []\n    }\n}"}],"_postman_id":"49aaca5b-05a3-4e51-a692-6c0b7e0d55a6"},{"name":"Get OnlineOrder","event":[{"listen":"test","script":{"id":"6b36d5b6-ccec-4186-8f05-bbf2e8dc996e","exec":[""],"type":"text/javascript"}}],"id":"9c4b9f53-44d8-43e9-b7d3-848c83c81ef3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 3,\n    \"type\": 0,\n    \n    \"client_email\" : \"paco@gmail.com\",\n    \"client_name\" : \"Paco Ramirez\",\n    \"client_address\" : \"Otra dirección especial para este pedido, 1\",\n\n    \"comments\": \"comentario 2\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order/{{online_order_id}}","description":"<p>Obtiene un OnlineOrder</p>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order","{{online_order_id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"15055029-f69c-4dde-866e-971cecbdfdfc","name":"Insert OnlineOrder with full client data","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Botella de Ron Cacique\",\n  \"allergens\": 4197,\n  \"barcode\": \"TD-D23R-01234\",\n  \"info\": \"short\",\n  \"detailedinfo\": \"detail\",\n  \"enabledfordelivery\": true,\n  \"enabledfortakeaway\": true,\n  \"enabledforwaiter\": true,\n  \"isavailable\": true,\n  \"isfavourite\": false,\n  \"measureunittype\": 5,\n  \"quantity\": 70,\n  \"price\": 30,\n  \"tags\": \"BEBIDA\",\n  \"category\": \"A42945D7-BB3D-4C00-A3A9-719F8B382092\",\n  \"tax\": \"A3BBE4B1-1C59-496F-8F52-D8947D550E48\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:44:17 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"118"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"version\": 1,\n        \"id\": \"23F565A6-CD82-4C2D-B844-074FC1346C62\",\n        \"onlineorderlineids\": []\n    }\n}"},{"id":"5de24d76-2e55-4eff-8179-125861588841","name":"Insert OnlineOrder with existing client id","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 2,\n    \"type\": 0,\n    \n    \"client_id\" : \"*PUT HERE A REAL ID OF A CLIENT IN THE DATABASE*\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 13 Feb 2020 12:54:55 GMT"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"Keep-Alive"},{"key":"Keep-Alive","value":"timeout=60"}],"cookie":[],"responseTime":null,"body":"12FBB213-4B78-4275-BE69-73D11470C011"},{"id":"b5725b4d-5c78-4c2f-a38b-8041d348cf4e","name":"Insert OnlineOrder with client email and specific address","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 3,\n    \"type\": 0,\n    \n    \"client_email\" : \"paco@gmail.com\",\n    \"client_address\" : \"Otra dirección especial para este pedido, 1\",\n\n    \"comments\": \"comentario 2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 13 Feb 2020 12:54:55 GMT"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"Keep-Alive"},{"key":"Keep-Alive","value":"timeout=60"}],"cookie":[],"responseTime":null,"body":"12FBB213-4B78-4275-BE69-73D11470C011"}],"_postman_id":"9c4b9f53-44d8-43e9-b7d3-848c83c81ef3"},{"name":"Calculate OnlineOrder Total","event":[{"listen":"test","script":{"id":"26beac9b-f168-4779-a52b-be1cbca92651","exec":[""],"type":"text/javascript"}}],"id":"5f677b36-7cd2-44ee-a0e4-8653147e32b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online-order/{{online_order_id}}/calculate-total","description":"<p>Obtiene un OnlineOrder</p>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online-order","{{online_order_id}}","calculate-total"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"199e04d8-9e34-4e8d-a0af-d5e0192ac274","name":"Insert OnlineOrder with client email and specific address","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 3,\n    \"type\": 0,\n    \n    \"client_email\" : \"paco@gmail.com\",\n    \"client_address\" : \"Otra dirección especial para este pedido, 1\",\n\n    \"comments\": \"comentario 2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 13 Feb 2020 12:54:55 GMT"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"Keep-Alive"},{"key":"Keep-Alive","value":"timeout=60"}],"cookie":[],"responseTime":null,"body":"12FBB213-4B78-4275-BE69-73D11470C011"},{"id":"d2d20868-73f3-4c71-8470-d024161701c1","name":"Insert OnlineOrder with existing client id","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"pax\": 2,\n    \"type\": 0,\n    \n    \"client_id\" : \"*PUT HERE A REAL ID OF A CLIENT IN THE DATABASE*\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 13 Feb 2020 12:54:55 GMT"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"Keep-Alive"},{"key":"Keep-Alive","value":"timeout=60"}],"cookie":[],"responseTime":null,"body":"12FBB213-4B78-4275-BE69-73D11470C011"},{"id":"dfa86831-3737-45e2-9566-2949c0f16d55","name":"Insert OnlineOrder with full client data","originalRequest":{"method":"PUT","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Botella de Ron Cacique\",\n  \"allergens\": 4197,\n  \"barcode\": \"TD-D23R-01234\",\n  \"info\": \"short\",\n  \"detailedinfo\": \"detail\",\n  \"enabledfordelivery\": true,\n  \"enabledfortakeaway\": true,\n  \"enabledforwaiter\": true,\n  \"isavailable\": true,\n  \"isfavourite\": false,\n  \"measureunittype\": 5,\n  \"quantity\": 70,\n  \"price\": 30,\n  \"tags\": \"BEBIDA\",\n  \"category\": \"A42945D7-BB3D-4C00-A3A9-719F8B382092\",\n  \"tax\": \"A3BBE4B1-1C59-496F-8F52-D8947D550E48\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:44:17 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"118"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"version\": 1,\n        \"id\": \"23F565A6-CD82-4C2D-B844-074FC1346C62\",\n        \"onlineorderlineids\": []\n    }\n}"}],"_postman_id":"5f677b36-7cd2-44ee-a0e4-8653147e32b2"},{"name":"Update Online Order","id":"c31cd379-2a75-4556-94ca-1c206255368b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"delivery_date\" : \"2020-05-15 18:00:00\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order/{{online_order_id}}","description":"<p>Actualiza un Online Order</p>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order","{{online_order_id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c31cd379-2a75-4556-94ca-1c206255368b"},{"name":"Checkout OnlineOrder [DEPRECATED]","id":"b68e8b95-cd0e-4eb3-9a66-5f946fbe1d42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order/checkout/{{online_order_id}}","description":"<p>Confirm online order and client data, will insert the Order in the configured POS (app_id in \"onlineorder-sync-app\" configuration), also a new client will be created if the client_id wasn't specified and the client_email didn't exist previously.</p>\n<ul>\n<li>Parameters:<ul>\n<li>onlineOrderID: online order identifier</li>\n<li>db_id: UUID String of the database</li>\n</ul>\n</li>\n<li>Returns: Identifier of the client</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order","checkout","{{online_order_id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"4db31671-714f-4396-996b-4d1869f0112c","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"b68e8b95-cd0e-4eb3-9a66-5f946fbe1d42"},{"name":"OnlineOrder Payment response","id":"8b34a15f-7a55-473f-9be6-6d95eaaaa0ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"success\" : true,\n\t\"money\" : 3,\n\t\"MarcaTarjeta\" : \"3\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order/pay_response/{{online_order_id}}/{{payment_entity_id}}","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.\nValidará y extraerá datos extra en función del paymentEntityID recibido y hará el checkout en la forma de pago correcta</p>\n<ul>\n<li>Parameters:<ul>\n<li>online_order_id: online order identifier, required</li>\n<li>payment_entity_id: identifier of the Payment Entity used in the payment (tabla paymententity en base de datos)</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order","pay_response","{{online_order_id}}","{{payment_entity_id}}"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"8202b377-5229-482b-bba3-78102ce488e4","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"8b34a15f-7a55-473f-9be6-6d95eaaaa0ed"},{"name":"OnlineOrder Payment Platform Redsys response","id":"fc4ae69b-4609-43f3-8b1c-964cfd2de2ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"text"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/payment-platform/redsys/response/81","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.</p>\n<ul>\n<li>Parameters:<ul>\n<li>payment_transaction_id: el último parámetro es el número de transacción de la tabla payment_transaction</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","payment-platform","redsys","response","81"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"1ebe5975-8050-47f6-a9e4-89ca58d7ccd5","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"fc4ae69b-4609-43f3-8b1c-964cfd2de2ae"},{"name":"Check Postal Code","id":"45e20219-0ce4-4887-8af6-18b632024b45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"postal_code\" : \"03015\"\n}"},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online-order/delivery-postal-code-check","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.\nValidará y extraerá datos extra en función del paymentEntityID recibido y hará el checkout en la forma de pago correcta</p>\n<ul>\n<li>Parameters:<ul>\n<li>online_order_id: online order identifier, required</li>\n<li>payment_entity_id: identifier of the Payment Entity used in the payment (tabla paymententity en base de datos)</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online-order","delivery-postal-code-check"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"3fda4bfd-92c0-4edc-8a16-d4ab3264c934","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"45e20219-0ce4-4887-8af6-18b632024b45"},{"name":"Get Available ranges","id":"ac7a33ea-87a3-4397-9e99-da2475cf2323","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online-order/available-ranges/2020-06-12","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.\nValidará y extraerá datos extra en función del paymentEntityID recibido y hará el checkout en la forma de pago correcta</p>\n<ul>\n<li>Parameters:<ul>\n<li>online_order_id: online order identifier, required</li>\n<li>payment_entity_id: identifier of the Payment Entity used in the payment (tabla paymententity en base de datos)</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online-order","available-ranges","2020-06-12"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"b78da509-18d3-43d7-888d-fe13056bc720","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"ac7a33ea-87a3-4397-9e99-da2475cf2323"},{"name":"Get First available range for today","id":"57d1229d-8068-431e-96f5-8b78ca6a2def","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online-order/first-available-range-for-today","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.\nValidará y extraerá datos extra en función del paymentEntityID recibido y hará el checkout en la forma de pago correcta</p>\n<ul>\n<li>Parameters:<ul>\n<li>online_order_id: online order identifier, required</li>\n<li>payment_entity_id: identifier of the Payment Entity used in the payment (tabla paymententity en base de datos)</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online-order","first-available-range-for-today"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"8f95d254-2d58-4ce5-adf2-895499803b48","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"57d1229d-8068-431e-96f5-8b78ca6a2def"},{"name":"Get TimeRange Groups","id":"3d27de42-6572-4316-a219-761af9a4cb8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order/timerange_group","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.\nValidará y extraerá datos extra en función del paymentEntityID recibido y hará el checkout en la forma de pago correcta</p>\n<ul>\n<li>Parameters:<ul>\n<li>online_order_id: online order identifier, required</li>\n<li>payment_entity_id: identifier of the Payment Entity used in the payment (tabla paymententity en base de datos)</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order","timerange_group"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"2a82bc03-7730-471c-adc3-5952111df9ae","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"3d27de42-6572-4316-a219-761af9a4cb8d"},{"name":"Get TimeRanges","id":"20241d36-bd64-4d3c-8e90-9564a3ebaf9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order/timerange","description":"<p>paymentResponse, aquí llamarán las apis de pago como respuesta de la transacción.\nValidará y extraerá datos extra en función del paymentEntityID recibido y hará el checkout en la forma de pago correcta</p>\n<ul>\n<li>Parameters:<ul>\n<li>online_order_id: online order identifier, required</li>\n<li>payment_entity_id: identifier of the Payment Entity used in the payment (tabla paymententity en base de datos)</li>\n</ul>\n</li>\n<li>Body: payload data with the response of the payment platform</li>\n<li>Returns: Identifier of the client (checkoutOnlineOrder response)</li>\n</ul>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order","timerange"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"52185d6d-1cdf-4a88-aa18-64d0ed3f38e0","name":"Checkout OnlineOrder","originalRequest":{"method":"GET","header":[{"key":"X-ThirdPartyUser-Auth","value":"{{token_id}}"},{"key":"Content-Type","value":"application/json"}],"url":"http://{{server}}/api/external/place/{{cpd_id}}/onlineordercheckout/06A447C6-9A4E-42C1-800B-7C3EE6164BE2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Sep 2019 16:59:41 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.1.13"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type"},{"key":"Access-Control-Allow-Methods","value":"POST, GET, PUT, DELETE, PATCH"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"20241d36-bd64-4d3c-8e90-9564a3ebaf9c"},{"name":"Insert OnlineOrderLine","id":"d18c4a91-6292-4e23-9339-002a6440f214","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"entity_id\": \"0D5D0F46-C63C-4E25-95EC-EBA2D9831E6D\",\n    \"online_order_id\": \"{{online_order_id}}\",\n    \"type\": 0,\n    \"quantity\": 2\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order_line","description":"<p>type: tipo de línea: 0 = Producto, 1 = Modificador\nentity_id: identificador del producto o del modificador\nonline_order_id: identificador del pedido que debe existir\nquantity: opcional, pero &gt; 0</p>\n<p>parent_id: cuando insertamos un modificador, el identificador de la línea de producto a la que modifica</p>\n","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order_line"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"16c5a90a-3b87-44b0-a33f-2029ef9a46d4","name":"Insert OnlineOrderLine with a Product","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"online_order_id\": \"id del pedido online\",\n    \"type\": 0,\n    \"entity_id\": \"id del producto en la base de datos\",\n    \"quantity\": 10\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/825BA4AE-EF12-4ACB-95B6-940535CEC36B/online_order_line"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"2665c190-f5e3-491a-9c01-175f3117ae6d","name":"Insert OnlineOrderLine with a Modifier","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"online_order_id\": \"id del pedido online\",\n    \"type\": 1,\n    \"entity_id\": \"id de modificador en la base de datos\",\n    \"parent_id\" : \"id de la línea de producto a la que se modifica\",\n    \"quantity\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/825BA4AE-EF12-4ACB-95B6-940535CEC36B/online_order_line"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d18c4a91-6292-4e23-9339-002a6440f214"},{"name":"Update Online Order Line","id":"76f48f04-b380-43a9-8bef-ecb146fa7510","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"quantity\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order_line/3F7E7A8C-5951-49D1-A7E1-EF21AE6652B9","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order_line","3F7E7A8C-5951-49D1-A7E1-EF21AE6652B9"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"76f48f04-b380-43a9-8bef-ecb146fa7510"},{"name":"Delete Online Order Line","id":"47c1422b-dd58-4651-bd81-1f5ee390eedd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://{{server}}/public/api/{{customer_endpoint}}/online_order_line/69F4D635-0FFB-4B4A-BAA6-4395AA3ADF93","urlObject":{"protocol":"http","path":["public","api","{{customer_endpoint}}","online_order_line","69F4D635-0FFB-4B4A-BAA6-4395AA3ADF93"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"47c1422b-dd58-4651-bd81-1f5ee390eedd"}],"id":"2f07e293-8b64-4ad1-8c49-6561ba50a8dc","_postman_id":"2f07e293-8b64-4ad1-8c49-6561ba50a8dc","description":""}],"event":[{"listen":"prerequest","script":{"id":"32bd2f1e-74c4-471d-b3fe-fabb663cfd71","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dd765ca6-bfbd-43e7-be64-e3834a629ef3","type":"text/javascript","exec":[""]}}]}