{"info":{"_postman_id":"fce18eb0-13a7-427b-8ae0-f6fa8efa2ff8","name":"API-CATCHER MARKETPLACE","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","_exporter_id":"20912892"},"item":[{"name":"Auth","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"appId\": \"{appId}\",\r\n        \"appSecret\" : \"{appSecret}\",\r\n        \"grant_type\": \"client_secret\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.catcher.es/auth/v1/authorize","protocol":"https","host":["api","catcher","es"],"path":["auth","v1","authorize"]}},"response":[]},{"name":"Create Order","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6Im9yZGVyIiwidXNlcklkIjo5LCJsb2NhdGlvbklkIjoiOWY2MTQwOGUzYWZiNjMzZTUwY2RmMWIyMGRlNmY1NjYiLCJpYXQiOjE2NjkwMzQ2MjEsImV4cCI6MTY2OTEyMTAyMX0.tMz0999QTn4YR9_KuV6p6e_ANpY_4E1zcZ4mV4ob0lE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"locationId\":\"{locationId}\",\r\n    \"orderPickupLocName\": \"Burger Food\",\r\n    \"orderPickupTime\": \"2022-11-21 17:35:00\",\r\n    \"orderPaymentMethod\": \"card\",\r\n    \"orderDeliveryLocation\": \"Calle de Núñez de Balboa, 112, 28006 Madrid, España | 34\",\r\n    \"addressDetails\": \"promer piso B\",\r\n    \"orderDeliveryLat\": \"39.479730\",\r\n    \"orderDeliveryLong\": \"-0.381910\",\r\n    \"orderPickupLocation\": \"Calle de reida, 17\",\r\n    \"orderPickupLat\": \"39.483619\",\r\n    \"orderPickupLong\": \"-0.376711\",\r\n    \"userPhone\": \"+34612345678\",\r\n    \"userName\":\"David Gonzales\", \r\n    \"orderSource\": \"glovo\", \r\n    \"orderTotalAmount\": \"1045\",\r\n    \"orderInstructions\":\"No incluir cubiertos.\", \r\n    \"orderCode\":\"MUVXG1N4\",\r\n    \"externalId\": \"ZKERF-2JUO-TYUN\",\r\n    \"orderPickupConfirmationCode\": \"\",\r\n    \"orderDeliveryConfirmationCode\": \"\",\r\n    \"orderSourceChannel\": \"\",\r\n    \"requestedVehicle\": \"\",\r\n    \"weightGrams\": 1500,\r\n    \"dimensionsMm\": {\r\n        \"length\": 300,\r\n        \"width\": 200,\r\n        \"height\": 150\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.catcher.es/pitcher/v1/order","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","order"]}},"response":[]},{"name":"Create Order V2","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY3MTEwMjk5MSwiZXhwIjoxNjcxMTg5MzkxfQ.NcagFN8JILSSzrLm0ZEm1r8AKj0glUPs25ekYMLUV-I","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"stacking\": false,\r\n    \"orders\": [ \r\n        {\r\n            \"locationId\":\"9f61408e3afb633e50cdf1b20de6wwe\",\r\n            \"orderPickupLocName\": \"Burger Food\",\r\n            \"orderPickupTime\": \"2022-11-24 20:35:00\",\r\n            \"orderPaymentMethod\": \"card\",\r\n            \"orderDeliveryLocation\": \"Calle de Núñez de Balboa, 112, 28006 Madrid, España | 34\",\r\n            \"addressDetails\": \"promer piso B\",\r\n            \"orderDeliveryLat\": \"39.479730\",\r\n            \"orderDeliveryLong\": \"-0.381910\",\r\n            \"orderPickupLocation\": \"Calle de Lleida, 17\",\r\n            \"orderPickupLat\": \"39.483619\",\r\n            \"orderPickupLong\": \"-0.376711\",\r\n            \"userPhone\": \"+34612345678\",\r\n            \"userName\":\"David Gonzales\",\r\n            \"orderSource\": \"Glovo\",\r\n            \"orderTotalAmount\": \"1045\",\r\n            \"orderInstructions\":\"No incluir cubiertos.\",\r\n            \"orderCode\":\"MUVXG1N5\",\r\n            \"externalId\": \"ZKERF-2JUO-TYUN\",\r\n            \"orderPickupConfirmationCode\": \"\",\r\n            \"orderDeliveryConfirmationCode\": \"\",\r\n            \"orderSourceChannel\": \"\"\r\n        },\r\n        {\r\n            \"locationId\":\"9f61408e3afb633e50cdf1b20de6wwe\",\r\n            \"orderPickupLocName\": \"Burger Food\",\r\n            \"orderPickupTime\": \"2022-11-24 20:35:00\",\r\n            \"orderPaymentMethod\": \"card\",\r\n            \"orderDeliveryLocation\": \"Calle de Núñez de Balboa, 112, 28006 Madrid, España | 34\",\r\n            \"addressDetails\": \"promer piso B\",\r\n            \"orderDeliveryLat\": \"39.479730\",\r\n            \"orderDeliveryLong\": \"-0.381910\",\r\n            \"orderPickupLocation\": \"Calle de Lleida, 17\",\r\n            \"orderPickupLat\": \"39.483619\",\r\n            \"orderPickupLong\": \"-0.376711\",\r\n            \"userPhone\": \"+34612345678\",\r\n            \"userName\":\"David Gonzales\",\r\n            \"orderSource\": \"Uber\",\r\n            \"orderTotalAmount\": \"1045\",\r\n            \"orderInstructions\":\"No incluir cubiertos.\",\r\n            \"orderCode\":\"MUVXG1N5\",\r\n            \"externalId\": \"ZKERF-2JUO-TYUN\",\r\n            \"orderPickupConfirmationCode\": \"\",\r\n            \"orderDeliveryConfirmationCode\": \"\",\r\n            \"orderSourceChannel\": \"\"\r\n        }\r\n    ]    \r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://staging.catcher.es/pitcher/v2/order","protocol":"https","host":["staging","catcher","es"],"path":["pitcher","v2","order"]}},"response":[]},{"name":"Cancel Order","request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY2ODk0NzAzMSwiZXhwIjoxNjY5MDMzNDMxfQ.ka5SInGrriadqcntUCBtVe13MltYYpBldIV9m6dpt-4","type":"text"}],"url":{"raw":"https://api.catcher.es/pitcher/v1/order/cancel/{orderId}","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","order","cancel","{orderId}"]}},"response":[]},{"name":"Update delivery price","request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY2ODk0NzAzMSwiZXhwIjoxNjY5MDMzNDMxfQ.ka5SInGrriadqcntUCBtVe13MltYYpBldIV9m6dpt-4","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"presetPrice\": \"4.9\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.catcher.es/pitcher/v1/external/order/{orderId}","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","external","order","{orderId}"]}},"response":[]},{"name":"Get Orders History","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY3NDA4MzQxOX0.Gph3fbUXuW16jlgdU7q9NnzXdNEkXtljJ4VKlYrNGtk","type":"text"}],"url":{"raw":"https://api.catcher.es/pitcher/v1/external/history/orders/{orderId}?dateFrom=2023-01-10&dateTo=2023-01-18&take=2&page=1&search=p","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","external","history","orders","{orderId}"],"query":[{"key":"dateFrom","value":"2023-01-10"},{"key":"dateTo","value":"2023-01-18"},{"key":"take","value":"2"},{"key":"page","value":"1"},{"key":"search","value":"p"}]}},"response":[]},{"name":"Get Order Status","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY2ODk0NzAzMSwiZXhwIjoxNjY5MDMzNDMxfQ.ka5SInGrriadqcntUCBtVe13MltYYpBldIV9m6dpt-4","type":"text"}],"url":{"raw":"https://api.catcher.es/pitcher/v1/order/status/{orderId}","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","order","status","{orderId}"]}},"response":[]},{"name":"Get Order Details","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY2ODk0NzAzMSwiZXhwIjoxNjY5MDMzNDMxfQ.ka5SInGrriadqcntUCBtVe13MltYYpBldIV9m6dpt-4","type":"text"}],"url":{"raw":"https://api.catcher.es/pitcher/v1/order/{orderId}?finish_details=true","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","order","{orderId}"],"query":[{"key":"finish_details","value":"true","description":"Optional. Set to true to include finishDetails in the response; omit or use another value to exclude finishDetails."}]}},"response":[{"name":"Get Order Detail - 200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjg3OSwiZW1haWwiOiJtYXJjb3MuZGlwQGNhdGNoZXIuZXMiLCJzY29wZSI6IkFsbCIsImlhdCI6MTY2ODk0NzAzMSwiZXhwIjoxNjY5MDMzNDMxfQ.ka5SInGrriadqcntUCBtVe13MltYYpBldIV9m6dpt-4","type":"text"}],"url":{"raw":"https://api.catcher.es/pitcher/v1/order/{orderId}?finish_details=true","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","order","{orderId}"],"query":[{"key":"finish_details","value":"true","description":"Optional. Set to true to include finishDetails in the response; omit or use another value to exclude finishDetails."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"body":"{\n  \"data\": {\n    \"order\": {\n      \"detail\": {\n        \"internalOrderId\": \"3c86336e910bd3rh526addf9ff\",\n        \"code\": \"UT6098\",\n        \"status\": \"finish\",\n        \"receptionTime\": \"2023-01-23 12:52:17\",\n        \"pickTime\": \"2023-01-23 13:01:54\",\n        \"order_source\": \"Resto App\",\n        \"aceptedByPitcher\": \"\",\n        \"orderDescription\": \"\",\n        \"pitcherInstructions\": \"\",\n        \"visible\": \"yes\",\n        \"pendingConfirmation\": \"\",\n        \"pickingConfirmationCode\": \"\",\n        \"deliveryConformationCode\": \"\",\n        \"city\": \"Valencia\",\n        \"pickupLocName\": \"Resto App\",\n        \"weightGrams\": 1500,\n        \"dimensionsMm\": {\n          \"length\": 300,\n          \"width\": 200,\n          \"height\": 150\n        },\n        \"requestedVehicle\": \"moto\",\n        \"finishDetails\": {\n          \"delivered\": true,\n          \"type\": \"client_unreachable\",\n          \"courierComments\": \"I waited for the client for 10 minutes but he didn't answer the door.\",\n          \"deliveryPhoto\": \"https://catcher.amazonaws.com/delivery_last_photo.jpg\"\n        }\n      },\n      \"client\": {\n        \"phone\": \"\",\n        \"phonePin\": \"\",\n        \"name\": \"Jhon Doe\"\n      },\n      \"pickupAddress\": {\n        \"lat\": \"39.4704167\",\n        \"long\": \"-0.3477917\",\n        \"location\": \"Poeta Mas i Ros 27\",\n        \"locationName\": \"Burger Burger\"\n      },\n      \"pitcher\": {\n        \"name\": \"Burger Burger\",\n        \"cif\": \"46071741G\",\n        \"socialName\": \"Burger Burger SL\",\n        \"location\": \"Poeta Mas i Ros 37\",\n        \"phone\": \"692962334\",\n        \"adminPhone\": \"692112864\",\n        \"email\": \"direccion@burgerBurger.com\",\n        \"city\": \"Valencia\",\n        \"lat\": \"39.4704167\",\n        \"long\": \"-0.3477917\",\n        \"logo\": \"https://catcher.amazonaws.com/75479-600x600.jpg\"\n      },\n      \"catcher\": {\n        \"firstName\": \"Jhon\",\n        \"lastName\": \"Doe\",\n        \"phone\": \"\",\n        \"img\": \"https://catcher.amazonaws.com/picture_picture.jpg\",\n        \"lat\": \"39.4958351\",\n        \"long\": \"-0.3475854\",\n        \"acceptationTime\": \"\",\n        \"pickupTime\": \"2023-01-23 13:15:54\",\n        \"vehicle\": \"moto\",\n        \"presetDeliveryTime\": \"2023-01-23 13:30:54\",\n        \"deliveryTime\": \"2023-01-23 13:15:59\",\n        \"inLocationTime\": \"2023-01-23 13:15:52\",\n        \"city\": \"Valencia\",\n        \"private\": \"yes\"\n      },\n      \"deliveryAddress\": {\n        \"distance\": \"7.2\",\n        \"location\": \"C/ del Santíssim Crist de la Fe i de la Providència\",\n        \"postal_code\": \"46132\",\n        \"lat\": \"39.5100874\",\n        \"long\": \"-0.3554133\"\n      },\n      \"payment\": {\n        \"totalAmount\": \"28.1\",\n        \"subtotalAmount\": \"\",\n        \"presetPrice\": \"8.64\",\n        \"matchedPrice\": \"0\",\n        \"paymentMethod\": \"uber\",\n        \"pitcherDeliveryPrice\": \"\"\n      }\n    }\n  },\n  \"status\": true,\n  \"errors\": null\n}"}]},{"name":"Get Driver Location","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6Im9yZGVyIiwidXNlcklkIjo4LCJsb2NhdGlvbklkIjoiZGMwYWM4NDhlNWUzNmI4YjhlZDRhNzZmYjBhY2VmZGIiLCJpYXQiOjE2NjkzNjE2MTIsImV4cCI6MTY2OTQ0ODAxMn0.kqaaYWzVOBcUl4IjeUw91l6zFErPDl_dy9gDO6wI3sI","type":"text"}],"url":{"raw":"https://api.catcher.es/pitcher/v1/order/riderlocation/{orderId}","protocol":"https","host":["api","catcher","es"],"path":["pitcher","v1","order","riderlocation","{orderId}"]}},"response":[]}]}