{"info":{"_postman_id":"66bbc188-f8e6-4357-ad4c-13f58586616e","name":"Senpex API v4 Documentation","description":"<html><head></head><body><h1 id=\"api-overview\">API Overview</h1>\n<p>Welcome to the Senpex API documentation. You can use the Senpex API to provide same-day delivery to your customers by one click.</p>\n<p>Through the Senpex API, your application will be able to create and manage orders as well as retrieve the details and status updates on those select orders. The Senpex API is organized around REST and has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes.</p>\n<h2 id=\"v41\">v4.1</h2>\n<p>eSignature request now available in  <code>/create_quick_order</code></p>\n<h2 id=\"v4\">v4</h2>\n<p>Now users have to send local time for orders instead of UTC. For that purpose parameter in <code>/get_price</code> request \"schedule_date\" was changed to \"schedule_date_local\"</p>\n<h2 id=\"v3\">v3</h2>\n<p>Performance improvements.</p>\n<h2 id=\"v22\">v2.2</h2>\n<p>The update is related to a huge improvement of multi-vendor/warehouse support and a new pricing model for long-distance multi-stop deliveries.</p>\n<p>Since now a new request <code>/create_dropp_off_route</code> is available. It lets us to group orders by time windows and optimize routes even more efficient as we did.</p>\n<p>A new pricing model for long-distance deliveries applicable for intercity and interstate multi-drop-off deliveries where first drop-off point is far than 20 miles from the pick-up.</p>\n<p><a href=\"https://documenter.getpostman.com/view/9662282/TW73Fkyi#b3dc1fd1-2ff4-476c-aba3-d3595bded790\">more about request <code>/create_dropp_off_route</code></a></p>\n<h2 id=\"v21\">v2.1</h2>\n<p>Includes multi-vendor/warehouse support. Designed for web portals that aggregate many different pick-up points.</p>\n<h2 id=\"v2\">v2</h2>\n<p>Includes the Webhook. Through the Webhook an external application will receive order status changes notifications.</p>\n<p>Also includes powerful add-on that opens new possibilities. Using this add-on external applications are able to load to Senpex Platform a number of addresses which should be served lately. Classical Senpex API works by model \"one delivery - one order\", but add-on works as \"multiple deliveries in one order\". A number of requests and separate Webhook which are used for uninterrupted data exchange make delivery process transparent and convenient.</p>\n<h1 id=\"preliminary-notes\">Preliminary Notes</h1>\n<p>To use the Senpex API, the Client has to register on web.senpex.com. After successful registration, the client has to request for approval from the Senpex support team by making a call 650-514-6350 Once a client gets approved, he will receive an email with the link to API dashboard.</p>\n<h1 id=\"requirements\">Requirements</h1>\n<p>The API requires credit card details which must be entered at API Dashboard. Notice, it is by default that Senpex will immediately provide the end user a price that will be expected to be paid for, however, the pricing is not determined by Senpex, rather the vendor is given the freedom to choose their own pricing structure. Thereby, the customer will use client secret keys that will be provided by Senpex, but the end user will have the ability to re-generate the secret keys for safety</p>\n<h1 id=\"what-to-start-with\">What to start with?</h1>\n<p>If you are ready to integrate with our API, please send an email to <a href=\"https://mailto:contact@senpex.com\">contact@senpex.com</a> and include your Client Account - if you don't have one, you can register here <a href=\"https://web.senpex.com\">https://web.senpex.com</a> Once we receive your email, a member of our API Support Team will contact you to get started.</p>\n<p>Once your account is approved, you will be provided with a ​client_id ​and secret_id. Additionally, you will need to add your own Google Maps API Key to the dashboard.</p>\n<ul>\n<li><p>Test Environment API Dashboard - <a href=\"https://api.dashboard.senpex.com/api_login/\">https://api.dashboard.senpex.com/api_login/</a></p>\n</li>\n<li><p>Production Environment API Dashboard - <a href=\"https://adminpanel.senpex.com/api_login\">https://adminpanel.senpex.com/api_login</a></p>\n</li>\n</ul>\n<p>To create your own Google Maps API Key, visit: <a href=\"https://developers.google.com\">https://developers.google.com</a> Create a new account or register with an existing one. After you’re logged in, go to the Products/Cloud and click “Go to console”. Then go to “APIs &amp; Services”/Dashboard/Credentials and click “Create Credentials”/API key. After you created your API key you need to activate the Geocoding API, Directions API, Distance matrix API, Geolocation API, Places API, Time Zone API.</p>\n<p>Once you get a Google API key, verify it <a href=\"https://yougapi.com/tools/google-api-key-checker.php\">here</a>. After verification, paste it in Senpex API Dashboard.</p>\n<p>Note! Please, keep these keys secured and do not embed them in any client-side code.</p>\n<h1 id=\"environments\">Environments</h1>\n<p>Every integration starts with the Test Environment. Credentials and all required information for both environments will be provided by Senpex Support Team.</p>\n<ul>\n<li><p>Baselink for Test Environment <code>https://api.sandbox.senpex.com/senpex/api/rest/v4</code></p>\n</li>\n<li><p>Baselink for Production <code>https://api.production.senpex.com/senpex/api/rest/v4</code></p>\n</li>\n</ul>\n<p>-</p>\n<ul>\n<li><p>Images Test server: <code>https://imagesfiles.version4.senpex.com/image_list/</code></p>\n</li>\n<li><p>Images Prod server <code>https://imagesfiles.production.senpex.com/image_list/</code></p>\n</li>\n</ul>\n<h1 id=\"dictionary-definitions\">Dictionary Definitions</h1>\n<h3 id=\"available-transport-types\">Available Transport Types</h3>\n<p>Senpex platform provides five different types of transportation vehicle for delivering orders depending on the size of the order. As a default transport type, set up 'Car'</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Transport Type</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Car</td>\n<td>Set type as Car, if the estimated total weight of the order is Small, Medium and Large that can be accommodated easily.</td>\n</tr>\n<tr>\n<td>3</td>\n<td>SUV</td>\n<td>Set type as SUV, for Large loads with big value.</td>\n</tr>\n<tr>\n<td>8</td>\n<td>Pickup Truck</td>\n<td>Set type as Pickup Truck, for Heavy and Big Size loads.</td>\n</tr>\n<tr>\n<td>9</td>\n<td>Large Van</td>\n<td>Set type as Large Van, for Heavy and Big Size loads.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"package-size-types\">Package Size Types</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Size</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Small (1-25 lbs)</td>\n<td>Boxes 15 in., envelopes, food, flowers and other items be- tween 0 - 25 Lbs</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Medium (26 – 50 lbs)</td>\n<td>Boxes 30 in., small appliance, tools, meals, and other items between 25 - 50 Lbs</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Large (51 – 70 lbs)</td>\n<td>Boxes 45 in., appliance, supplies and other items between 50 - 70 Lbs (Not requires lifting equipment)</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Heavy Load (71 - 150 Lbs)</td>\n<td>Major appliance, carpets, mattresses, equipment, furniture and other items between 70 - 150 Lbs</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Not Heavy but Big Size (up to 70 Lbs)</td>\n<td>Big and lightweight items: Containers, tanks, Home Cinema, Octobass, polystyrene and other items up to 70 Lbs</td>\n</tr>\n</tbody>\n</table>\n</div><p>As a default package size set up 'Small'</p>\n<h3 id=\"order-status\">Order Status</h3>\n<p>API provides different statuses for the Order that is placed.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>Draft Order</td>\n<td>Order has not been placed yet, but is saved as a draft .</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Waiting for pay</td>\n<td>Order is placed and is awaiting payment.</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Scheduled order</td>\n<td>Order is scheduled for a future date and time.</td>\n</tr>\n<tr>\n<td>8</td>\n<td>Repeated order</td>\n<td>Root order for scheduled orders.</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Paid order</td>\n<td>Order payment is done</td>\n</tr>\n<tr>\n<td>20</td>\n<td>Courier selected</td>\n<td>Courier service is selected for the order</td>\n</tr>\n<tr>\n<td>22</td>\n<td>Started working</td>\n<td>Courier is en-route</td>\n</tr>\n<tr>\n<td>25</td>\n<td>Arrived to pickup location</td>\n<td>Courier arrived to pickup location</td>\n</tr>\n<tr>\n<td>30</td>\n<td>Item in transit</td>\n<td>Package is in transit for delivery</td>\n</tr>\n<tr>\n<td>35</td>\n<td>Arrived to drop-off location</td>\n<td>Driver arrived</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Item is delivered</td>\n<td>Package is delivered</td>\n</tr>\n<tr>\n<td>50</td>\n<td>Item not given</td>\n<td>Package is not delivered</td>\n</tr>\n<tr>\n<td>90</td>\n<td>Reported order</td>\n<td>Order is reported for some incident</td>\n</tr>\n<tr>\n<td>100</td>\n<td>Cancelled order</td>\n<td>Order is cancelled by customer</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"route-status\">Route Status</h3>\n<p>Route status for any order will be “0” if the order is not yet taken by the courier.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>Order not taken</td>\n<td>Order not taken by the courier</td>\n</tr>\n<tr>\n<td>30</td>\n<td>Order is taken</td>\n<td>Order is taken by the courier</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Order is delivered</td>\n<td>Order is delivered</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"courier-package-cancellation-reasons\">Courier Package Cancellation Reasons</h3>\n<p>A courier can be cancelled anytime. This list shows the available reason for cancellation.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Reason</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Personal Problems</td>\n<td>Courier cancelled due to personal problems.</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Car Problems</td>\n<td>Courier cancelled due to car problems.</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Other issues</td>\n<td>Courier cancelled due to other issues.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<p>Each REST API request results is giving error information:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Error</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>28</td>\n<td>StripeError</td>\n<td>Unable to perform operation. Message: This value must be greater than or equal to 1.</td>\n</tr>\n<tr>\n<td>38</td>\n<td>EmptyValueError</td>\n<td>(parameter) cannot be empty, eg: order name cannot be empty</td>\n</tr>\n<tr>\n<td>35</td>\n<td>MileError</td>\n<td>Maximum 300 miles accepted</td>\n</tr>\n<tr>\n<td>50</td>\n<td>DataVarNotFound</td>\n<td>Receiver phone number cannot be found</td>\n</tr>\n<tr>\n<td>58</td>\n<td>NoCreditCard</td>\n<td>You don’t have linked credit card</td>\n</tr>\n<tr>\n<td>59</td>\n<td>SecretIDNotFound</td>\n<td>Secret id not found</td>\n</tr>\n<tr>\n<td>60</td>\n<td>ClientIDNotFound</td>\n<td>Client id not found</td>\n</tr>\n<tr>\n<td>61</td>\n<td>CompanyIsDisable</td>\n<td>This Key is disabled by Snpx administration. Contact us .</td>\n</tr>\n<tr>\n<td>62</td>\n<td>SecretIsWrong</td>\n<td>Secret or Client key is wrong</td>\n</tr>\n<tr>\n<td>63</td>\n<td>ApiTokenNotFound</td>\n<td>This token cannot be found</td>\n</tr>\n<tr>\n<td>64</td>\n<td>ApiTokenNotYours</td>\n<td>This token is not belongs to you</td>\n</tr>\n<tr>\n<td>65</td>\n<td>ApiTokenPriceExpired</td>\n<td>This price is expired</td>\n</tr>\n<tr>\n<td>66</td>\n<td>ApiThisOrderAlreadyPaid</td>\n<td>This order is already paid</td>\n</tr>\n<tr>\n<td>67</td>\n<td>RouteCountError</td>\n<td>Routes count should be between 1 and 5. You provided 0</td>\n</tr>\n<tr>\n<td>68</td>\n<td>ScheduleDateLow</td>\n<td>Schedule date cannot be less than current date</td>\n</tr>\n<tr>\n<td>69</td>\n<td>ApiNotApprovedByAdmin</td>\n<td>This API has not been approved by Senpex. Please, contact the Senpex support team.</td>\n</tr>\n<tr>\n<td>70</td>\n<td>ApiNotApprovedByOwner</td>\n<td>You should enable you API on your “API Configuration” panel</td>\n</tr>\n<tr>\n<td>71</td>\n<td>APIPaymentDetailsNotFound</td>\n<td>Your should assign your credit card to be able to use API</td>\n</tr>\n<tr>\n<td>73</td>\n<td>WrongEmailFormat</td>\n<td>Please enter email in correct format</td>\n</tr>\n<tr>\n<td>13</td>\n<td>PackNotFound</td>\n<td>You don't have access to this order, or it was canceled.</td>\n</tr>\n<tr>\n<td>5</td>\n<td>NotNumberValueError</td>\n<td>order_id should be numeric</td>\n</tr>\n<tr>\n<td>14</td>\n<td>PackIncorrectStatus</td>\n<td>You cannot do this operation on this order. Current status Cancelled pack. Acceptable statuses</td>\n</tr>\n<tr>\n<td>-50</td>\n<td>DataVarNotFound</td>\n<td>Receiver name for 1 cannot be found</td>\n</tr>\n<tr>\n<td>-50</td>\n<td>DataVarNotFound</td>\n<td>Receiver phone number for 1 cannot be found</td>\n</tr>\n<tr>\n<td>-5279</td>\n<td>RoutesNotArray</td>\n<td>The list of routes should be provided in array</td>\n</tr>\n<tr>\n<td>-1081</td>\n<td>NotCorrespondingTransportForSize</td>\n<td>Not corresponding transport_id for current pack_size. Allowed transports(1)</td>\n</tr>\n<tr>\n<td>-1282</td>\n<td>DataNotJson</td>\n<td>Request body is not in JSON format</td>\n</tr>\n<tr>\n<td>-1126</td>\n<td>WrongOrderName</td>\n<td>alphabetical and numerical symbols accepted</td>\n</tr>\n<tr>\n<td>-3250</td>\n<td>OrderNotExists</td>\n<td>Order ID is not exist</td>\n</tr>\n<tr>\n<td>-23123</td>\n<td>PriceNotFound</td>\n<td>Price information not found</td>\n</tr>\n<tr>\n<td>-10000</td>\n<td>GoogleAPICannotFindAddress</td>\n<td>Google API cannot find required address</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"API Overview","slug":"api-overview"},{"content":"Preliminary Notes","slug":"preliminary-notes"},{"content":"Requirements","slug":"requirements"},{"content":"What to start with?","slug":"what-to-start-with"},{"content":"Environments","slug":"environments"},{"content":"Dictionary Definitions","slug":"dictionary-definitions"},{"content":"Errors","slug":"errors"}],"owner":"9662282","collectionId":"66bbc188-f8e6-4357-ad4c-13f58586616e","publishedId":"TW73Fkyi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-06-12T21:06:54.000Z"},"item":[{"name":"v4","item":[{"name":"General Requests","item":[{"name":"/get_price - URGENT","event":[{"listen":"test","script":{"id":"6b338440-18e1-4bf8-a35c-b068ff9e10a4","exec":["var jsonData = pm.response.json();\r","\r","pm.environment.set(\"api_token\", jsonData.details[0].api_token); \r","\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"41417095-b9ca-4793-98cb-8f19b2d3be0c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Country","value":"{{country_can}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order_name\": \"Delivery Order\",\r\n    \"taken_asap\": 1,\r\n    \"transport_id\": 1,\r\n    \"item_value\": 200,\r\n    \"pack_size_id\": 1,\r\n    \"promo_code\": \"If Available\",\r\n    \"pack_from_text\": \"511 Central Ave, Mountain View, 94043, CA\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"timeZoneIdentifier\": \"US/Arizona\",\r\n    \"use_optimization\": 1,\r\n    \"routes\": [\r\n        {\r\n            \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\r\n            \"rec_name\": \"Jack\",\r\n            \"rec_phone\": \"1002003000\"\r\n        },\r\n        {\r\n            \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\r\n            \"rec_name\": \"Jack\",\r\n            \"rec_phone\": \"1002003000\"\r\n        },\r\n        {\r\n            \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\r\n            \"rec_name\": \"Jack\",\r\n            \"rec_phone\": \"1002003000\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baselink_v4_canada}}/get_price","description":"<p>This service allows you to obtain a delivery price estimate by providing the following parameters. Also it generates a token used in /create_quick_order request, that is valid for 60 minutes.</p>\n<p>This service allows you to obtain a delivery price estimate depending on the size of your package, type of transport you chose and the drop-off address. If taken_asap and schedule_date parameters are provided in request, it returns scheduled delivery price, otherwise it returns urgent delivery price.<br />A full list of the parameters and their descriptions is shown below.</p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong><br />required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong><br />required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>order_name</td>\n<td><strong>string</strong><br />required</td>\n<td>Order name</td>\n</tr>\n<tr>\n<td>pack_from_text</td>\n<td><strong>string</strong><br />required</td>\n<td>Address of pick-up location</td>\n</tr>\n<tr>\n<td>transport_id</td>\n<td><strong>integer</strong><br />required</td>\n<td>See all available [Transport types]</td>\n</tr>\n<tr>\n<td>item_value</td>\n<td><strong>integer</strong><br />required</td>\n<td>Estimated cost of your package</td>\n</tr>\n<tr>\n<td>pack_size_id</td>\n<td><strong>integer</strong><br />required</td>\n<td>See all available [Package size types]</td>\n</tr>\n<tr>\n<td>taken_asap</td>\n<td><strong>integer</strong><br />optional</td>\n<td>If package has to be delivered urgently, value should be 1 else it is considered as a scheduled delivery and \"schedule_date\" parameter should also be provided</td>\n</tr>\n<tr>\n<td>schedule_date</td>\n<td><strong>string</strong><br />optional</td>\n<td>Should be provided in UTC format, if \"taken_asap\" = 0</td>\n</tr>\n<tr>\n<td>email</td>\n<td><strong>string</strong><br />required</td>\n<td>Email which is used at registration in Senpex API Dashboard.</td>\n</tr>\n<tr>\n<td>show_one_price</td>\n<td><strong>integer</strong><br />optional</td>\n<td>1 or 0 (1 = only one price , 0 = both prices), Will show only Scheduled delivery price if schedule_date is provided , otherwise it will show Urgent Delivery price</td>\n</tr>\n<tr>\n<td>promo_code</td>\n<td><strong>string</strong> <br /> optional</td>\n<td>Promo code if available</td>\n</tr>\n<tr>\n<td>order_desc</td>\n<td><strong>string</strong> required</td>\n<td>General delivery notes(Usually it is a gate code, apartment number and so on)</td>\n</tr>\n<tr>\n<td>route_desc</td>\n<td><strong>string</strong><br />required</td>\n<td>General delivery notes(Usually it is a gate code, apartment number and so on)</td>\n</tr>\n<tr>\n<td>rec_name</td>\n<td><strong>string</strong><br />required</td>\n<td>John Conor</td>\n</tr>\n<tr>\n<td>rec_phone</td>\n<td><strong>integer</strong><br />required</td>\n<td>6501231234</td>\n</tr>\n<tr>\n<td>routes</td>\n<td><strong>array</strong><br />required</td>\n<td></td>\n</tr>\n<tr>\n<td>routes.route_to_text</td>\n<td><strong>string</strong><br />required</td>\n<td>Address of drop-off location</td>\n</tr>\n<tr>\n<td>routes.route_desc</td>\n<td><strong>string</strong><br />required</td>\n<td>Delivery notes used for each drop-off address</td>\n</tr>\n<tr>\n<td>routes.rec_name</td>\n<td><strong>string</strong><br />required</td>\n<td>The name of Receiver at the drop-off address (can be empty, but in Order Creation process it is required.)</td>\n</tr>\n<tr>\n<td>routes.rec_phone</td>\n<td><strong>string</strong><br />required</td>\n<td>Receiver phone number(can be empty but in Order Creation process it is required.)</td>\n</tr>\n<tr>\n<td>timeZoneIdentifier</td>\n<td><strong>string</strong><br />optional</td>\n<td>By default, system applies PST zone. If the pick-up points is at another zone use this parameter with the value e.g. US/Eastern</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><strong>string</strong></td>\n<td>It is 0 for successful request execution</td>\n</tr>\n<tr>\n<td>is_user_registered</td>\n<td><strong>boolean</strong></td>\n<td>Returns true for a registered user</td>\n</tr>\n<tr>\n<td>diff_in_minutes</td>\n<td><strong>integer</strong></td>\n<td>Difference in minutes</td>\n</tr>\n<tr>\n<td>api_token</td>\n<td><strong>string</strong></td>\n<td>This token will be used for making payment in create_quick_order service</td>\n</tr>\n<tr>\n<td>order_price</td>\n<td><strong>float</strong></td>\n<td>Calculated order amount for given parameters</td>\n</tr>\n<tr>\n<td>original_order_price</td>\n<td><strong>string</strong></td>\n<td>Calculated order amount without discount</td>\n</tr>\n<tr>\n<td>tariff_name</td>\n<td><strong>string</strong></td>\n<td>The name of Tariff plan</td>\n</tr>\n<tr>\n<td>order_discount</td>\n<td><strong>float</strong></td>\n<td>Discount amount that has been used for promo code</td>\n</tr>\n<tr>\n<td>tariff_id</td>\n<td><strong>string</strong></td>\n<td>Id of the tariff plan</td>\n</tr>\n<tr>\n<td>promo_code_info</td>\n<td><strong>string</strong></td>\n<td>Promotion code if applied</td>\n</tr>\n<tr>\n<td>company_id</td>\n<td><strong>string</strong></td>\n<td>Id of company</td>\n</tr>\n<tr>\n<td>tariff_duration_mins</td>\n<td><strong>string</strong></td>\n<td>The maximum time (in minutes) for using this tariff plan .</td>\n</tr>\n<tr>\n<td>distance_miles</td>\n<td><strong>float</strong></td>\n<td>The distance in mile from the pick-up to drop-off</td>\n</tr>\n<tr>\n<td>distance_time_seconds</td>\n<td><strong>float</strong></td>\n<td>Time in seconds for covering the distance</td>\n</tr>\n<tr>\n<td>schedule_date</td>\n<td><strong>string</strong></td>\n<td>Date of the scheduled delivery</td>\n</tr>\n<tr>\n<td>item_value</td>\n<td><strong>string</strong></td>\n<td>Estimated cost of your package</td>\n</tr>\n<tr>\n<td>pack_size_id</td>\n<td><strong>string</strong></td>\n<td>See all available [Package size types]</td>\n</tr>\n<tr>\n<td>transport_id</td>\n<td><strong>string</strong></td>\n<td>See all available [Transport types]</td>\n</tr>\n<tr>\n<td>pack_from_lat</td>\n<td><strong>float</strong></td>\n<td>The latitude of the pick-up location</td>\n</tr>\n<tr>\n<td>pack_from_lng</td>\n<td><strong>float</strong></td>\n<td>The longitude of the pick-up location</td>\n</tr>\n<tr>\n<td>routes</td>\n<td><strong>string</strong></td>\n<td>Route details in string format</td>\n</tr>\n<tr>\n<td>routes_json</td>\n<td><strong>string</strong></td>\n<td>Route details in json format</td>\n</tr>\n<tr>\n<td>routes.route_to_text</td>\n<td><strong>string</strong></td>\n<td>The address of drop-off address</td>\n</tr>\n<tr>\n<td>routes.route_desc</td>\n<td><strong>string</strong></td>\n<td>The route description, if it was passed in the request</td>\n</tr>\n<tr>\n<td>routes.route_rec_name</td>\n<td><strong>string</strong></td>\n<td>The receiver name, if it was passed in the request</td>\n</tr>\n<tr>\n<td>routes.route_rec_phone</td>\n<td><strong>string</strong></td>\n<td>The receiver phone, if it was passed in the request</td>\n</tr>\n<tr>\n<td>routes.route_to_lat</td>\n<td><strong>float</strong></td>\n<td>The Latitude of drop-off address</td>\n</tr>\n<tr>\n<td>routes.route_to_lng</td>\n<td><strong>float</strong></td>\n<td>The Longitude of drop-off address</td>\n</tr>\n<tr>\n<td>route_distance</td>\n<td><strong>float</strong></td>\n<td>The distance of that route from pick-up to drop-off location</td>\n</tr>\n<tr>\n<td>route_distance_time</td>\n<td><strong>float</strong></td>\n<td>The time to cover the distance of the route from pick-up to drop-off location</td>\n</tr>\n<tr>\n<td>tariff_duration_hours</td>\n<td><strong>float</strong></td>\n<td>Total hours for the delivery</td>\n</tr>\n<tr>\n<td>tariff_duration_days</td>\n<td><strong>integer</strong></td>\n<td>Total days for the delivery</td>\n</tr>\n<tr>\n<td>expire_mins</td>\n<td><strong>integer</strong></td>\n<td>The expiry time of the api token (in minutes) .</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["get_price"],"host":["{{baselink_v4_canada}}"],"query":[],"variable":[]}},"response":[{"id":"717c5e90-5ae3-4b0f-a0c4-0bd98154e4de","name":"/get_price - URGENT","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"order_name\": \"Test Delivery Order\",\r\n    \"taken_asap\": 1,\r\n    \"transport_id\": 1,\r\n    \"item_value\": 200,\r\n    \"pack_size_id\": 1,\r\n    \"promo_code\": \"If Available\",\r\n    \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"routes\": [\r\n        {\r\n            \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\r\n            \"rec_name\": \"Jack\",\r\n            \"rec_phone\": \"1002003000\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_price"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Fri, 05 Feb 2021 19:50:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": -1,\n    \"is_user_registered\": false,\n    \"diff_in_minutes\": 0,\n    \"details\": [\n        {\n            \"api_token\": \"a5c98ffecc7d06d9b9cb5b03340ef27c\",\n            \"order_price\": 27.5,\n            \"original_order_price\": \"27.50\",\n            \"order_discount\": null,\n            \"promo_code_info\": null,\n            \"distance_miles\": 6.85,\n            \"distance_time_seconds\": 858,\n            \"schedule_date\": \"2021-02-05 19:50:52\",\n            \"item_value\": \"200\",\n            \"pack_size_id\": \"1\",\n            \"transport_id\": \"1\",\n            \"pack_from_lat\": 37.3786872,\n            \"pack_from_lng\": -121.987255,\n            \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\n            \"order_name\": \"Test Delivery Order\",\n            \"order_desc\": \"\",\n            \"routes\": \"[{\\\"route_to_text\\\":\\\"1101 W El Camino Real, Mountain View, CA 94040, USA\\\",\\\"rec_name\\\":\\\"Jack\\\",\\\"rec_phone\\\":\\\"1002003000\\\",\\\"route_to_lat\\\":37.3872,\\\"route_to_lng\\\":-122.087406,\\\"route_distance\\\":6.85,\\\"route_distance_time\\\":858}]\",\n            \"token_hash\": \"a6097b2f36cd13c92df7904e30b232b1\",\n            \"routes_json\": [\n                {\n                    \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\n                    \"rec_name\": \"Jack\",\n                    \"rec_phone\": \"1002003000\",\n                    \"route_to_lat\": 37.3872,\n                    \"route_to_lng\": -122.087406,\n                    \"route_distance\": 6.85,\n                    \"route_distance_time\": 858\n                }\n            ],\n            \"expire_mins\": 60\n        }\n    ]\n}"}],"_postman_id":"41417095-b9ca-4793-98cb-8f19b2d3be0c"},{"name":"/get_price - SCHEDULED","event":[{"listen":"test","script":{"id":"a3b390f5-3fd9-4988-813e-811d9af4e0c1","exec":["var jsonData = pm.response.json();\r","\r","pm.environment.set(\"api_token\", jsonData.details[0].api_token); \r","\r","\r",""],"type":"text/javascript"}}],"id":"9ffaef1e-c196-48f3-a6a0-b86ed8e56965","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"order_name\": \"Test Delivery Order\",\r\n    \"taken_asap\": 0,\r\n    \"schedule_date_local\": \"2021-10-20 12:50\",\r\n    \"transport_id\": 1,\r\n    \"item_value\": 200,\r\n    \"pack_size_id\": 1,\r\n    \"promo_code\": \"If available\",\r\n    \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"routes\": [\r\n        {\r\n            \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\r\n            \"rec_name\": \"Jack\",\r\n            \"rec_phone\": \"1002003000\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_price","description":"<p>Allows to get price by providing required parameters and the list of drop off addressess</p>\n","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","get_price"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"21193f18-2f13-400e-8b4d-7a992f15d309","name":"/get_price - SCHEDULED","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"order_name\": \"Test Delivery Order\",\r\n    \"taken_asap\": 0,\r\n    \"schedule_date\": \"01/01/2099 12:50\",\r\n    \"transport_id\": 1,\r\n    \"item_value\": 200,\r\n    \"pack_size_id\": 1,\r\n    \"promo_code\": \"If available\",\r\n    \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"routes\": [\r\n        {\r\n            \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\r\n            \"rec_name\": \"Jack\",\r\n            \"rec_phone\": \"1002003000\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_price"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sat, 06 Feb 2021 01:47:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": -1,\n    \"is_user_registered\": false,\n    \"diff_in_minutes\": 40972982.43,\n    \"details\": [\n        {\n            \"api_token\": \"2932295cfb89b98299408b9c9ee888c1\",\n            \"order_price\": 19.34,\n            \"original_order_price\": \"19.34\",\n            \"order_discount\": null,\n            \"promo_code_info\": null,\n            \"distance_miles\": 6.85,\n            \"distance_time_seconds\": 858,\n            \"schedule_date\": \"2099-01-01 12:50:00\",\n            \"item_value\": \"200\",\n            \"pack_size_id\": \"1\",\n            \"transport_id\": \"1\",\n            \"pack_from_lat\": 37.3786872,\n            \"pack_from_lng\": -121.987255,\n            \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\n            \"order_name\": \"Test Delivery Order\",\n            \"order_desc\": \"\",\n            \"routes\": \"[{\\\"route_to_text\\\":\\\"1101 W El Camino Real, Mountain View, CA 94040, USA\\\",\\\"rec_name\\\":\\\"Jack\\\",\\\"rec_phone\\\":\\\"1002003000\\\",\\\"route_to_lat\\\":37.3872,\\\"route_to_lng\\\":-122.087406,\\\"route_distance\\\":6.85,\\\"route_distance_time\\\":858}]\",\n            \"token_hash\": \"95de0754803e58fbd3c3bae2b95b7a3b\",\n            \"routes_json\": [\n                {\n                    \"route_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\n                    \"rec_name\": \"Jack\",\n                    \"rec_phone\": \"1002003000\",\n                    \"route_to_lat\": 37.3872,\n                    \"route_to_lng\": -122.087406,\n                    \"route_distance\": 6.85,\n                    \"route_distance_time\": 858\n                }\n            ],\n            \"expire_mins\": 60\n        }\n    ]\n}"}],"_postman_id":"9ffaef1e-c196-48f3-a6a0-b86ed8e56965"},{"name":"/create_quick_order","id":"8f307de9-1012-4e07-b0c2-ddd9d8cfa1f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Country","value":"{{country_can}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"api_token\": \"{{api_token}}\",\r\n    \"email\": \"cheosteria+c@gmail.com\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"tip_amount\": 100,\r\n    \"ask_sign\": 1,\r\n    \"routes\": [\r\n        {\r\n            \"rec_name\": \"Bruce Lee\",\r\n            \"rec_phone\": \"1002003000\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baselink_v4_canada}}/create_quick_order","description":"<p>This service allows to create a new single order.\nTo create a quick order, first send a <a href=\"https://documenter.getpostman.com/view/9662282/TW73Fkyi#41417095-b9ca-4793-98cb-8f19b2d3be0c\">POST/get_price</a> request. This will return ​\"api_token\" ​in the response​. ​Then, make a POST to the create_quick_order endpoint with ​api_token ​and the following parameters.  </p>\n<p>Note: api_token expires in 60 minutes after creating and it can be used for creating one order only.</p>\n<p>Any data that was sent through <code>\"/get_price\"</code> can be updated through this request.</p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>api_token</td>\n<td><strong>string</strong> required</td>\n<td>Token received from get_price request</td>\n</tr>\n<tr>\n<td>email</td>\n<td><strong>string</strong> required</td>\n<td>Email of API account owner. This field determines the name of sender(partner) and predefined pricing options</td>\n</tr>\n<tr>\n<td>sender_name</td>\n<td><strong>string</strong> optional</td>\n<td>Name of sender/store/restaurant</td>\n</tr>\n<tr>\n<td>sender_cell</td>\n<td><strong>string</strong> optional</td>\n<td>Phone number of sender/store/restaurant</td>\n</tr>\n<tr>\n<td>sender_desc</td>\n<td><strong>string</strong> optional</td>\n<td>Senders notes and instructions.</td>\n</tr>\n<tr>\n<td>order_desc</td>\n<td><strong>string</strong> required</td>\n<td>Any delivery notes(Usually it is a gate code, apartment number and so on)</td>\n</tr>\n<tr>\n<td>routes</td>\n<td><strong>array</strong></td>\n<td>List of routes</td>\n</tr>\n<tr>\n<td>routes.rec_name</td>\n<td><strong>string</strong> optional</td>\n<td>The name of receiver (Should be provided if not provided in \"get_price\" service)</td>\n</tr>\n<tr>\n<td>routes.rec_phone</td>\n<td><strong>string</strong> optional</td>\n<td>The phone number of receiver (Should be provided if not provided on \"get_price\" service)</td>\n</tr>\n<tr>\n<td>snpx_user_email</td>\n<td><strong>integer</strong> optional</td>\n<td>1 = will send an email with password to user, if this email id does not exist in the system, 0 = will not send email</td>\n</tr>\n<tr>\n<td>snpx_order_email</td>\n<td><strong>integer</strong> optional</td>\n<td>1 = will send email about orders, 0 = will not send email</td>\n</tr>\n<tr>\n<td>snpx_order_not</td>\n<td><strong>integer</strong> optional</td>\n<td>1 = will send push notifications to a user if \"device_id\" will be provided, 0 = will not send notifications</td>\n</tr>\n<tr>\n<td>search_courier</td>\n<td><strong>integer</strong> optional</td>\n<td>1 = start searching for a courier just after creating a package, 0 = will not search for courier until \"update_order_nots\" will not be requested</td>\n</tr>\n<tr>\n<td>tip_amount</td>\n<td><strong>integer</strong> optional</td>\n<td>Through this parameter tips from clients are being send. By default it is 0</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>inserted_id</td>\n<td><strong>integer</strong></td>\n<td>The newly created order id</td>\n</tr>\n<tr>\n<td>details</td>\n<td><strong>object</strong></td>\n<td>The details of order</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["create_quick_order"],"host":["{{baselink_v4_canada}}"],"query":[],"variable":[]}},"response":[{"id":"59986f92-5840-496c-8376-4af339e4d15d","name":"/create_quick_order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"api_token\": \"{{api_token}}\",\r\n    \"email\": \"hanna.smith@gmail.com\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"tip_ammount\": 100,\r\n    \"routes\": [\r\n        {\r\n            \"rec_name\": \"Bruce Lee\",\r\n            \"rec_phone\": \"1002003000\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/create_quick_order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 21 Feb 2021 12:15:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": 39290,\n    \"details\": {\n        \"distance\": \"6.85\",\n        \"distance_time\": \"858.00\",\n        \"send_cat_id\": 2,\n        \"pack_owner_id\": \"5527\",\n        \"inserted_by\": \"5527\",\n        \"inserted_date\": \"2021-02-21 12:15:52\",\n        \"pack_status\": \"0\",\n        \"last_operation_time\": \"2021-02-21 12:15:52\",\n        \"send_name\": \"Test Delivery Order\",\n        \"pack_size_id\": \"1\",\n        \"pack_options_id\": 1,\n        \"pack_weight\": 0,\n        \"item_value\": \"200.00\",\n        \"desc_text\": \"\",\n        \"receiver_name\": \"Bruce Lee\",\n        \"receiver_phone_number\": \"1002003000\",\n        \"pack_from_lat\": \"37.378687200000000000\",\n        \"pack_from_lng\": \"-121.987255000000000000\",\n        \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\n        \"pack_to_lat\": 37.3872,\n        \"pack_to_lng\": -122.087406,\n        \"pack_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\n        \"pack_transport_id\": \"1\",\n        \"taken_asap\": 1,\n        \"taken_time\": \"2021-02-21 12:15:46\",\n        \"delivery_type\": 0,\n        \"delivery_asap\": 1,\n        \"pack_price_with_ins\": \"27.50\",\n        \"pack_price_without_ins\": \"27.50\",\n        \"pack_price\": 27.5,\n        \"insurance_mode\": \"1\",\n        \"insurance_owner_price\": \"12.50\",\n        \"bank_fee\": \"0.30\",\n        \"tax_fee\": \"0.00\",\n        \"stripe_payout_fee\": \"0.29\",\n        \"sender_paid\": \"1\",\n        \"stripe_id\": \"ch_1INGqpDsDVygPhtyASYDKnvv\",\n        \"sender_name\": \"Hanna Smith\",\n        \"sender_cell\": \"6507883883\"\n    }\n}"}],"_postman_id":"8f307de9-1012-4e07-b0c2-ddd9d8cfa1f9"},{"name":"/get_order_list","event":[{"listen":"test","script":{"id":"4cb19955-ff97-4a89-ace5-3b2509638af0","exec":["var jsonData = pm.response.json();\r","pm.environment.set(\"last_order_id\", jsonData.data[0].id);\r","\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"656c256b-7d81-445b-8527-01b7a7450f64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","type":"text","value":""}],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_order_list","description":"<p>This request returns list of all previously created orders.</p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>search_array</td>\n<td><strong>array</strong> optional</td>\n<td>Filter order list based on order_id(p.id),order_name(send_name) or pickup address (pack_from_text)</td>\n</tr>\n<tr>\n<td>start</td>\n<td><strong>integer</strong> optional</td>\n<td>Returns the next 12 list of Orders from the number mentioned here</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><strong>string</strong></td>\n<td>It is always 0 for successful retrieve response</td>\n</tr>\n<tr>\n<td>data</td>\n<td><strong>array</strong></td>\n<td>List of all orders</td>\n</tr>\n<tr>\n<td>id</td>\n<td><strong>string</strong></td>\n<td>The order id</td>\n</tr>\n<tr>\n<td>order_name</td>\n<td><strong>string</strong></td>\n<td>The name of order</td>\n</tr>\n<tr>\n<td>sender_name</td>\n<td><strong>string</strong></td>\n<td>The name of order owner</td>\n</tr>\n<tr>\n<td>pack_size_id</td>\n<td><strong>string</strong></td>\n<td>Size of package</td>\n</tr>\n<tr>\n<td>pack_transport_id</td>\n<td><strong>string</strong></td>\n<td>Selected transport id</td>\n</tr>\n<tr>\n<td>pack_from_lat</td>\n<td><strong>string</strong></td>\n<td>Latitude of pick-up address</td>\n</tr>\n<tr>\n<td>pack_from_lng</td>\n<td><strong>string</strong></td>\n<td>Longitude of pick-up address</td>\n</tr>\n<tr>\n<td>pack_from_text</td>\n<td><strong>string</strong></td>\n<td>The pick-up address</td>\n</tr>\n<tr>\n<td>taken_asap</td>\n<td><strong>string</strong></td>\n<td>1 is for Urgent deliver, 0 for Scheduled delivery</td>\n</tr>\n<tr>\n<td>schedule_date</td>\n<td><strong>string</strong></td>\n<td>Scheduled date of Order</td>\n</tr>\n<tr>\n<td>distance_miles</td>\n<td><strong>string</strong></td>\n<td>Distance between pick-up and drop_off address</td>\n</tr>\n<tr>\n<td>distance_time_seconds</td>\n<td><strong>string</strong></td>\n<td>Time in seconds between pick-up and drop_off address</td>\n</tr>\n<tr>\n<td>pack_map_img</td>\n<td><strong>string</strong></td>\n<td>The link to google map image</td>\n</tr>\n<tr>\n<td>pack_price</td>\n<td><strong>string</strong></td>\n<td>The price of the order</td>\n</tr>\n<tr>\n<td>rest_api_vers</td>\n<td><strong>string</strong></td>\n<td>Version of API that created order</td>\n</tr>\n<tr>\n<td>route_count</td>\n<td><strong>string</strong></td>\n<td>The count of drop-off addresses</td>\n</tr>\n<tr>\n<td>last_pack_to_lat</td>\n<td><strong>string</strong></td>\n<td>Latitude of last drop-off address</td>\n</tr>\n<tr>\n<td>last_pack_to_lng</td>\n<td><strong>string</strong></td>\n<td>Longitude of last drop-off address</td>\n</tr>\n<tr>\n<td>last_pack_to_text</td>\n<td><strong>string</strong></td>\n<td>The address of last drop_off location</td>\n</tr>\n<tr>\n<td>last_receiver_name</td>\n<td><strong>string</strong></td>\n<td>The name of receiver on last last drop-off address</td>\n</tr>\n<tr>\n<td>last_receiver_phone_number</td>\n<td><strong>string</strong></td>\n<td>The phone number of receiver on last drop-off address</td>\n</tr>\n<tr>\n<td>conn_client_name</td>\n<td><strong>string</strong></td>\n<td><a href=\"https://documenter.getpostman.com/view/9662282/TW73Fkyi#dictionary-difinitions\">Order Creation Source</a></td>\n</tr>\n<tr>\n<td>pack_status</td>\n<td><strong>string</strong></td>\n<td><a href=\"https://documenter.getpostman.com/view/9662282/TW73Fkyi#dictionary-difinitions\">Order Status</a></td>\n</tr>\n<tr>\n<td>order_status_text</td>\n<td><strong>string</strong></td>\n<td><a href=\"https://documenter.getpostman.com/view/9662282/TW73Fkyi#dictionary-difinitions\">The Order Status text</a></td>\n</tr>\n<tr>\n<td>courier_name</td>\n<td><strong>string</strong></td>\n<td>The name of courier if already assigned</td>\n</tr>\n<tr>\n<td>courier_surname</td>\n<td><strong>string</strong></td>\n<td>The surname of courier if already assigned</td>\n</tr>\n<tr>\n<td>courier_cell</td>\n<td><strong>string</strong></td>\n<td>The phone number of courier if already assigned</td>\n</tr>\n<tr>\n<td>sender_surname</td>\n<td><strong>string</strong></td>\n<td>The surname of order owner</td>\n</tr>\n<tr>\n<td>sender_cell</td>\n<td><strong>string</strong></td>\n<td>The phone number of order owner</td>\n</tr>\n<tr>\n<td>sender_email</td>\n<td><strong>string</strong></td>\n<td>The email of order owner</td>\n</tr>\n<tr>\n<td>sender_user_id</td>\n<td><strong>string</strong></td>\n<td>The ID of order owner</td>\n</tr>\n<tr>\n<td>status_sender</td>\n<td><strong>string</strong></td>\n<td>The Order Status text</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","get_order_list"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"b6624aae-1a54-4644-81ec-b2e87c1bb8c7","name":"/get_order_list","originalRequest":{"method":"POST","header":[{"key":"","type":"text","value":""}],"body":{"mode":"raw","raw":"{  \r\n   \"client_id\":\"{{client_id}}\",\r\n   \"secret_id\":\"{{secret_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/get_order_list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 09 Feb 2021 03:55:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": [\n        {\n            \"id\": \"39083\",\n            \"order_name\": \"Test Delivery Order\",\n            \"send_name\": \"Test Delivery Order\",\n            \"pack_size_id\": \"1\",\n            \"pack_transport_id\": \"1\",\n            \"pack_from_lat\": \"37.4200867000000000000000\",\n            \"pack_from_lng\": \"-122.0823509000000000000000\",\n            \"pack_from_text\": \"1585 Charleston Rd, Mountain View, CA 94043, USA\",\n            \"taken_asap\": \"1\",\n            \"schedule_date\": null,\n            \"distance_miles\": \"6.35\",\n            \"distance_time_seconds\": \"897.00\",\n            \"pack_map_img\": \"f232e6f72305fc5b186d723728e846a8.png\",\n            \"pack_price\": \"27.50\",\n            \"rest_api_vers\": \"1\",\n            \"route_count\": \"1\",\n            \"last_pack_to_lat\": \"37.4299830000000000000000\",\n            \"last_pack_to_lng\": \"-122.1640234000000000000000\",\n            \"last_pack_to_text\": \"341 Galvez St, Stanford, CA 94305, USA\",\n            \"last_receiver_name\": \"ee\",\n            \"last_receiver_phone_number\": \"650-788-3883\",\n            \"conn_client_name\": \"Web site\",\n            \"pack_status\": \"40\",\n            \"order_status_text\": \"Item is delivered\",\n            \"courier_name\": \"Alex\",\n            \"courier_surname\": \"Ginglow\",\n            \"courier_cell\": \"6507777777\",\n            \"pack_owner_name\": \"Hanna\",\n            \"pack_owner_surname\": \"Smith\",\n            \"pack_owner_cell\": \"6507883883\",\n            \"pack_owner_email\": \"hanna.smith@gmail.com\",\n            \"sender_user_id\": \"5527\",\n            \"status_sender\": \"Item is delivered\",\n            \"item_value\": \"250.00\",\n            \"pack_size_text\": \"Small (1-25 Lbs)\",\n            \"shedule_type\": \"1\",\n            \"pack_mailing_status\": \"1\",\n            \"snpx_emails\": \"1\",\n            \"snpx_nots\": \"1\",\n            \"snpx_sms\": \"0\",\n            \"snpx_instant_not\": \"1\",\n            \"company_metadata\": null,\n            \"accepted_courier_id\": \"5384\",\n            \"desc_text\": \"Special delivery notes\",\n            \"distance\": \"6.35\",\n            \"distance_time\": \"897.00\"\n        },\n        {\n            \"id\": \"39081\",\n            \"order_name\": \"Test Delivery Order 2\",\n            \"send_name\": \"Test Delivery Order 2\",\n            \"pack_size_id\": \"2\",\n            \"pack_transport_id\": \"1\",\n            \"pack_from_lat\": \"37.3962636693620000000000\",\n            \"pack_from_lng\": \"-122.0758237707600000000000\",\n            \"pack_from_text\": \"511 Central Ave, Mountain View, CA 94043, USA\",\n            \"taken_asap\": \"1\",\n            \"schedule_date\": null,\n            \"distance_miles\": \"1.43\",\n            \"distance_time_seconds\": \"349.00\",\n            \"pack_map_img\": \"21880cbae9efb150af96f9135369ce12.png\",\n            \"pack_price\": \"34.24\",\n            \"rest_api_vers\": \"1\",\n            \"route_count\": \"1\",\n            \"last_pack_to_lat\": \"37.3907461000000000000000\",\n            \"last_pack_to_lng\": \"-122.0817109000000000000000\",\n            \"last_pack_to_text\": \"444 Castro Street, Mountain View, CA, USA\",\n            \"last_receiver_name\": \"John\",\n            \"last_receiver_phone_number\": \"6507883883\",\n            \"conn_client_name\": \"IOS\",\n            \"pack_status\": \"20\",\n            \"order_status_text\": \"Courier selected\",\n            \"courier_name\": \"Alex\",\n            \"courier_surname\": \"Ginglow\",\n            \"courier_cell\": \"6507777777\",\n            \"pack_owner_name\": \"Hanna\",\n            \"pack_owner_surname\": \"Smith\",\n            \"pack_owner_cell\": \"6507883883\",\n            \"pack_owner_email\": \"hanna.smith@gmail.com\",\n            \"sender_user_id\": \"5527\",\n            \"status_sender\": \"Courier selected\",\n            \"item_value\": \"50.00\",\n            \"pack_size_text\": \"Medium (26-50 Lbs)\",\n            \"shedule_type\": \"1\",\n            \"pack_mailing_status\": \"1\",\n            \"snpx_emails\": \"1\",\n            \"snpx_nots\": \"1\",\n            \"snpx_sms\": \"0\",\n            \"snpx_instant_not\": \"1\",\n            \"company_metadata\": null,\n            \"accepted_courier_id\": \"5384\",\n            \"desc_text\": \"\",\n            \"distance\": \"1.43\",\n            \"distance_time\": \"349.00\"\n        },\n        {\n            \"id\": \"39080\",\n            \"order_name\": \"Image\",\n            \"send_name\": \"Image\",\n            \"pack_size_id\": \"2\",\n            \"pack_transport_id\": \"1\",\n            \"pack_from_lat\": \"37.3962636693620000000000\",\n            \"pack_from_lng\": \"-122.0758237707600000000000\",\n            \"pack_from_text\": \"511 Central Ave, Mountain View, CA 94043, USA\",\n            \"taken_asap\": \"1\",\n            \"schedule_date\": null,\n            \"distance_miles\": \"5.54\",\n            \"distance_time_seconds\": \"994.00\",\n            \"pack_map_img\": null,\n            \"pack_price\": \"35.77\",\n            \"rest_api_vers\": \"1\",\n            \"route_count\": \"1\",\n            \"last_pack_to_lat\": \"37.3948376000000000000000\",\n            \"last_pack_to_lng\": \"-122.1503889000000000000000\",\n            \"last_pack_to_text\": \"3500 Deer Creek Road, Palo Alto, CA, USA\",\n            \"last_receiver_name\": \"Alex\",\n            \"last_receiver_phone_number\": \"6507883883\",\n            \"conn_client_name\": \"IOS\",\n            \"pack_status\": \"10\",\n            \"order_status_text\": \"Paid order\",\n            \"courier_name\": null,\n            \"courier_surname\": null,\n            \"courier_cell\": null,\n            \"pack_owner_name\": \"Hanna\",\n            \"pack_owner_surname\": \"Smith\",\n            \"pack_owner_cell\": \"6507883883\",\n            \"pack_owner_email\": \"hanna.smith@gmail.com\",\n            \"sender_user_id\": \"5527\",\n            \"status_sender\": \"Paid order\",\n            \"item_value\": \"50.00\",\n            \"pack_size_text\": \"Medium (26-50 Lbs)\",\n            \"shedule_type\": \"1\",\n            \"pack_mailing_status\": \"1\",\n            \"snpx_emails\": \"1\",\n            \"snpx_nots\": \"1\",\n            \"snpx_sms\": \"0\",\n            \"snpx_instant_not\": \"1\",\n            \"company_metadata\": null,\n            \"accepted_courier_id\": null,\n            \"desc_text\": \"Special delivery notes\",\n            \"distance\": \"5.54\",\n            \"distance_time\": \"994.00\"\n        }"}],"_postman_id":"656c256b-7d81-445b-8527-01b7a7450f64"},{"name":"/get_order_details","id":"13a05156-8cd3-41eb-99b8-c43a1d11784c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"order_id\": {{last_order_id}},\r\n    \"include_images\": \"0\",\r\n    \"include_history\": \"0\",\r\n    \"include_routes\": \"1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_order_details","description":"<p>Allows to get the details about specific, previously created order by providing order_id</p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order_id</td>\n<td><strong>integer</strong> required</td>\n<td>Unique ID of the specific order</td>\n</tr>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>include_images</td>\n<td><strong>integer</strong> optional</td>\n<td>Return images if value=\"1\" Do not return images if value=\"0\" By default response doesn't contain images</td>\n</tr>\n<tr>\n<td>include_history</td>\n<td><strong>integer</strong> optional</td>\n<td>Return history if value=\"1\" Do not return history if value=\"0\" By default response doesn't contain history</td>\n</tr>\n<tr>\n<td>include_routes</td>\n<td><strong>integer</strong> optional</td>\n<td>Include routes if value=\"1\" Do not return routes if value=\"0\" By default response doesn't</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><strong>string</strong></td>\n<td>It is always 0 for successful retrieve response</td>\n</tr>\n<tr>\n<td>data</td>\n<td>object</td>\n<td>Order data</td>\n</tr>\n<tr>\n<td>id</td>\n<td><strong>string</strong></td>\n<td>The order id</td>\n</tr>\n<tr>\n<td>instant_not_url</td>\n<td><strong>string</strong></td>\n<td>Webhook URL provided by you earlier</td>\n</tr>\n<tr>\n<td>order_name</td>\n<td><strong>string</strong></td>\n<td>The name of order</td>\n</tr>\n<tr>\n<td>pack_size_id</td>\n<td><strong>string</strong></td>\n<td>Size of package</td>\n</tr>\n<tr>\n<td>pack_transport_id</td>\n<td><strong>string</strong></td>\n<td>Selected transport id</td>\n</tr>\n<tr>\n<td>pack_from_lat</td>\n<td><strong>string</strong></td>\n<td>Latitude of pick-up address</td>\n</tr>\n<tr>\n<td>pack_from_lng</td>\n<td><strong>string</strong></td>\n<td>Longitude of pick-up address</td>\n</tr>\n<tr>\n<td>pack_from_text</td>\n<td><strong>string</strong></td>\n<td>The pick-up address</td>\n</tr>\n<tr>\n<td>taken_asap</td>\n<td><strong>string</strong></td>\n<td>1 is for Urgent deliver, 0 for Scheduled delivery</td>\n</tr>\n<tr>\n<td>schedule_date</td>\n<td><strong>string</strong></td>\n<td>Scheduled date of Order</td>\n</tr>\n<tr>\n<td>distance_miles</td>\n<td><strong>string</strong></td>\n<td>Distance between pick-up and drop_off address</td>\n</tr>\n<tr>\n<td>distance_time_seconds</td>\n<td><strong>string</strong></td>\n<td>Time in seconds between pick-up and drop_off address</td>\n</tr>\n<tr>\n<td>pack_map_img</td>\n<td><strong>string</strong></td>\n<td>The link to google map image</td>\n</tr>\n<tr>\n<td>pack_price</td>\n<td><strong>string</strong></td>\n<td>The price of the order</td>\n</tr>\n<tr>\n<td>rest_api_vers</td>\n<td><strong>string</strong></td>\n<td>Version of API that created order</td>\n</tr>\n<tr>\n<td>route_count</td>\n<td><strong>string</strong></td>\n<td>The count of drop-off addresses</td>\n</tr>\n<tr>\n<td>last_pack_to_lat</td>\n<td><strong>string</strong></td>\n<td>Latitude of last drop-off address</td>\n</tr>\n<tr>\n<td>last_pack_to_lng</td>\n<td><strong>string</strong></td>\n<td>Longitude of last drop-off address</td>\n</tr>\n<tr>\n<td>last_pack_to_text</td>\n<td><strong>string</strong></td>\n<td>The address of last drop_off location</td>\n</tr>\n<tr>\n<td>last_receiver_name</td>\n<td><strong>string</strong></td>\n<td>The name of receiver on last last drop-off address</td>\n</tr>\n<tr>\n<td>last_receiver_phone_number</td>\n<td><strong>string</strong></td>\n<td>The phone number of receiver on last drop-off address</td>\n</tr>\n<tr>\n<td>conn_client_name</td>\n<td><strong>string</strong></td>\n<td>Order Creation Source</td>\n</tr>\n<tr>\n<td>pack_status</td>\n<td><strong>string</strong></td>\n<td>Order Status</td>\n</tr>\n<tr>\n<td>order_status_text</td>\n<td><strong>string</strong></td>\n<td>The Order Status text</td>\n</tr>\n<tr>\n<td>courier_name</td>\n<td><strong>string</strong></td>\n<td>The name of courier if already assigned</td>\n</tr>\n<tr>\n<td>courier_surname</td>\n<td><strong>string</strong></td>\n<td>The surname of courier if already assigned</td>\n</tr>\n<tr>\n<td>courier_cell</td>\n<td><strong>string</strong></td>\n<td>The phone number of courier if already assigned</td>\n</tr>\n<tr>\n<td>sender_surname</td>\n<td><strong>string</strong></td>\n<td>The surname of order owner</td>\n</tr>\n<tr>\n<td>sender_cell</td>\n<td><strong>string</strong></td>\n<td>The phone number of order owner</td>\n</tr>\n<tr>\n<td>sender_email</td>\n<td><strong>string</strong></td>\n<td>The email of order owner</td>\n</tr>\n<tr>\n<td>sender_user_id</td>\n<td><strong>string</strong></td>\n<td>The ID of order owner</td>\n</tr>\n<tr>\n<td>status_sender</td>\n<td><strong>string</strong></td>\n<td>The Order Status text</td>\n</tr>\n<tr>\n<td>order_images</td>\n<td><strong>array</strong></td>\n<td>List of order images</td>\n</tr>\n<tr>\n<td>order_images.pack_img</td>\n<td><strong>string</strong></td>\n<td>The link to original image uploaded by sender / courier</td>\n</tr>\n<tr>\n<td>order_images.inserted_date</td>\n<td><strong>string</strong></td>\n<td>The datetime when image was uploaded</td>\n</tr>\n<tr>\n<td>order_images.img_type</td>\n<td><strong>string</strong></td>\n<td>1 = uploaded by sender , 2 uploaded by courier</td>\n</tr>\n<tr>\n<td>order_images.pack_img_status</td>\n<td><strong>string</strong></td>\n<td>The status of order on which image has been uploaded</td>\n</tr>\n<tr>\n<td>history</td>\n<td><strong>array</strong></td>\n<td>List of operations on that order</td>\n</tr>\n<tr>\n<td>history.operation_name</td>\n<td><strong>string</strong></td>\n<td>The name of operation</td>\n</tr>\n<tr>\n<td>history.operation_date</td>\n<td><strong>string</strong></td>\n<td>The datetime of operation</td>\n</tr>\n<tr>\n<td>history.pack_status</td>\n<td><strong>string</strong></td>\n<td><a href=\"https://github.com/senpex/senpex-api-docs/wiki/Dictionary-Definitions#Order-Status\">Order Status</a></td>\n</tr>\n<tr>\n<td>routes</td>\n<td><strong>array</strong></td>\n<td>List of routes</td>\n</tr>\n<tr>\n<td>routes.route_to_text</td>\n<td><strong>string</strong></td>\n<td>The address of drop-off address</td>\n</tr>\n<tr>\n<td>routes.route_to_lat</td>\n<td><strong>string</strong></td>\n<td>The Latitude of drop-off address</td>\n</tr>\n<tr>\n<td>routes.route_to_lng</td>\n<td><strong>string</strong></td>\n<td>The Longitude of drop-off address</td>\n</tr>\n<tr>\n<td>routes.route_status</td>\n<td><strong>string</strong></td>\n<td><a href=\"https://github.com/senpex/senpex-api-docs/wiki/Dictionary-Definitions#Route-Status\">Route Status</a></td>\n</tr>\n<tr>\n<td>routes.route_delivery_date</td>\n<td><strong>string</strong></td>\n<td>Datetime when the order was delivered</td>\n</tr>\n<tr>\n<td>rec_phone</td>\n<td><strong>string</strong></td>\n<td>Receivers phone number</td>\n</tr>\n<tr>\n<td>rec_name</td>\n<td><strong>string</strong></td>\n<td>Receivers name</td>\n</tr>\n<tr>\n<td>route_delivery_date</td>\n<td><strong>string</strong></td>\n<td>Receivers order receipt date</td>\n</tr>\n<tr>\n<td>route_distance</td>\n<td><strong>string</strong></td>\n<td>Route distance</td>\n</tr>\n<tr>\n<td>route_distance_time</td>\n<td><strong>string</strong></td>\n<td>Route time to reach from pick-up to this drop-off</td>\n</tr>\n</tbody>\n</table>\n</div><p>If \"include_images\", \"include_history\" and \"include_routes\" are not provided in the request, the response will not have \"order_images\", \"history\" and \"routes\"</p>\n","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","get_order_details"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"b9407663-f62d-48fc-af59-cbe703f854ec","name":"/get_order_details","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n   \"client_id\":\"{{client_id}}\",\r\n   \"secret_id\":\"{{secret_id}}\",\r\n   \"order_id\":{{last_order_id}},\r\n   \"include_images\":\"0\",\r\n   \"include_history\":\"0\",\r\n   \"include_routes\":\"0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/get_order_details"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 09 Feb 2021 04:19:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": [\n        {\n            \"id\": \"39083\",\n            \"order_name\": \"Test Delivery Order\",\n            \"pack_size_id\": \"1\",\n            \"pack_transport_id\": \"1\",\n            \"pack_from_lat\": \"37.4200867000000000000000\",\n            \"pack_from_lng\": \"-122.0823509000000000000000\",\n            \"pack_from_text\": \"1585 Charleston Rd, Mountain View, CA 94043, USA\",\n            \"taken_asap\": \"1\",\n            \"schedule_date\": null,\n            \"distance_miles\": \"6.35\",\n            \"distance_time_seconds\": \"897.00\",\n            \"pack_map_img\": \"f232e6f72305fc5b186d723728e846a8.png\",\n            \"pack_price\": \"27.50\",\n            \"rest_api_vers\": \"1\",\n            \"route_count\": \"1\",\n            \"last_pack_to_lat\": \"37.4299830000000000000000\",\n            \"last_pack_to_lng\": \"-122.1640234000000000000000\",\n            \"last_pack_to_text\": \"341 Galvez St, Stanford, CA 94305, USA\",\n            \"conn_client_name\": \"Web site\",\n            \"pack_status\": \"40\",\n            \"order_status_text\": \"Item is delivered\",\n            \"courier_name\": \"Alex\",\n            \"courier_surname\": \"Ginglow\",\n            \"courier_cell\": \"6507777777\",\n            \"courier_self_img\": \"image_list2/02F9F3F8-AC6A-4325-B54E-E25FBA1596FE2021020200430.png\",\n            \"sender_name\": \"Hanna\",\n            \"sender_surname\": \"Smith\",\n            \"sender_cell\": \"6507883883\",\n            \"sender_email\": \"hanna.smith@gmail.com\",\n            \"sender_user_id\": \"5527\",\n            \"status_sender\": \"Item is delivered\",\n            \"item_value\": \"250.00\",\n            \"pack_mailing_status\": \"1\",\n            \"snpx_emails\": \"1\",\n            \"snpx_nots\": \"1\",\n            \"snpx_sms\": \"0\",\n            \"snpx_instant_not\": \"1\",\n            \"instant_not_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"company_metadata\": null,\n            \"pack_bidders\": [\n                {\n                    \"pack_id\": \"39083\",\n                    \"bidder_id\": \"5384\",\n                    \"bid_date\": \"2021-02-09 01:57:53\",\n                    \"accept_status\": \"10\",\n                    \"accepted_date\": \"2021-02-09 01:57:53\",\n                    \"bid_text\": \"\",\n                    \"reason_type\": null,\n                    \"reason_id\": null,\n                    \"reason_text\": null,\n                    \"courier_name\": \"Alex\",\n                    \"courier_surname\": \"Ginglow\",\n                    \"courier_cell\": \"6507777777\",\n                    \"courier_email\": \"cheosteria+truck@gmail.com\",\n                    \"accept_status_text\": \"Accepted\",\n                    \"reason_template_text\": null\n                }\n            ],\n            \"courier_self_img_thumb\": \"image_list2/02F9F3F8-AC6A-4325-B54E-E25FBA1596FE2021020200430.png.thumb.png\"\n        }\n    ]\n}"}],"_postman_id":"13a05156-8cd3-41eb-99b8-c43a1d11784c"},{"name":"/get_courier_place","id":"11622f0a-c28a-4442-8a7a-a8dcfd9ae0db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"order_id\": \"{{last_order_id}}\",\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_courier_place","description":"<p>Gets the details of the courier service and the real time location of the courier agent for a particular order.</p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order_id</td>\n<td><strong>integer</strong> <br /> required</td>\n<td>Unique ID of the specific order</td>\n</tr>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> <br /> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> <br /> required</td>\n<td>Your secret ID</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><strong>string</strong></td>\n<td>It is always 0 when the request is successful</td>\n</tr>\n<tr>\n<td>data</td>\n<td><strong>object</strong></td>\n<td>Courier data</td>\n</tr>\n<tr>\n<td>pack_status</td>\n<td><strong>string</strong></td>\n<td>Order Status</td>\n</tr>\n<tr>\n<td>courier_name</td>\n<td><strong>string</strong></td>\n<td>Name of assigned courier</td>\n</tr>\n<tr>\n<td>courier_surname</td>\n<td><strong>string</strong></td>\n<td>Surname of assigned courier</td>\n</tr>\n<tr>\n<td>courier_phone_number</td>\n<td><strong>string</strong></td>\n<td>Phone number of assigned courier</td>\n</tr>\n<tr>\n<td>last_lng</td>\n<td><strong>string</strong></td>\n<td>The longitude of the courier location</td>\n</tr>\n<tr>\n<td>last_lat</td>\n<td><strong>string</strong></td>\n<td>The latitude of the courier location</td>\n</tr>\n<tr>\n<td>last_timezone</td>\n<td><strong>string</strong></td>\n<td>Timezone of courier</td>\n</tr>\n<tr>\n<td>last_location_date</td>\n<td><strong>string</strong></td>\n<td>The date that courier has been in this location (UTC TIME)</td>\n</tr>\n<tr>\n<td>last_seen_date</td>\n<td><strong>string</strong></td>\n<td>The date of last courier APP usage (UTC TIME)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","get_courier_place"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"b09575cf-5e4f-4a08-9e47-2317c4cc9e63","name":"/get_courier_place","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n   \"order_id\":\"{{last_order_id}}\",\r\n   \"client_id\":\"{{client_id}}\",\r\n   \"secret_id\":\"{{secret_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/get_courier_place"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 09 Feb 2021 04:30:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": {\n        \"pack_status\": \"40\",\n        \"order_status\": \"40\",\n        \"courier_name\": \"Alex\",\n        \"courier_surname\": \"Ginglow\",\n        \"courier_phone_number\": \"6507777777\",\n        \"last_lng\": \"-122.0757800000000000000000\",\n        \"last_lat\": \"37.396265000000\",\n        \"last_timezone\": \"-480\",\n        \"last_location_date\": \"2021-02-09 04:29:23\",\n        \"last_seen_date\": \"2021-02-09 00:00:24\",\n        \"snpx_emails\": null,\n        \"snpx_nots\": null,\n        \"snpx_sms\": null,\n        \"snpx_instant_not\": null,\n        \"instant_not_url\": \"https://api.github.com/users/hadley/orgs\"\n    }\n}"}],"_postman_id":"11622f0a-c28a-4442-8a7a-a8dcfd9ae0db"},{"name":"/update_order_nots","id":"c30aec8b-6bfc-4c36-846b-cba744cbee4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"client_id\": \"{{client_id}}\",\r\n    \"secret_id\": \"{{secret_id}}\",\r\n    \"order_id\": \"{{last_order_id}}\",\r\n    \"snpx_instant_not\": \"1\",\r\n    \"snpx_emails\": \"1\",\r\n    \"snpx_nots\": \"1\",\r\n    \"snpx_sms\": \"0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/update_order_nots","description":"<p>From the moment of order creation and until the delivery is done, clients receive the real-time notifications about the delivery status of their orders. Currently our system supports four options for sending notifications:</p>\n<p><strong>Email</strong> - messages delivered to the client’s email box;<br /><strong>Push</strong> - a quick pop-up messages received from the client’s app;<br /><strong>Sms</strong> - text messages delivered to the client’s cell phone;<br /><strong>Delivery Tracking Status</strong> - delivery tracking notifications that can be accessed from the user’s personal account dashboard.<br />By default each user receives email and push notifications, but our API allows you to modify notification preferences.   </p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order_id</td>\n<td><strong>string</strong> required</td>\n<td>Unique ID of the specific order</td>\n</tr>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>snpx_instant_not</td>\n<td><strong>integer</strong> optional</td>\n<td>Enables notifications if value=\"1\"<br /> Disables notifications if value=\"0\" <br />By default notifications are enabled</td>\n</tr>\n<tr>\n<td>snpx_emails</td>\n<td><strong>integer</strong> optional</td>\n<td>Emails for orders will be sent if value=\"1\" <br />Emails won't be sent if value=\"0\" <br />By default email notifications are enabled</td>\n</tr>\n<tr>\n<td>snpx_nots</td>\n<td><strong>integer</strong> optional</td>\n<td>Enables push notifications if value=\"1\" and \"device_id\" is provided <br /> Disables push notifications=\"0\" <br />By default push notifications are enabled</td>\n</tr>\n<tr>\n<td>snpx_sms</td>\n<td><strong>integer</strong> optional</td>\n<td>Enables sms notifications if value=\"1\" <br />Disables sms notifications if value=\"0\" <br />By default response sms notifications are disabled</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><strong>string</strong></td>\n<td>It is always 0 for successful cancellation requests.</td>\n</tr>\n<tr>\n<td>inserted_id</td>\n<td><strong>string</strong></td>\n<td>Inserted Id</td>\n</tr>\n<tr>\n<td>details</td>\n<td><strong>object</strong></td>\n<td>Notification object</td>\n</tr>\n<tr>\n<td>snpx_emails</td>\n<td><strong>integer</strong></td>\n<td>1 =enabled , 0 = disabled</td>\n</tr>\n<tr>\n<td>snpx_nots</td>\n<td><strong>integer</strong></td>\n<td>1 =enabled , 0 = disabled</td>\n</tr>\n<tr>\n<td>snpx_sms</td>\n<td><strong>integer</strong></td>\n<td>1 =enabled , 0 = disabled</td>\n</tr>\n<tr>\n<td>snpx_instant_not</td>\n<td><strong>integer</strong></td>\n<td>1 =enabled , 0 = disabled</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","update_order_nots"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"f91b4b35-6cd7-4fe6-8356-ea3e85c04849","name":"/update_order_nots","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n   \"client_id\":\"{{client_id}}\",\r\n   \"secret_id\":\"{{secret_id}}\",\r\n   \"order_id\":\"{{last_order_id}}\",\r\n   \"snpx_instant_not\":\"1\",\r\n   \"snpx_emails\": \"1\",\r\n   \"snpx_nots\": \"1\",\r\n   \"snpx_sms\": \"0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/update_order_nots"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 21 Feb 2021 11:05:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": \"39286\",\n    \"details\": {\n        \"snpx_emails\": 1,\n        \"snpx_nots\": 1,\n        \"snpx_sms\": 0,\n        \"snpx_instant_not\": 1\n    }\n}"}],"_postman_id":"c30aec8b-6bfc-4c36-846b-cba744cbee4a"},{"name":"/cancel_order","id":"e901c96a-17b1-43dd-9f00-5f236b9d29c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n   \"order_id\":\"9000278\",\r\n   \"client_id\":\"{{client_id}}\",\r\n   \"secret_id\":\"{{secret_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/api/rest/v3/cancel_order","description":"<p>Allows to cancel order by order_id</p>\n","urlObject":{"protocol":"https","path":["api","rest","v3","cancel_order"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"64940cd8-5973-4ff0-9b2d-bbda527e003b","name":"/cancel_order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n   \"order_id\":\"39287\",\r\n   \"client_id\":\"{{client_id}}\",\r\n   \"secret_id\":\"{{secret_id}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/cancel_order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 21 Feb 2021 10:42:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": -1,\n    \"details\": {\n        \"refund_amount\": 20.5\n    }\n}"}],"_postman_id":"e901c96a-17b1-43dd-9f00-5f236b9d29c7"}],"id":"5c72bc4d-6ddc-434f-8ad4-f0230b1903f1","description":"<p>General Request represent classical API and contain requests used to create orders and retrieve different data.</p>\n<p>Senpex API support two types of orders:</p>\n<ul>\n<li>urgent</li>\n<li>scheduled</li>\n</ul>\n<p>The only difference of these requests is the value of the parameter <code>\"taken_asap\"</code>.\nTo create an urgent order <code>\"taken_asap\"</code> should have <code>\"1\"</code>. In this case the date and time of the order will be considered as a current time.<br />But if you need to create a scheduled order, lets say for tomorrow, <code>\"taken_asap\"</code> parameter, should have <code>\"0\"</code> and <code>\"schedule_date\"</code> must be added. You will find this in example below.</p>\n","_postman_id":"5c72bc4d-6ddc-434f-8ad4-f0230b1903f1"},{"name":"General Webhook","item":[{"name":"Webhook","id":"5eeab21d-c88d-4325-b0e1-d376b6c3ea02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"data\": [\n    {\n      \"id\": \"39600\",\n      \"routes\": [\n        {\n          \"id\": \"171564\",\n          \"rec_name\": \"Trinity Gothe\",\n          \"rec_phone\": \"19515286188\",\n          \"remote_id\": \"-1\",\n          \"route_status\": \"0\",\n          \"route_to_lat\": \"33.6099453000000000000000\",\n          \"route_to_lng\": \"-117.2373436000000000000000\",\n          \"route_to_text\": \"24172 Rosita Drive, Wildomar, California 92595\",\n          \"pack_status_uq\": \"0\",\n          \"route_distance\": \"0.00\",\n          \"route_work_type\": \"0\",\n          \"route_delivery_date\": null,\n          \"route_distance_time\": \"0.00\"\n        },\n        {\n          \"id\": \"171565\",\n          \"rec_name\": \"Michelle Bunge\",\n          \"rec_phone\": \"19515263026\",\n          \"remote_id\": \"-1\",\n          \"route_status\": \"0\",\n          \"route_to_lat\": \"33.6068456000000000000000\",\n          \"route_to_lng\": \"-117.2349780000000000000000\",\n          \"route_to_text\": \"24362 Brillante Drive, Wildomar, California 92595\",\n          \"pack_status_uq\": \"0\",\n          \"route_distance\": \"0.00\",\n          \"route_work_type\": \"0\",\n          \"route_delivery_date\": null,\n          \"route_distance_time\": \"0.00\"\n        }\n      ],\n      \"history\": [\n        {\n          \"pack_status\": \"10\",\n          \"operation_date\": \"2021-04-03 01:11:46\",\n          \"operation_name\": \"Package paid\"\n        },\n        {\n          \"pack_status\": \"20\",\n          \"operation_date\": \"2021-04-03 01:12:16\",\n          \"operation_name\": \"Courier selected\"\n        },\n        {\n          \"pack_status\": \"25\",\n          \"operation_date\": \"2021-04-03 01:12:37\",\n          \"operation_name\": \"Arrived to pickup location\"\n        },\n        {\n          \"pack_status\": \"30\",\n          \"operation_date\": \"2021-04-03 01:12:45\",\n          \"operation_name\": \"Item in transit\"\n        },\n        {\n          \"pack_status\": \"35\",\n          \"operation_date\": \"2021-04-03 01:12:47\",\n          \"operation_name\": \"Arrived to drop-off location\"\n        }\n      ],\n      \"snpx_sms\": \"0\",\n      \"secret_id\": \"3058E201-955F-4E9D-9CF0-8A067D5A8D412021040222030\",\n      \"snpx_nots\": \"0\",\n      \"item_value\": \"200.00\",\n      \"order_name\": \"Some box\",\n      \"pack_price\": \"27.50\",\n      \"taken_asap\": \"1\",\n      \"pack_status\": \"30\",\n      \"route_count\": \"1\",\n      \"sender_cell\": \"6507883883\",\n      \"sender_name\": \"Webhook\",\n      \"snpx_emails\": \"1\",\n      \"courier_cell\": \"6507777777\",\n      \"courier_name\": \"Alex\",\n      \"pack_bidders\": [\n        {\n          \"pack_id\": \"39600\",\n          \"bid_date\": \"2021-04-03 01:12:16\",\n          \"bid_text\": \"\",\n          \"bidder_id\": \"5384\",\n          \"reason_id\": null,\n          \"reason_text\": null,\n          \"reason_type\": null,\n          \"courier_cell\": \"6507777777\",\n          \"courier_name\": \"Alex\",\n          \"accept_status\": \"10\",\n          \"accepted_date\": \"2021-04-03 01:12:16\",\n          \"courier_email\": \"cheosteria+truck@gmail.com\",\n          \"courier_surname\": \"Ginglow\",\n          \"accept_status_text\": \"Accepted\",\n          \"reason_template_text\": null\n        }\n      ],\n      \"pack_map_img\": \"5cb127beef03b839221a9cf91e2f11dc.png\",\n      \"pack_size_id\": \"1\",\n      \"sender_email\": \"webhook@senpex.com\",\n      \"pack_from_lat\": \"37.3786872000000000000000\",\n      \"pack_from_lng\": \"-121.9872550000000000000000\",\n      \"rest_api_vers\": \"1\",\n      \"schedule_date\": \"2021-04-03 01:11:41\",\n      \"status_sender\": \"Item in transit\",\n      \"distance_miles\": \"6.85\",\n      \"pack_from_text\": \"350 Oakmead Pkwy, Sunnyvale, CA 94085, USA\",\n      \"sender_surname\": \"General\",\n      \"sender_user_id\": \"5652\",\n      \"courier_surname\": \"Ginglow\",\n      \"instant_not_url\": \"https://api.github.com/users/hadley/orgs\",\n      \"company_metadata\": null,\n      \"conn_client_name\": \"REST API\",\n      \"courier_self_img\": \"image_list2/02F9F3F8-AC6A-4325-B54E-E25FBA1596FE2021020200430.png\",\n      \"last_pack_to_lat\": \"37.3872000000000000000000\",\n      \"last_pack_to_lng\": \"-122.0874060000000000000000\",\n      \"snpx_instant_not\": \"0\",\n      \"last_pack_to_text\": \"1101 W El Camino Real, Mountain View, CA 94040, USA\",\n      \"order_status_text\": \"Item in transit\",\n      \"pack_transport_id\": \"1\",\n      \"pack_mailing_status\": \"1\",\n      \"distance_time_seconds\": \"842.00\"\n    }\n  ],\n  \"info\": \"{\\\"courier_rate\\\":\\\"3.33\\\"}\",\n  \"event_id\": \"20\",\n  \"order_id\": \"39600\",\n  \"secret_id\": \"3058E201-955F-4E9D-9CF0-8A067D5A8D412021040222030\",\n  \"access_key\": \"\",\n  \"drop_off_id\": \"-1\",\n  \"request_type\": \"test\",\n  \"drop_off_event_id\": \"-1\"\n}","options":{"raw":{"language":"json"}}},"url":"/Clients_Webhook_URL ","description":"<p>Example of the webhook notification sent by Senpex Platform</p>\n","urlObject":{"path":["Clients_Webhook_URL "],"query":[],"variable":[]}},"response":[],"_postman_id":"5eeab21d-c88d-4325-b0e1-d376b6c3ea02"}],"id":"f9582f28-3df5-43a9-aed7-0c9e017a8153","description":"<p>Webhooks notify applications when specific events occur on a Senpex Platform. This commonly related to the order delivery statuses:</p>\n<ul>\n<li>Courier assigned,</li>\n<li>Courier arrived to pick-up location</li>\n<li>Courier picked-up the package</li>\n<li>Courier arrived to drop-off location</li>\n<li>Package delivered</li>\n</ul>\n<p>To start receive notification using webhook, provide our support team with webhook URL.</p>\n<p><code>pack_status</code> possible values:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>10</td>\n<td>Paid order</td>\n<td>Order payment is done</td>\n</tr>\n<tr>\n<td>20</td>\n<td>Courier selected</td>\n<td>Courier service is selected for the order</td>\n</tr>\n<tr>\n<td>25</td>\n<td>Arrived to pickup location</td>\n<td>Courier arrived to pickup location</td>\n</tr>\n<tr>\n<td>30</td>\n<td>Item in transit</td>\n<td>Package is in transit for delivery</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Item is delivered</td>\n<td>Package is delivered</td>\n</tr>\n<tr>\n<td>50</td>\n<td>Item not given</td>\n<td>Package is not delivered</td>\n</tr>\n<tr>\n<td>90</td>\n<td>Reported order</td>\n<td>Order is cancelled by driver for some incident</td>\n</tr>\n<tr>\n<td>100</td>\n<td>Cancelled order</td>\n<td>Order is cancelled by customer</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>route_status</code> possible values:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>30</td>\n<td>Item in transit</td>\n<td>Package is in transit for delivery</td>\n</tr>\n<tr>\n<td>35</td>\n<td>Arrived to drop-off location</td>\n<td>Driver arrived</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Item is delivered</td>\n<td>Package is delivered</td>\n</tr>\n<tr>\n<td>50</td>\n<td>Item not given</td>\n<td>Package is not delivered</td>\n</tr>\n<tr>\n<td>90</td>\n<td>Reported order</td>\n<td>Order is cancelled by driver for some incident</td>\n</tr>\n<tr>\n<td>100</td>\n<td>Cancelled order</td>\n<td>Order is cancelled by customer</td>\n</tr>\n</tbody>\n</table>\n</div><p>Parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>info</td>\n<td>Integer</td>\n<td>Couriers rating</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"9e3d7161-4687-43a8-b61d-3f13bd2b1140","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"df5043b6-09ec-4dd3-89ed-ec44e45d496f","type":"text/javascript","exec":[""]}}],"_postman_id":"f9582f28-3df5-43a9-aed7-0c9e017a8153"},{"name":"Add-on [Bulk Order]","item":[{"name":"/create_droppoff_point","id":"4de2cc29-8fd0-41a8-8d7e-2d49bcdabdbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_key\": \"Test Delivery \",  \n  \"client_id\": \"{{client_id}}\",  \n  \"secret_id\": \"{{secret_id}}\", \n  \"rec_name\": \"Jack London\", \n  \"rec_phone\": \"1002003000\",  \n  \"rec_desc\": \" Description that will be visible to driver\", \n  \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\", \n  \"rec_email\": \"test@test.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/create_dropp_off_point","description":"<p>By this request external application sends to Senpex system information about the address that supposed to be served. By default this unit have the status <code>\"Ready for delivery\"</code>. Once the status changed Senpex system will send to external application notification via Webhook.</p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>access_key</td>\n<td><strong>string</strong> required</td>\n<td>Fulfillment ID from the external application</td>\n</tr>\n<tr>\n<td>rec_name</td>\n<td><strong>string</strong> required</td>\n<td>Name of recipient</td>\n</tr>\n<tr>\n<td>rec_phone</td>\n<td><strong>integer</strong> required</td>\n<td>Phone number of the recipient</td>\n</tr>\n<tr>\n<td>rec_desc</td>\n<td><strong>string</strong> required</td>\n<td>Apartment number, gate code and other notes.</td>\n</tr>\n<tr>\n<td>rec_address</td>\n<td><strong>string</strong> required</td>\n<td>Address of the recipient</td>\n</tr>\n<tr>\n<td>rec_email</td>\n<td><strong>string</strong> required</td>\n<td>Email of the recipient</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><strong>integer</strong></td>\n<td>0, means successful operation</td>\n</tr>\n<tr>\n<td>inserted_id</td>\n<td><strong>integer</strong></td>\n<td>Internal fulfilment ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","create_dropp_off_point"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"780176d2-f925-4804-8881-fc4997ba1730","name":"/create_droppoff_point","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_key\": \"Test Delivery 1\",  \n  \"client_id\": \"{{client_id}}\",  \n  \"secret_id\": \"{{secret_id}}\", \n  \"rec_name\": \"Jack London\", \n  \"rec_phone\": \"1002003000\",  \n  \"rec_desc\": \" Description that will be visible to driver\", \n  \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\", \n  \"rec_email\": \"test@test.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/create_dropp_off_point"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 10 Feb 2021 02:23:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": 1137,\n    \"details\": []\n}"}],"_postman_id":"4de2cc29-8fd0-41a8-8d7e-2d49bcdabdbc"},{"name":"/create_dropp_off_route","event":[{"listen":"test","script":{"id":"ce3c7e39-1c2b-46bd-9fc8-63362752e366","exec":["// -- YYY-MM-DD HH:MM"],"type":"text/javascript"}}],"id":"b3dc1fd1-2ff4-476c-aba3-d3595bded790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_key\": \"Test Route 24\",  \n  \"client_id\": \"{{client_id}}\",  \n  \"secret_id\": \"{{secret_id}}\", \n  \"pickup_address\": \"509 Central Ave, Mountain View, CA 94043\",\n  \"pickup_address_text\": \"Test pick-up text\",\n  \"pickup_time\": \"2021-12-15 14:50\",\n  \"rec_name\": \"Jack London\", \n  \"rec_phone\": \" 1002003000\",  \n  \"rec_desc\": \" Description that will be visible to driver\", \n  \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\", \n  \"rec_email\": \"test@test.com\"\n}\n\n","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/create_dropp_off_route","description":"<p>It is a modified and improved endpoint helping to pass through it additional information about the destination point. Unlike the <code>/create_dropp_off_point</code> it contains 3 additional parameters:</p>\n<ul>\n<li><code>\"pickup_address\"</code></li>\n<li><code>\"pickup_time\"</code></li>\n<li><code>\"pickup_address_text\"</code></li>\n</ul>\n<p>This gives our platform a possibility to retrieve more accurate data and conduct more flexible and efficient route optimization and planning, taking into consideration different pick-up points and various time windows.</p>\n<p>The rest of requests in Add-on set work fine with it e.g. <code>/get_dropoff</code></p>\n<h3 id=\"request-parameters\">Request Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Datatype</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td><strong>string</strong> required</td>\n<td>Your client ID</td>\n</tr>\n<tr>\n<td>secret_id</td>\n<td><strong>string</strong> required</td>\n<td>Your secret ID</td>\n</tr>\n<tr>\n<td>access_key</td>\n<td><strong>string</strong> required</td>\n<td>Fulfillment ID from the external application</td>\n</tr>\n<tr>\n<td>pickup_address</td>\n<td><strong>string</strong> required</td>\n<td>Pick-up address</td>\n</tr>\n<tr>\n<td>pickup_time</td>\n<td><strong>string</strong> required</td>\n<td>Pick-up time</td>\n</tr>\n<tr>\n<td>pickup_address_text</td>\n<td><strong>string</strong> optional</td>\n<td>Additional information about pick-up address(apt. number, special directions etc..)</td>\n</tr>\n<tr>\n<td>rec_name</td>\n<td><strong>string</strong> required</td>\n<td>Name of recipient</td>\n</tr>\n<tr>\n<td>rec_phone</td>\n<td><strong>integer</strong> required</td>\n<td>Phone number of the recipient</td>\n</tr>\n<tr>\n<td>rec_desc</td>\n<td><strong>string</strong> required</td>\n<td>Apartment number, gate code and other notes.</td>\n</tr>\n<tr>\n<td>rec_address</td>\n<td><strong>string</strong> required</td>\n<td>Address of the recipient</td>\n</tr>\n<tr>\n<td>rec_email</td>\n<td><strong>string</strong> required</td>\n<td>Email of the recipient</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","create_dropp_off_route"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"50dd90a3-92f8-4bb2-882c-4f00c8ac54af","name":"/create_dropp_off_route","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_key\": \"Test Delivery 2\",  \n  \"client_id\": \"{{client_id}}\",  \n  \"secret_id\": \"{{secret_id}}\", \n  \"pickup_address\": \"509 Central Ave, Mountain View, CA 94043\",\n  \"pickup_address_text\": \"Test pick-up text\",\n  \"pickup_time\": \"2021-10-08 12:50\",\n  \"rec_name\": \"Jack London\", \n  \"rec_phone\": \" 1002003000\",  \n  \"rec_desc\": \" Description that will be visible to driver\", \n  \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\", \n  \"rec_email\": \"test@test.com\"\n}\n\n","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/create_dropp_off_route"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 13 Oct 2021 20:52:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"inserted_id\": 2179,\n    \"details\": []\n}"}],"_postman_id":"b3dc1fd1-2ff4-476c-aba3-d3595bded790"},{"name":"/get_webhooks","id":"ecd67285-2c8a-480a-bd22-63c03569a085","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_key\": \"140\",  \n  \"client_id\": \"{{client_id}}\",  \n  \"secret_id\": \"{{secret_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/api/rest/v4/get_webhooks","description":"<p>Request helps to retrieve the date and time of all events of the order by <code>\"id\"</code> or <code>\"access_key\"</code>.</p>\n","urlObject":{"protocol":"https","path":["api","rest","v4","get_webhooks"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"52fd8fc5-320f-463e-b53d-e0f4677ae6a0","name":"/get_webhooks","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_key\": \"140\",  \n  \"client_id\": \"{{client_id}}\",  \n  \"secret_id\": \"{{secret_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/api/rest/v2/get_webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 10 Feb 2021 02:40:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": [\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"1500\",\n            \"request_inserted_date\": \"2020-10-15 19:29:28\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_event_id\\\": \\\"1500\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.02\"\n        },\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"1700\",\n            \"request_inserted_date\": \"2020-10-15 19:45:18\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_event_id\\\": \\\"1700\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.02\"\n        },\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"2500\",\n            \"request_inserted_date\": \"2020-10-15 20:00:35\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_event_id\\\": \\\"2500\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.02\"\n        },\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"3350\",\n            \"request_inserted_date\": \"2020-10-15 20:03:02\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_comments\\\": \\\"Unable to reach customer\\\", \\\"drop_off_event_id\\\": \\\"3350\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.02\"\n        },\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"2500\",\n            \"request_inserted_date\": \"2020-11-23 20:20:39\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_event_id\\\": \\\"2500\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.05\"\n        },\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"3500\",\n            \"request_inserted_date\": \"2020-11-23 20:23:23\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_comments\\\": \\\"Unable to reach customer\\\", \\\"drop_off_event_id\\\": \\\"3500\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.02\"\n        },\n        {\n            \"drop_off_id\": \"567\",\n            \"drop_off_event_id\": \"1500\",\n            \"request_inserted_date\": \"2021-01-07 22:07:38\",\n            \"request_body\": \"{\\\"secret_id\\\": \\\"CAC297DE-9FF8-4E1A-B1B4-DA94988A8B9D2020062423200\\\", \\\"access_key\\\": \\\"140\\\", \\\"drop_off_id\\\": \\\"567\\\", \\\"request_type\\\": \\\"test\\\", \\\"drop_off_event_id\\\": \\\"1500\\\"}\",\n            \"response_body\": \"-\\r\\nRequest forbidden by administrative rules. Please make s...\",\n            \"sin_url\": \"https://api.github.com/users/hadley/orgs\",\n            \"url_response_seconds\": \"0.02\"\n        }\n    ]\n}"}],"_postman_id":"ecd67285-2c8a-480a-bd22-63c03569a085"},{"name":"/get_dropoff","id":"0ddffcca-5ead-4e5d-b3c0-12b1b22bb893","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"id\":\"290\",\n\"client_id\": \"{{client_id}}\",  \n\"secret_id\": \"{{secret_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_dropoff","description":"<p>Request is used to get the information about the exact sender/recipient.\nEach fulfillment could be accessed by its \"id\" or “access_key”.</p>\n","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","get_dropoff"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"1cb1ab44-75b0-44f2-b702-d6932f279a04","name":"/get_dropoff","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"id\":\"290\",\n\"client_id\": \"{{client_id}}\",  \n\"secret_id\": \"{{secret_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/get_dropoff"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 10 Feb 2021 21:07:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": [\n        {\n            \"id\": \"290\",\n            \"rec_address\": \"3555 Monroe St, Santa Clara, CA 95051\",\n            \"rec_name\": \"Jack Jones\",\n            \"rec_phone\": \"6507883883\",\n            \"rec_desc\": \"Delivery notes. Please leave the kit near my door.\",\n            \"rec_email\": null,\n            \"metadata\": null,\n            \"status_id\": \"1500\",\n            \"company_id\": \"50020\",\n            \"order_id\": \"37987\",\n            \"route_id\": \"90472\",\n            \"return_order_id\": \"37844\",\n            \"return_route_id\": \"90151\",\n            \"inserted_date\": \"2020-08-25 23:05:36\",\n            \"access_key\": \"707\",\n            \"attempt_count\": \"0\",\n            \"rec_address_google_maps\": \"3555 Monroe St, Santa Clara, CA 95051\"\n        }\n    ]\n}"}],"_postman_id":"0ddffcca-5ead-4e5d-b3c0-12b1b22bb893"},{"name":"/get_dropoffs","id":"a640da77-e63a-4560-adf1-1ccfb1229b13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"client_id\": \"{{client_id}}\",  \n\"secret_id\": \"{{secret_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/get_dropoffs","description":"<p>Request is used to get the information about all deliveries.</p>\n","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","get_dropoffs"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"545c7770-3379-4b70-9af5-0a6bf49ab12d","name":"/get_dropoffs","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"client_id\": \"{{client_id}}\",  \n\"secret_id\": \"{{secret_id}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/get_dropoffs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 10 Feb 2021 21:11:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": [\n        {\n            \"id\": \"1137\",\n            \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\",\n            \"rec_name\": \"Jack London\",\n            \"rec_phone\": \"1002003000\",\n            \"rec_desc\": \"Description that will be visible to driver\",\n            \"rec_email\": \"test@test.com\",\n            \"metadata\": null,\n            \"status_id\": \"1000\",\n            \"company_id\": \"50020\",\n            \"order_id\": null,\n            \"route_id\": null,\n            \"return_order_id\": null,\n            \"return_route_id\": null,\n            \"inserted_date\": \"2021-02-10 02:23:55\",\n            \"access_key\": \"Test Delivery 1\",\n            \"attempt_count\": \"0\",\n            \"rec_address_google_maps\": null\n        },\n        {\n            \"id\": \"1136\",\n            \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\",\n            \"rec_name\": \"Jack London\",\n            \"rec_phone\": \"6506080559\",\n            \"rec_desc\": \"Description that will be visible to driver\",\n            \"rec_email\": \"test@test.com\",\n            \"metadata\": null,\n            \"status_id\": \"1000\",\n            \"company_id\": \"50020\",\n            \"order_id\": null,\n            \"route_id\": null,\n            \"return_order_id\": null,\n            \"return_route_id\": null,\n            \"inserted_date\": \"2021-02-10 02:22:49\",\n            \"access_key\": \"1er23\",\n            \"attempt_count\": \"0\",\n            \"rec_address_google_maps\": null\n        },\n        {\n            \"id\": \"1135\",\n            \"rec_address\": \"490 Lincoln St, Santa Clara, CA 95050\",\n            \"rec_name\": \"Jack London\",\n            \"rec_phone\": \"6506080559\",\n            \"rec_desc\": \"Description that will be visible to driver\",\n            \"rec_email\": \"test@test.com\",\n            \"metadata\": null,\n            \"status_id\": \"1000\",\n            \"company_id\": \"50020\",\n            \"order_id\": null,\n            \"route_id\": null,\n            \"return_order_id\": null,\n            \"return_route_id\": null,\n            \"inserted_date\": \"2021-02-10 02:21:38\",\n            \"access_key\": \"123er\",\n            \"attempt_count\": \"0\",\n            \"rec_address_google_maps\": null\n        }"}],"_postman_id":"a640da77-e63a-4560-adf1-1ccfb1229b13"},{"name":"/track_dropoff","id":"7c158e98-0f7d-4d9c-bf49-174e4158b306","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"id\":\"290\",\n\"client_id\": \"{{client_id}}\",  \n\"secret_id\": \"{{secret_id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v4/track_dropoff","description":"<p>Request is used to get tracking information about each kit once it was taken by delivery specialist.\nEach kit could be accessed by it’s \"id\" or “access_key”.</p>\n","urlObject":{"protocol":"https","path":["senpex","api","rest","v4","track_dropoff"],"host":["api","sandbox","senpex","com"],"query":[],"variable":[]}},"response":[{"id":"37a3e8cd-2e55-4f51-a7fb-32ee37392a3a","name":"/track_dropoff","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"id\":\"290\",\n\"client_id\": \"{{client_id}}\",  \n\"secret_id\": \"{{secret_id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sandbox.senpex.com/senpex/api/rest/v2/track_dropoff"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 10 Feb 2021 21:14:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0\",\n    \"data\": [\n        {\n            \"id\": \"290\",\n            \"rec_address\": \"3555 Monroe St, Santa Clara, CA 95051\",\n            \"rec_name\": \"Jack Jones\",\n            \"rec_phone\": \"6507883883\",\n            \"status_id\": \"1500\",\n            \"last_lat\": null,\n            \"last_lng\": null,\n            \"last_location_date\": null,\n            \"route_status\": \"30\",\n            \"route_status2\": \"0\",\n            \"pack_status\": \"30\",\n            \"pack_status2\": \"100\",\n            \"qr_code_data\": null,\n            \"tracking_code\": \"rha564\",\n            \"courier_name\": null,\n            \"courier_surname\": null,\n            \"courier_cell\": null,\n            \"courier_self_img\": null,\n            \"courier_name_return\": null,\n            \"courier_surname_return\": null,\n            \"courier_cell_return\": null,\n            \"courier_self_img_return\": null,\n            \"route_to_lat\": \"37.3675741000000000000000\",\n            \"route_to_lng\": \"-121.9938407000000000000000\",\n            \"status_text\": \"Your parcel has been picked up\"\n        }\n    ]\n}"}],"_postman_id":"7c158e98-0f7d-4d9c-bf49-174e4158b306"}],"id":"be5a7a80-d81e-4b8a-850c-3d72de259f45","description":"<p>It is a special add-on was designed to cover needs of companies which receive a huge number of requests for delivery during a period of time. No matter either it's a pick-up or drop-off request. By this API module Senpex platform able to accumulate multiple destination points and organize them in orders with high efficiency thanks to route optimization algorithm. </p>\n","event":[{"listen":"prerequest","script":{"id":"bc3dc93a-3251-4823-b89d-4e11015a104f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"37003bbf-e1b5-4002-9338-0e3efc3fc53b","type":"text/javascript","exec":[""]}}],"_postman_id":"be5a7a80-d81e-4b8a-850c-3d72de259f45"},{"name":"Add-on Webhook","item":[{"name":"webhook","id":"ef196584-45fb-47d3-b33c-5aac19891e35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"route\": {\n    \"images\": [\n      {\n        \"img_link\": \"image_list2/DB297F55-E947-43BE-9376-39377DB3CAF42023033104260.png\"\n      },\n      {\n        \"img_link\": \"image_list2/EADC684D-8D01-4BDD-9909-ABC6E66F85C62023033104260.png\"\n      },\n      {\n        \"img_link\": \"image_list2/733C9C18-32ED-4042-B799-5A361545DBA02023033104260.png\"\n      }\n    ]\n  },\n  \"return\": {\n    \"images\": [\n      {\n        \"img_link\": null\n      }\n    ]\n  },\n  \"order_id\": \"180627\",\n  \"secret_id\": \"1D1B7979-AC8A-415A-AB71-CFCE5D051BF02023031206020\",\n  \"access_key\": \"134805\",\n  \"drop_off_id\": \"7680\",\n  \"request_type\": \"test\",\n  \"drop_off_event_id\": \"1700\"\n}","options":{"raw":{"language":"json"}}},"url":"/Clients_Webhook_URL ","description":"<p>Example of the webhook notification sent by Senpex Platform</p>\n","urlObject":{"path":["Clients_Webhook_URL "],"query":[],"variable":[]}},"response":[],"_postman_id":"ef196584-45fb-47d3-b33c-5aac19891e35"}],"id":"53a18269-8700-4d9b-8532-89668c8b8ca9","description":"<p>Webhooks notify applications when specific events occur on a Senpex Platform. This commonly related to the order delivery statuses:</p>\n<ul>\n<li>Scheduled for delivery</li>\n<li>Delivered to recipient</li>\n<li>Ready for pick-up</li>\n<li>Scheduled for pick-up</li>\n<li>Picked-up to be delivered to the destination point</li>\n<li>Returned to Senpex warehouse</li>\n<li>Recipient doesn’t respond the phone call</li>\n<li>Unable to reach customer</li>\n<li>Delivered</li>\n</ul>\n<p>To start receive notification using webhook, provide our support team with webhook URL.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1000</td>\n<td>Ready for delivery</td>\n<td>Initial status for all drop-off points which come to the Senpex database from the partner. Addresses with this status are ready to be scheduled for a delivery.</td>\n</tr>\n<tr>\n<td>1500</td>\n<td>Scheduled for delivery</td>\n<td>The status of drop-off point that was added to the queue for route optimization and delivery.</td>\n</tr>\n<tr>\n<td>1550</td>\n<td>Courier assgined</td>\n<td>The status of the package after courier is found and assgined.</td>\n</tr>\n<tr>\n<td>1590</td>\n<td>Arrived to pick-up point</td>\n<td>The status of the package when the driver is at pick-up location.</td>\n</tr>\n<tr>\n<td>1630</td>\n<td>Order picked-up</td>\n<td>The status of the package when the driver picked-up order(s) and started his delivery route.</td>\n</tr>\n<tr>\n<td>1670</td>\n<td>Arrived to drop-off location</td>\n<td>The status of the package when the driver is at drop-off location.</td>\n</tr>\n<tr>\n<td>1700</td>\n<td>Delivered to recipient</td>\n<td>The status of the package that is already been delivered to the recipient.</td>\n</tr>\n<tr>\n<td>2000</td>\n<td>Ready for pick-up</td>\n<td>New status of the package is available after an update from the partners side.</td>\n</tr>\n<tr>\n<td>2500</td>\n<td>Scheduled for pick-up</td>\n<td>The status of the package after it was added to the queue for route optimization and pick-up.</td>\n</tr>\n<tr>\n<td>2700</td>\n<td>Picked-up to be delivered to the the destination point</td>\n<td>Means that item is in transit</td>\n</tr>\n<tr>\n<td>3000</td>\n<td>Returned to Senpex warehouse</td>\n<td>First pick-up attempt fail</td>\n</tr>\n<tr>\n<td>3200</td>\n<td>Recipient doesn’t respond the phone call</td>\n<td>First delivery attempt fail</td>\n</tr>\n<tr>\n<td>3350</td>\n<td>Unable to reach customer</td>\n<td>Second pick-up attempt fail</td>\n</tr>\n<tr>\n<td>3500</td>\n<td>Unable to reach customer</td>\n<td>Second delivery attempt fail</td>\n</tr>\n<tr>\n<td>4000</td>\n<td>Delivered</td>\n<td>Delivered to the destination point(in case of pick-up route)</td>\n</tr>\n<tr>\n<td>5000</td>\n<td>Recieved</td>\n<td>Confirmation of delivery done by partner</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"53a18269-8700-4d9b-8532-89668c8b8ca9"}],"id":"7d8c9e1e-4f19-4195-8b82-226f59133913","event":[{"listen":"prerequest","script":{"id":"88c53139-487f-4ccd-a226-0b57fc109dea","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"52bd6c42-93b6-48b5-8b6b-6388e616a7f3","type":"text/javascript","exec":[""]}}],"_postman_id":"7d8c9e1e-4f19-4195-8b82-226f59133913","description":""}],"event":[{"listen":"prerequest","script":{"id":"02352a2e-b942-430e-9a30-f585caa1073a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b83575db-cc91-45be-b1c4-dfec617c0a89","type":"text/javascript","exec":[""]}}]}