{"info":{"_postman_id":"7420f16e-1d05-4ac3-abd5-577fbf3d0b23","name":"Onetracker API Documentation V.1","description":"<html><head></head><body><p>Users can connect to our Onetracker web API to access information available for this API collection. Our API currently includes the following functionalities.</p>\n<ul>\n<li>List branches of merchants.</li>\n<li>List available services.</li>\n<li>Retrieve slots for services.</li>\n<li>Creating and updating consignment (Bulk/Individual).</li>\n<li>Retrieve invoice of consignments.</li>\n<li>Tracking details for consignments (PLACED,IN_PROGRESS,COMPLETED etc).</li>\n<li>Webhooks to track events for change of order status</li>\n<li>Getting Pricing Quotes.</li>\n<li>Calculating ETA dates for suburbs/postcodes.</li>\n</ul>\n<h1 id=\"getting-started\">Getting Started</h1>\n<p><strong>PREPROD:</strong></p>\n<p>BASE_URL= \"{URL will be provide with access and secret keys}\"</p>\n<p>client_id = \"{access_key}\"</p>\n<p>client_secret = \"{client secret}\"</p>\n<p><strong>PROD:</strong></p>\n<p>BASE_URL= \"<a href=\"https://ext-api.onetraker.com/api/v1\">https://ext-api.onetraker.com/api/v1</a>\"</p>\n<p>client_id = \"{access_key}\"</p>\n<p>client_secret = \"{client secret}\"</p>\n<p><strong>HTTP Status Codes</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>200 OK</th>\n<th>Success</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400 Bad Request</td>\n<td>Invalid request. Some field missing/invalid</td>\n</tr>\n<tr>\n<td>401 Not Authorized</td>\n<td>Authentication Error. Check client_id and/or client_secret  <br>Authorization Error.</td>\n</tr>\n<tr>\n<td>403 Forbidden</td>\n<td>Operation/Action is not allowed</td>\n</tr>\n<tr>\n<td>404 Not Found</td>\n<td>Entity/Resource not found or does not exist</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>ERROR code related to credentials:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>If provided access key is wrong</th>\n<th>Authentication Error. Check access_key and/ or secret_key</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>If provided secret key is wrong</td>\n<td>Authentication Error.Provided secret_key is wrong.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"header\">Header</h1>\n<p>Generate base64 encoded value of string:</p>\n<ol>\n<li>Javascript :<br> window.btoa(\"access_key:secrete_key\"); - will generate the token, needed for each subsequent http api request.</li>\n<li>Python:<br> base64.b64encode(f'{api_key}:{secret_key}'.encode(\"utf-8\")).decode(\"ascii\")</li>\n</ol>\n<h1 id=\"key-business-concepts\">Key Business Concepts</h1>\n<h2 id=\"merchant\">Merchant:</h2>\n<p>A merchant is a business who uses services of the career. The API connects at merchant level. So, a specific combination of APIs keys will connect to a specific merchant with necessary privileges.</p>\n<h2 id=\"branch-location\">Branch (Location):</h2>\n<p>A branch is a physical business location of a merchant. A merchant may have one or more branches. e.g. businesses like MFC, BigBazar, RelMart have 100s of branches across the country. It is optional for an external client (API user) to provide branch information during the placement of orders. Though we recommend it for future reporting of orders according to branches when required.</p>\n<h2 id=\"service\">Service:</h2>\n<p>Service is an important entity for the career. A career may have multiple services defined , depending on type of career. E.g. Get it Fast focuses on LAST_MILE services. When placing an order it is important to place it against a specific service for the career to identify and render the service accordingly.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started","slug":"getting-started"},{"content":"Header","slug":"header"},{"content":"Key Business Concepts","slug":"key-business-concepts"}],"owner":"21384855","collectionId":"7420f16e-1d05-4ac3-abd5-577fbf3d0b23","publishedId":"2sAXxLBZer","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-04T12:02:50.000Z"},"item":[{"name":"Branches for merchant","id":"b9fc0e43-6595-4cfc-8844-46ba65775292","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/merchant/branch/","description":"<p>API to get list of branches belongs to particular merchant</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<p><strong>Response Attributes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id  <br />  <br /></td>\n<td>str  <br />  <br /></td>\n<td>Unique identifier given for service.You can further use this id while getting price quotation and creating order</td>\n</tr>\n<tr>\n<td>name  <br />  <br /></td>\n<td>Str  <br />  <br /></td>\n<td>Service name. Service name will remain same for a specific merchant once defined.  <br />GIF services:  <br />  <br />“LAST_MILE”  <br />“STORE_TO_STORE”</td>\n</tr>\n<tr>\n<td>service_type  <br />  <br /></td>\n<td>str  <br />  <br /></td>\n<td>“DELIVERY”  <br />Currently DELIVERY is the default input for service_type.</td>\n</tr>\n<tr>\n<td>attributes  <br />  <br /></td>\n<td>list  <br />  <br /></td>\n<td>Attributes are important components in service. The list of attributes provide input values while placing an order or requesting for a quote.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","merchant","branch",""],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"d0a82230-b06c-4364-afc4-7d95087565e1","name":"Response","originalRequest":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/merchant/branch/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"genericResponse\": {\n       \"apiStatusCode\": 200,\n       \"apiSuccessStatus\": \"True\",\n       \"apiStatusMessage\": \"Get branch success\"\n   },\n   \"no_of_counts\": 1,\n   \"branches\": [\n  {\n    \"id\": \"63045cfc35a3f8439777ca75\",\n    \"name\": \"Brandon Park\",\n    \"address\": {\n      \"google_formated_address\": \"1169 Pascoe Vale Rd, Broadmeadows VIC 3047, Australia\",\n      \"business_name\": null,\n      \"address1\": \"1169 Pascoe Vale Rd, Broadmeadows VIC 3047, Australia\",\n      \"address2\": \"Pascoe Vale Road\",\n      \"city\": \"Broadmeadows\",\n      \"zip\": \"3047\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.6797773,\n      \"gps_longitude\": 144.9194622,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n            }\n    },\n    \"created_epoch\": 1661230332,\n    \"updated_epoch\": 1661230332,\n    \"created_datetime\": \"2022-08-23T04:52:12.812000\",\n    \"updated_datetime\": \"2022-08-23T04:52:12.812000”\n  }\n   ]\n}"}],"_postman_id":"b9fc0e43-6595-4cfc-8844-46ba65775292"},{"name":"Service","id":"b1337400-1fee-47a4-9483-07fdcf0b5913","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/service/","description":"<p>API to get services for a merchant.</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<p><strong>Response Attributes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id  <br />  <br /></td>\n<td>str  <br />  <br /></td>\n<td>Unique identifier given for service.You can further use this id while getting price quotation and creating order</td>\n</tr>\n<tr>\n<td>name  <br />  <br /></td>\n<td>Str  <br />  <br /></td>\n<td>Service name. Service name will remain same for a specific merchant once defined.  <br />GIF services:  <br />  <br />“LAST_MILE”  <br />“STORE_TO_STORE”</td>\n</tr>\n<tr>\n<td>service_type  <br />  <br /></td>\n<td>str  <br />  <br /></td>\n<td>“DELIVERY”  <br />Currently DELIVERY is the default input for service_type.</td>\n</tr>\n<tr>\n<td>attributes  <br />  <br /></td>\n<td>list  <br />  <br /></td>\n<td>Attributes are important components in service. The list of attributes provide input values while placing an order or requesting for a quote.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","service",""],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"244ef06f-beda-41fd-8043-331d97e2ed9b","name":"Response","originalRequest":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/service/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"genericResponse\": {\n        \"apiStatusCode\": 200,\n        \"apiSuccessStatus\": \"True\",\n        \"apiStatusMessage\": \"Get service success\"\n    },\n    \"services\": [\n        {\n            \"id\": \"5fdba33b464511602669f654\",\n            \"name\": \"LAST_MILE\",\n            \"service_type\": \"DELIVERY\",\n            \"description\": \"Door to door last mile delivery service\",\n            \"price\": {\n                \"currency\": \"AUD\"\n            },\n            \"attribute\": [\n                {\n                    \"category\": \"distance\",\n                    \"unit\": \"km\",\n                    \"min_value\": 0,\n                    \"max_value\": 1000\n                },\n                {\n                    \"category\": \"volume\",\n                    \"unit\": \"meter3\",\n                    \"min_value\": 0,\n                    \"max_value\": 2\n                },\n                {\n                    \"category\": \"length\",\n                    \"unit\": \"meter\",\n                    \"min_value\": 0,\n                    \"max_value\": 2\n                },\n                {\n                    \"category\": \"height\",\n                    \"unit\": \"meter\",\n                    \"min_value\": 0,\n                    \"max_value\": 2\n                },\n                {\n                    \"category\": \"width\",\n                    \"unit\": \"meter\",\n                    \"min_value\": 0,\n                    \"max_value\": 2\n                },\n                {\n                    \"category\": \"weight\",\n                    \"unit\": \"kg\",\n                    \"min_value\": 0,\n                    \"max_value\": 1000\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"b1337400-1fee-47a4-9483-07fdcf0b5913"},{"name":"Slots for Service","id":"0af19679-56f7-4d83-a0ca-d7ce41391120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>Slots are defined for specific services to be rendered on pre-defined schedules. When the service type is of DELIVERY it is recommended to provide intended slot information while placing the order.</p>\n<p>Get slot for service API provide slots based on</p>\n<ol>\n<li>service : specifically which service the order wants to avail.</li>\n<li>location : based on the set location for the service.</li>\n</ol>\n<p><strong>Note:</strong></p>\n<p>{The slot for service API will be available in upcoming release 22nd Sept 2022. Currently order API automatically assign next available slot for delivery internally}</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"0af19679-56f7-4d83-a0ca-d7ce41391120"},{"name":"Price quotation","id":"dc63a887-75c3-46b1-8d33-7c76d426bc74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"Sample Request body for LAST MILE order :\n\n{\n  \"service_id\": \"5fdba33b464511602669f654\",\n  \"from_branch_id\": \"5fdba33b464511602669f654\",\n  \"to_branch_id\": \"5fdba33b464511602669f654\",\n  \"order_type\": \"DELIVERY\",\n  \"parcel_value\": 1,\n  \"validations\": {\n    \"time_offset\": true\n  },\n  \"items\": [\n    {\n      \"name\": \"Carton 1\",\n      \"type\": \"CARTON\",\n      \"description\": \"\",\n      \"products\": [\n        {\n          \"product_id\": 1234,\n          \"name\": \"Learn to Tie My Shoelaces Toy\",\n          \"quantity\": 2\n        },\n        {\n          \"product_id\": 1222,\n          \"name\": \"Trick Sticks\",\n          \"quantity\": 1\n        }\n      ],\n      \"quantity\": 1,\n      \"attributes\": [\n        {\n          \"category\": \"distance\",\n          \"unit\": \"KM\",\n          \"value\": 13.765\n        },\n        {\n          \"category\": \"weight\",\n          \"unit\": \"KG\",\n          \"value\": 3\n        },\n        {\n          \"category\": \"volume\",\n          \"name\": \"volume\",\n          \"value\": 1\n        }\n      ]\n    }\n  ],\n  \"from_address\": {\n    \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n    \"business_name\": null,\n    \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n    \"address2\": \"Wheelers Hill\",\n    \"city\": \"Wheelers Hill\",\n    \"zip\": \"3170\",\n    \"province\": \"Victoria\",\n    \"province_code\": \"VIC\",\n    \"country\": \"Australia\",\n    \"country_code\": \"AU\",\n    \"gps_latitude\": -37.9059245,\n    \"gps_longitude\": 145.1623669,\n    \"street_address\": null,\n    \"area_name\": null,\n    \"locality\": null,\n    \"unit_floor\": null,\n    \"landmark\": null,\n    \"google_place_id\": null,\n    \"contact\": {\n      \"is_primary\": false,\n      \"name\": \"Brandon Park,VIC\",\n      \"mobile_number\": \"+61777777777\",\n      \"email\": \"sby@fast.com.au\"\n    }\n  },\n  \"to_address\": {\n    \"google_formated_address\": \"15/11 Dominion Ave, Glen Waverley VIC 3150, Australia\",\n    \"business_name\": null,\n    \"address1\": \"15/11 Dominion Ave, Glen Waverley VIC 3150, Australia\",\n    \"address2\": \"Glen Waverley\",\n    \"city\": \"Glen Waverley\",\n    \"zip\": \"3150\",\n    \"province\": \"Victoria\",\n    \"province_code\": \"VIC\",\n    \"country\": \"Australia\",\n    \"country_code\": \"AU\",\n    \"gps_latitude\": -37.8905312,\n    \"gps_longitude\": 145.1857472,\n    \"street_address\": null,\n    \"area_name\": null,\n    \"locality\": null,\n    \"unit_floor\": null,\n    \"landmark\": null,\n    \"google_place_id\": null,\n    \"contact\": {\n      \"is_primary\": false,\n      \"name\": \"MFC\",\n      \"mobile_number\": \"+61888888888\",\n      \"email\": \"palas@fast.com.au\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/price/price_quotation","description":"<p>This API is used for two purposes</p>\n<ol>\n<li>Eligibility:<br /> If the API response is successful it should be assumed that order is eligible to be PLACED. An eligible order satisfies a carrier (GiF) contract with the merchant (GiF’s client) for rendering the service.</li>\n<li>Quote:<br /> For successful calls, API will return a quote which will be valid for a few minutes based on carrier-client configuration in our system. The quote should (if available) be used as a reference while placing the order with the system, which will help bypass eligibility checks again.</li>\n</ol>\n<p><strong>Note:</strong></p>\n<p>-&gt; Price calculation is only applicable for non POSTPAID merchants. Price calculation mainly depends on the services.</p>\n<p>-&gt; For LAST MILE service, while calculating price, API clients do not need to mention from_branch_id and to_branch_id, instead the user needs to provide from_address and to_address as mandatory fields.</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<p>M - Mandatory Field</p>\n<p>O - Optional Field – value can be empty but parameter must exist</p>\n<p><strong>Request Attributes :</strong></p>\n<p>Important Attributes common for Option mentioned above :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />  <br />Attribute  <br />  <br /></th>\n<th><br />  <br />Type  <br />  <br /></th>\n<th><br />  <br />M/O  <br />  <br /></th>\n<th><br />  <br />Description  <br />  <br /></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><br />  <br />service_id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />unique id given for each service.  <br />Type of the service you want to use.  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />from_branch_id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />Unique id given for store transfer  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />to_branch_id  <br />  <br /></td>\n<td>str</td>\n<td>O</td>\n<td><br />  <br />Unique id given for store transfer  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />order_type  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />By default its value be “DELIVERY”  <br />  <br />Currently DELIVERY i  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />parcel_value  <br />  <br /></td>\n<td><br />  <br />int  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />default value will be 1  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />items  <br />  <br /></td>\n<td><br />  <br />list  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Define the item related details and information  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />name  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />Name of the item  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />quantity  <br />  <br /></td>\n<td><br />  <br />int  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />By default 1  <br />  <br /></td>\n</tr>\n<tr>\n<td>attributes</td>\n<td>list</td>\n<td>M</td>\n<td>From service api user can choose particular attribute,and can assign values to fields  <br />Ex: {  <br />\"category\": \"distance\",  <br />\"unit\": \"km\",  <br />\"value\": 5.54  <br />}  <br />  <br />Select the value of the ‘category’ based on service API return. These values are generally the same for a merchant. We may use static values like [distance, weight,length, height etc]. Do align during integration.  <br />Value should be within the minimum and maximum range.</td>\n</tr>\n<tr>\n<td>from_address</td>\n<td>dict</td>\n<td>O</td>\n<td>Note : if you are skipping from_address detail make sure that you are passing from_branch_id in request body</td>\n</tr>\n<tr>\n<td><br />  <br />contacts  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />It should include below fields as mandatory  <br />-&gt; name  <br />-&gt; email  <br />-&gt; mobile_number  <br />  <br /></td>\n</tr>\n<tr>\n<td>gps_latitude  <br />gps_longitude</td>\n<td>float</td>\n<td>M</td>\n<td>To capture distance between start and end location these fields are important.  <br />If gps values are provided, our system will use the values for distance calculation and delivery.  <br />If no values are provided, the system does reverse geocoding to get the exact location of the address. So, it is important that the address, when passed without gps detail, is complete and searchable.  <br /></td>\n</tr>\n<tr>\n<td>city</td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td></td>\n</tr>\n<tr>\n<td><br />  <br />Country_code  <br />country  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />2 digit country code  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />unit_floor  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td></td>\n</tr>\n<tr>\n<td><br />  <br />zip  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />zip code or postcode of the address  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />to_address  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />Note : if you are skipping frm_address detail make sure that you are passing source_hub_id in request body  <br />  <br /></td>\n</tr>\n<tr>\n<td>validations</td>\n<td>dict</td>\n<td>O</td>\n<td>It’s useful for validation , we can pass any extra parameter in validations dict</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response Attributes:</strong></p>\n<p>Price attributes are relevant for non-postpaid merchants.</p>\n<p>For POSTPAID merchants (GiF’s customers), these values should be ignored.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />  <br />Attribute  <br />  <br /></th>\n<th><br />  <br />Type  <br />  <br /></th>\n<th><br />  <br />Description  <br />  <br /></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><br />  <br />price  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />Total price of the order that you are going to place for the mentioned combinations  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />currency  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />currency  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />tax  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />Total tax  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />item_prices  <br />  <br /></td>\n<td><br />  <br />list  <br />  <br /></td>\n<td><br />  <br />Price details for each item  <br />-&gt; it includes the item details and respective price  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />from_address  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />Source address that is used while calculating price  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />to_address  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />Destination address that is used while calculating price  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />items  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />Item details that used while calculating price  <br />  <br /></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","price","price_quotation"],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"4a108754-85b9-4359-a8cd-bc0d867daa0a","name":"Response","originalRequest":{"method":"POST","header":[],"url":"{BASE_URL}/otoms/price/price_quotation"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"genericResponse\": {\n    \"apiStatusCode\": 200,\n    \"apiSuccessStatus\": \"True\",\n    \"apiStatusMessage\": \"Get price quotation success\"\n  },\n  \"quotation\": {\n    \"id\": \"5fdba33b4645116026ssf654\",\n    \"service_id\": \"5fdba33b464511602669f654\",\n    \"price\": {\n      \"price\": 128,\n      \"currency\": \"AUD\",\n      \"tax\": null,\n      \"item_prices\": [\n        {\n          \"item\": {\n            \"name\": \"Document\",\n            \"variant_id\": \"\",\n            \"quantity\": 1,\n            \"description\": \"\",\n            \"type\": \"CARTON\",\n            \"products\": [\n              {\n                \"product_id\": 1234,\n                \"name\": \"Learn to Tie My Shoelaces Toy\",\n                \"quantity\": 2\n              },\n              {\n                \"product_id\": 1222,\n                \"name\": \"Trick Sticks\",\n                \"quantity\": 1\n              }\n            ],\n            \"attributes\": [\n              {\n                \"category\": \"distance\",\n                \"unit\": \"KM\",\n                \"value\": 7.8709\n              },\n              {\n                \"category\": \"weight\",\n                \"unit\": \"KG\",\n                \"value\": 3\n              },\n              {\n                \"category\": \"volume\",\n                \"unit\": \"meter3\",\n                \"value\": 1\n              }\n            ]\n          },\n          \"price\": 128,\n          \"currency\": \"AUD\",\n          \"tax\": null\n        }\n      ]\n    },\n    \"from_branch_id\": \"5fdba33b464511602669f6wqq\",\n    \"from_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"Brandon Park,VIC\",\n        \"mobile_number\": \"+61777777777\",\n        \"email\": \"sby@fast.com.au\"\n      }\n    },\n    \"to_branch_id\": \"etete-6ba33b464511602669f654\",\n    \"to_address\": {\n      \"google_formated_address\": \"15/11 Dominion Ave, Glen Waverley VIC 3150, Australia\",\n      \"business_name\": null,\n      \"address1\": \"15/11 Dominion Ave, Glen Waverley VIC 3150, Australia\",\n      \"address2\": \"Glen Waverley\",\n      \"city\": \"Glen Waverley\",\n      \"zip\": \"3150\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.8905312,\n      \"gps_longitude\": 145.1857472,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC\",\n        \"mobile_number\": \"+61888888888\",\n        \"email\": \"palas@fast.com.au\"\n      }\n    },\n    \"items\": [\n      {\n        \"name\": \"Carton 1\",\n        \"type\": \"CARTON\",\n        \"products\": [\n          {\n            \"product_id\": 1234,\n            \"name\": \"Learn to Tie My Shoelaces Toy\",\n            \"quantity\": 2\n          },\n          {\n            \"product_id\": 1222,\n            \"name\": \"Trick Sticks\",\n            \"quantity\": 1\n          }\n        ],\n        \"quantity\": 1,\n        \"attributes\": [\n          {\n            \"category\": \"distance\",\n            \"unit\": \"KM\",\n            \"name\": \"3+ km\",\n            \"value\": 13.765,\n            \"attribute_type\": \"RANGE\",\n            \"components\": [],\n            \"additional_info\": null\n          },\n          {\n            \"category\": \"weight\",\n            \"unit\": \"KG\",\n            \"name\": \"3+ kg\",\n            \"value\": 3,\n            \"attribute_type\": \"RANGE\",\n            \"components\": [],\n            \"additional_info\": null\n          },\n          {\n            \"category\": \"volume\",\n            \"unit\": \"meter3\",\n            \"name\": \"volume\",\n            \"value\": 1,\n            \"attribute_type\": \"NUMBER\",\n            \"components\": [],\n            \"additional_info\": null\n          }\n        ]\n      }\n    ],\n    \"payment\": {},\n    \"schedule\": {\n      \"scheduled_date\": \"2020-09-03\",\n      \"cut_off_time\": \"2020-09-03 12:00:PM GMT+11\",\n      \"expected_start_of_delivery\": \"2020-09-03 12:00:PM GMT+11\",\n      \"expected_end_of_delivery\": \"2020-09-03 08:00:PM GMT+11\",\n      \"expected_start_of_delivery_epoch\": 1725364800,\n      \"expected_end_of_delivery_epoch\": 1725393600\n    }\n  }\n}{\n  \"genericResponse\": {\n    \"apiStatusCode\": 200,\n    \"apiSuccessStatus\": \"True\",\n    \"apiStatusMessage\": \"Get price quotation success\"\n  },\n  \"quotation\": {\n    \"id\": \"5fdba33b4645116026ssf654\",\n    \"service_id\": \"5fdba33b464511602669f654\",\n    \"price\": {\n      \"price\": 128,\n      \"currency\": \"AUD\",\n      \"tax\": null,\n      \"item_prices\": [\n        {\n          \"item\": {\n            \"name\": \"Document\",\n            \"variant_id\": \"\",\n            \"quantity\": 1,\n            \"description\": \"\",\n            \"type\": \"CARTON\",\n            \"products\": [\n              {\n                \"product_id\": 1234,\n                \"name\": \"Learn to Tie My Shoelaces Toy\",\n                \"quantity\": 2\n              },\n              {\n                \"product_id\": 1222,\n                \"name\": \"Trick Sticks\",\n                \"quantity\": 1\n              }\n            ],\n            \"attributes\": [\n              {\n                \"category\": \"distance\",\n                \"unit\": \"KM\",\n                \"value\": 7.8709\n              },\n              {\n                \"category\": \"weight\",\n                \"unit\": \"KG\",\n                \"value\": 3\n              },\n              {\n                \"category\": \"volume\",\n                \"unit\": \"meter3\",\n                \"value\": 1\n              }\n            ]\n          },\n          \"price\": 128,\n          \"currency\": \"AUD\",\n          \"tax\": null\n        }\n      ]\n    },\n    \"from_branch_id\": \"5fdba33b464511602669f6wqq\",\n    \"from_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"Brandon Park,VIC\",\n        \"mobile_number\": \"+61777777777\",\n        \"email\": \"sby@fast.com.au\"\n      }\n    },\n    \"to_branch_id\": \"etete-6ba33b464511602669f654\",\n    \"to_address\": {\n      \"google_formated_address\": \"15/11 Dominion Ave, Glen Waverley VIC 3150, Australia\",\n      \"business_name\": null,\n      \"address1\": \"15/11 Dominion Ave, Glen Waverley VIC 3150, Australia\",\n      \"address2\": \"Glen Waverley\",\n      \"city\": \"Glen Waverley\",\n      \"zip\": \"3150\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.8905312,\n      \"gps_longitude\": 145.1857472,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC\",\n        \"mobile_number\": \"+61888888888\",\n        \"email\": \"palas@fast.com.au\"\n      }\n    },\n    \"items\": [\n      {\n        \"name\": \"Carton 1\",\n        \"type\": \"CARTON\",\n        \"products\": [\n          {\n            \"product_id\": 1234,\n            \"name\": \"Learn to Tie My Shoelaces Toy\",\n            \"quantity\": 2\n          },\n          {\n            \"product_id\": 1222,\n            \"name\": \"Trick Sticks\",\n            \"quantity\": 1\n          }\n        ],\n        \"quantity\": 1,\n        \"attributes\": [\n          {\n            \"category\": \"distance\",\n            \"unit\": \"KM\",\n            \"name\": \"3+ km\",\n            \"value\": 13.765,\n            \"attribute_type\": \"RANGE\",\n            \"components\": [],\n            \"additional_info\": null\n          },\n          {\n            \"category\": \"weight\",\n            \"unit\": \"KG\",\n            \"name\": \"3+ kg\",\n            \"value\": 3,\n            \"attribute_type\": \"RANGE\",\n            \"components\": [],\n            \"additional_info\": null\n          },\n          {\n            \"category\": \"volume\",\n            \"unit\": \"meter3\",\n            \"name\": \"volume\",\n            \"value\": 1,\n            \"attribute_type\": \"NUMBER\",\n            \"components\": [],\n            \"additional_info\": null\n          }\n        ]\n      }\n    ],\n    \"payment\": {},\n    \"schedule\": {\n      \"scheduled_date\": \"2020-09-03\",\n      \"cut_off_time\": \"2020-09-03 12:00:PM GMT+11\",\n      \"expected_start_of_delivery\": \"2020-09-03 12:00:PM GMT+11\",\n      \"expected_end_of_delivery\": \"2020-09-03 08:00:PM GMT+11\",\n      \"expected_start_of_delivery_epoch\": 1725364800,\n      \"expected_end_of_delivery_epoch\": 1725393600\n    }\n  }\n}"}],"_postman_id":"dc63a887-75c3-46b1-8d33-7c76d426bc74"},{"name":"Create order","id":"b1d58e9c-f635-40e8-8435-d7fc654083ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"Sample request body for LAST MILE order:\n\n{\n  \"order_number\": \"238523756TEST\",\n  \"service_id\": \"5fdba33b464511602669f654\",\n  \"source_order_type\": \"HOME DELIVERY\",\n  \"name\": \"Alex\",\n  \"mobile_number\": \"+6100000000\",\n  \"email\": \"test@gmail.com\",\n  \"branch_id\": null,\n  \"waybill_no\": null,\n  \"from_branch_id\": null,\n  \"to_branch_id\": null,\n  \"quotation_id\": null,\n  \"air_waybill_no\": null,\n  \"tags\": {\n    \"internal_order_id\": \"487487478\"\n  },\n  \"delivery\": {\n    \"items\": [\n      {\n        \"name\": \"Carton 1\",\n        \"type\": \"CARTON\",\n        \"products\": [\n          {\n            \"product_id\": 1234,\n            \"name\": \"Learn to Tie My Shoelaces Toy\",\n            \"quantity\": 2\n          },\n          {\n            \"product_id\": 1222,\n            \"name\": \"Trick Sticks\",\n            \"quantity\": 1\n          }\n        ],\n        \"quantity\": 1,\n        \"details\": {\n          \"tracking_barcode\": [\n            \"98765r6tyu8765\"\n          ]\n        },\n        \"attributes\": [\n          {\n            \"category\": \"distance\",\n            \"unit\": \"KM\",\n            \"value\": 13.765\n          },\n          {\n            \"category\": \"weight\",\n            \"unit\": \"KG\",\n            \"value\": 3\n          },\n          {\n            \"category\": \"volume\",\n            \"unit\": \"m3\",\n            \"value\": 1\n          }\n        ]\n      }\n    ],\n    \"from_branch_id\": \"212323\",\n    \"from_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC Brandon Park\",\n        \"mobile_number\": \"+6100000000\",\n        \"email\": \"test@gmail.com\"\n      }\n    },\n    \"to_branch_id\": \"212323\",\n    \"to_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170,    Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC Brandon Park\",\n        \"mobile_number\": \"+6100000000\",\n        \"email\": \"test@gmail.com\"\n      },\n      \"instruction\": {\n        \"note\": \"test\",\n        \"additional\": {\n          \"id_verification\": true\n        }\n      },\n      \"payment\": {\n        \"payment_type\": \"COD\",\n        \"delivery_charge\": 128.0,\n        \"delivery_charge_tax\": 0,\n        \"product_charge\": 0,\n        \"product_charge_tax\": 0,\n        \"total_amount\": 0,\n        \"currency\": \"AUD\",\n        \"payment_service\": null,\n        \"cod_payment\": {\n          \"collection_point\": \"PICKUP\"\n        }\n      }\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/order/","description":"<p>Api used to place a new delivery short distance order or long distance order.</p>\n<p><strong>Note:</strong></p>\n<p>1 .<br />-&gt; Price calculation mainly depends on the services(i.e LAST MILE, COURIER)</p>\n<p>-&gt; For LAST MILE service, while price calculation users do not need to mention source_hub_id and destination_hub_id instead of that user needs to provide from_address and to_address as mandatory fields.</p>\n<ol>\n<li></li>\n</ol>\n<p>-&gt; While passing the payment details, the user needs to make sure that if he wants to collect his/her product_charge while delivering the order then only pass that value,otherwise just pass product_charge as 0.</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<p>M - Mandatory Field</p>\n<p>O - Optional Field – value can be empty but parameter must exist</p>\n<p><strong>Request Attributes :</strong></p>\n<p>Important Attributes common for Option mentioned above :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />  <br />Attribute  <br />  <br /></th>\n<th><br />  <br />Type  <br />  <br /></th>\n<th><br />  <br />M/O  <br />  <br /></th>\n<th><br />  <br />Description  <br />  <br /></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><br />  <br />service_id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />unique id given for each service.  <br />  <br />Type of the service you want to use  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />order_type  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />By default its value be “DELIVERY”  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />service_type  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />Depending on the type of the service you are using in price calculation.  <br />  <br />User needs to select any one type from below:  <br />  <br />LAST MILE, COURIER  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />delivery  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />This field contains information specification of item  <br />  <br />And from_address and to_address details  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />items  <br />  <br /></td>\n<td><br />  <br />list  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />While calculating price quotation, whatever item details returned in the response body same item details need to be used here.  <br />Ex: \"items\":[{\"name\":\"\",\"variant_id\":\"\",\"quantity\":1,\"description\":\"\",\"attributes\":[{\"category\":\"distance\",\"unit\":\"km\",\"name\":\"3+ km\",\"value\":5.54,\"attribute_type\":\"RANGE\",\"components\":[]},{\"category\":\"weight\",\"unit\":\"kg\",\"name\":\"0-3kg\",\"value\":3,\"attribute_type\":\"RANGE\",\"components\":[]}],\"package_type\":\"\"}]  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />from_address  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Use same values used in price quotation api  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />to_address  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Use same values used in price calculation api  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />payment  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td>Payment details for order  <br />\"payment\": {  <br />\"payment_type\": \"COD\",  <br />\"total_amount\": 58,  <br />\"delivery_charge\": 58,  <br />\"currency\": \"AUD\",  <br />\"cod_payment\": {  <br />\"collection_point\": \"PICKUP\",  <br />\"amount\": 58  <br />},  <br />},  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />payment_type  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />COD/ONLINE  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />cod_payment  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />-&gt; For COD payment method provide details in below format  <br />  <br />{  <br />  <br />\"collection_point\": \"PICKUP\",  <br />  <br />\"amount\": 112  <br />  <br />}  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />total_amount  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Total amount =delivery_charge+product_charge  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />delivery_charge  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />Amount calculated from price quotation api  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />currency  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Use same currency received from service api  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />service_id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Uniq service_id  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />name  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Name of user  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />email  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Email id of the user  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />mobile_number  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />M  <br />  <br /></td>\n<td><br />  <br />Mobile number of the user  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />branch_id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />From which branch this order is going to be placed.  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />order_type  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />“DELIVERY/PICKUP”  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />quotation_id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />O  <br />  <br /></td>\n<td><br />  <br />Quotation_id received during the process of creation of quotation can be passed.  <br />  <br />If quotation_id is passed, from and to address objects will be ignored and addresses used during quotation will be used instead.  <br />  <br />  <br />  <br />For postpaid merchants, quotation will be available for longer duration (24hrs as default).  <br />  <br /></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response Attributes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><br />  <br />Attribute  <br />  <br /></th>\n<th><br />  <br />Type  <br />  <br /></th>\n<th><br />  <br />Description  <br />  <br /></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><br />  <br />id  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />Unique_id of the order  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />status  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />Status of the order  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />created_epoch  <br />  <br /></td>\n<td><br />  <br />int  <br />  <br /></td>\n<td><br />  <br />Order creation time (utc time)  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />delivery  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />{ \"from_address\": {},  <br />  <br />\"to_address\": {},  <br />  <br />\"instruction\": {}  <br />  <br />}  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />price  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />{  <br />  <br />\"price\": 58.0,  <br />  <br />\"currency\": \"AUD\",  <br />  <br />\"tax\": null,  <br />  <br />\"item_prices\":[]  <br />  <br />}  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />item_prices  <br />  <br /></td>\n<td><br />  <br />list  <br />  <br /></td>\n<td><br />  <br />This field contains dictionary of each item and respective price details  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />payment  <br />  <br /></td>\n<td><br />  <br />dict  <br />  <br /></td>\n<td><br />  <br />Payment details of the order  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />status  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />Payment status  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />payment_type  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />COD/ONLINE (as of now COD only supported)  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />delivery_charge  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />Delivery charge of the order  <br />  <br />This value should be calculated from quotation api  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />product_charge  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />Item/Product charge  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />delivery_charge  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />Amount calculated from price quotation api  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />currency  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />currency  <br />  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />payment_service  <br />  <br /></td>\n<td><br />  <br />str  <br />  <br /></td>\n<td><br />  <br />payment type : “PREPAID/POSTPAID”  <br />  <br /></td>\n</tr>\n<tr>\n<td>cod_payment</td>\n<td>dict</td>\n<td>\"cod_payment\": {  <br />\"collection_point\": \"PICKUP\",  <br />\"amount\": 58.0  <br />}</td>\n</tr>\n<tr>\n<td>collection_point</td>\n<td>str</td>\n<td>From which side payment needs to be collected  <br />“PICKUP/DELIVERY”  <br /></td>\n</tr>\n<tr>\n<td><br />  <br />amount  <br />  <br /></td>\n<td><br />  <br />float  <br />  <br /></td>\n<td><br />  <br />Amount needs to collected  <br />  <br /></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","order",""],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"c8649433-bb25-43df-bc29-66174662dde0","name":"Response","originalRequest":{"method":"POST","header":[],"url":"{BASE_URL}/otoms/order/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"genericResponse\": {\n        \"apiStatusCode\": 200,\n        \"apiSuccessStatus\": \"True\",\n        \"apiStatusMessage\": \"Order creation success\"\n    },\n    \"order\": {\n        \"id\": \"609d05ece079a55b099dbf37\",\n        \"name\": \"some name\",\n        \"service_id\": \"\",\n        \"email\": \"example@gmail.com\",\n        \"mobile_number\": \"+9196583773734\",\n        \"customer_id\": \"602ccc20dbab12de26e0ceb7\",\n        \"organization_id\": null,\n        \"branch_id\": null,\n        \"order_type\": \"DELIVERY\",\n        \"status\": \"PLACED\",\n        \"created_epoch\": 1620903404,\n        \"created_datetime\": \"2021-05-13T10:56:44.623000\",\n        \"delivery\": {\n            \"from_address\": {\n                \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n                \"business_name\": null,\n                \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n                \"address2\": \"Wheelers Hill\",\n                \"city\": \"Wheelers Hill\",\n                \"zip\": \"3170\",\n                \"province\": \"Victoria\",\n                \"province_code\": \"VIC\",\n                \"country\": \"Australia\",\n                \"country_code\": \"AU\",\n                \"gps_latitude\": -37.9059245,\n                \"gps_longitude\": 145.1623669,\n                \"street_address\": null,\n                \"area_name\": null,\n                \"locality\": null,\n                \"unit_floor\": null,\n                \"landmark\": null,\n                \"google_place_id\": null,\n                \"contact\": {\n                    \"is_primary\": false,\n                    \"name\": \"MFC Brandon Park\",\n                    \"mobile_number\": \"+61429008306\",\n                    \"email\": \"ankit@fastestcarrier.com.au\"\n                }\n            },\n            \"to_address\": {\n                \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n                \"business_name\": null,\n                \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n                \"address2\": \"Wheelers Hill\",\n                \"city\": \"Wheelers Hill\",\n                \"zip\": \"3170\",\n                \"province\": \"Victoria\",\n                \"province_code\": \"VIC\",\n                \"country\": \"Australia\",\n                \"country_code\": \"AU\",\n                \"gps_latitude\": -37.9059245,\n                \"gps_longitude\": 145.1623669,\n                \"street_address\": null,\n                \"area_name\": null,\n                \"locality\": null,\n                \"unit_floor\": null,\n                \"landmark\": null,\n                \"google_place_id\": null,\n                \"contact\": {\n                    \"is_primary\": false,\n                    \"name\": \"MFC Brandon Park\",\n                    \"mobile_number\": \"+61429008306\",\n                    \"email\": \"palas@fastestcarrier.com.au\"\n                }\n            },\n            \"instruction\": {\n                \"note\": \"Order\",\n                \"need_box\": false,\n                \"send_sms\": true,\n                \"additional\": null\n            }\n        },\n        \"price\": {\n            \"price\": 0,\n            \"currency\": \"AUD\",\n            \"tax\": null,\n            \"item_prices\": [\n                {\n                    \"item\": {\n                        \"name\": \"Document\",\n                        \"variant_id\": \"\",\n                        \"quantity\": 1,\n                        \"description\": \"\",\n                        \"type\": \"CARTON\",\n                        \"products\": [\n                            {\n                                \"product_id\": 1234,\n                                \"name\": \"Learn to Tie My Shoelaces Toy\",\n                                \"quantity\": 2\n                            },\n                            {\n                                \"product_id\": 1222,\n                                \"name\": \"Trick Sticks\",\n                                \"quantity\": 1\n                            }\n                        ],\n                        \"attributes\": [\n                            {\n                                \"category\": \"distance\",\n                                \"unit\": \"KM\",\n                                \"name\": \"3+ km\",\n                                \"value\": 7.8709,\n                                \"attribute_type\": \"RANGE\",\n                                \"components\": [],\n                                \"additional_info\": null\n                            },\n                            {\n                                \"category\": \"weight\",\n                                \"unit\": \"KG\",\n                                \"name\": \"3+ kg\",\n                                \"value\": 3,\n                                \"attribute_type\": \"RANGE\",\n                                \"components\": [],\n                                \"additional_info\": null\n                            },\n                            {\n                                \"category\": \"volume\",\n                                \"unit\": \"meter3\",\n                                \"name\": \"volume\",\n                                \"value\": 1,\n                                \"attribute_type\": \"NUMBER\",\n                                \"components\": [],\n                                \"additional_info\": null\n                            }\n                        ]\n                    },\n                    \"price\": 0,\n                    \"currency\": \"AUD\",\n                    \"tax\": null\n                }\n            ]\n        },\n        \"payment\": {\n            \"payment_type\": \"COD\",\n            \"status\": \"PENDING\",\n            \"delivery_charge\": 0,\n            \"delivery_charge_tax\": 0,\n            \"product_charge\": 0,\n            \"product_charge_tax\": 0,\n            \"currency\": \"AUD\",\n            \"payment_service\": \"PREPAID\",\n            \"cod_payment\": {\n                \"collection_point\": \"PICKUP\",\n                \"amount\": 0\n            }\n        },\n        \"schedule\": {\n            \"scheduled_date\": \"2020-09-03\",\n            \"cut_off_time\": \"2020-09-03 12:00:PM GMT+11\",\n            \"expected_start_of_delivery\": \"2020-09-03 12:00:PM GMT+11\",\n            \"expected_end_of_delivery\": \"2020-09-03 08:00:PM GMT+11\",\n            \"expected_start_of_delivery_epoch\": 1725364800,\n            \"expected_end_of_delivery_epoch\": 1725393600\n        }\n    }\n}"}],"_postman_id":"b1d58e9c-f635-40e8-8435-d7fc654083ed"},{"name":"Update order","id":"13d9832b-5625-4ca3-9594-9e91cffeb784","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n \"status\": \"PLACED\",\n \"order_id\":\"61d3f81e32485085abc3cdb6\",\n \"from_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC Brandon Park\",\n        \"mobile_number\": \"+61429008306\",\n        \"email\": \"saby@fastestcarrier.com.au\"\n      }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/order/update/","description":"<p>API used to update the order by changing the status of the order.</p>\n<p>An order can be canceled using status as CANCELED. Orders can only be canceled before it is ASSIGNED for delivery. A CANCELED order cannot be changed back to PLACED.</p>\n<p>Order update API will provide options to change from and to addresses before the order is ASSIGNED.</p>\n<p>Headers:</p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<p><strong>Request Attributes :</strong></p>\n<p>Important Attributes common for Option mentioned above :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>M/O</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order_id</td>\n<td>str</td>\n<td>M</td>\n<td>Unique id</td>\n</tr>\n<tr>\n<td>status</td>\n<td>str</td>\n<td>O</td>\n<td>CANCELLED  <br />  <br />Currently only cancellation operation is allowed.</td>\n</tr>\n<tr>\n<td>from_address</td>\n<td>str</td>\n<td>O</td>\n<td>Address used while placing the order</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response Attributes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>str</td>\n<td>Unique_id of the order</td>\n</tr>\n<tr>\n<td>status</td>\n<td>str</td>\n<td>Status of the order</td>\n</tr>\n<tr>\n<td>created_epoch</td>\n<td>int</td>\n<td>Order creation time (utc time)</td>\n</tr>\n<tr>\n<td>delivery</td>\n<td>dict</td>\n<td>{ \"from_address\": {},  <br />\"to_address\": {},  <br />\"instruction\": {}  <br />}</td>\n</tr>\n<tr>\n<td>price</td>\n<td>dict</td>\n<td>{ \"price\": 58.0,  <br />\"currency\": \"AUD\",  <br />\"tax\": null,  <br />\"item_prices\":[]  <br />}</td>\n</tr>\n<tr>\n<td>item_prices</td>\n<td>list</td>\n<td>This field contains dictionary of each item and respective price details</td>\n</tr>\n<tr>\n<td>payment</td>\n<td>dict</td>\n<td>Payment details of the order</td>\n</tr>\n<tr>\n<td>status</td>\n<td>str</td>\n<td>Payment status</td>\n</tr>\n<tr>\n<td>payment_type</td>\n<td>str</td>\n<td>COD/ONLINE (as of now COD only supported)</td>\n</tr>\n<tr>\n<td>delivery_charge</td>\n<td>float</td>\n<td>Delivery charge of the order  <br />This value should be calculated from quotation api</td>\n</tr>\n<tr>\n<td>product_charge</td>\n<td>float</td>\n<td>Item/Product charge</td>\n</tr>\n<tr>\n<td>delivery_charge</td>\n<td>float</td>\n<td>Amount calculated from price quotation api</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>str</td>\n<td>currency</td>\n</tr>\n<tr>\n<td>payment_service</td>\n<td>str</td>\n<td>payment type : “PREPAID/POSTPAID”</td>\n</tr>\n<tr>\n<td>cod_payment</td>\n<td>dict</td>\n<td>\"cod_payment\": {\"collection_point\": \"PICKUP\",\"amount\": 58.0}</td>\n</tr>\n<tr>\n<td>collection_point</td>\n<td>str</td>\n<td>From which side payment needs to be collected  <br />“PICKUP/DELIVERY”</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>float</td>\n<td>Amount needs to collected</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>HTTP status codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP status value</th>\n<th>API status</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 OK</td>\n<td>TRUE</td>\n<td>Get price quotation success</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>FALSE</td>\n<td>Invalid request.or Customized error handling.</td>\n</tr>\n<tr>\n<td>401 Not Authorized</td>\n<td>FALSE</td>\n<td>Authentication Error. Check client_id and/or client_secret</td>\n</tr>\n<tr>\n<td>500 Internal server</td>\n<td>FALSE</td>\n<td>Gateway error. Internal error of OTOM</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","order","update",""],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"162c253d-833c-4039-b195-8a375f471762","name":"Response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n \"status\": \"PLACED\",\n \"order_id\":\"61d3f81e32485085abc3cdb6\",\n \"from_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC Brandon Park\",\n        \"mobile_number\": \"+61429008306\",\n        \"email\": \"saby@fastestcarrier.com.au\"\n      }\n    }\n}"},"url":"{BASE_URL}/otoms/order/update/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"genericResponse\": {\n       \"apiStatusCode\": 200,\n       \"apiSuccessStatus\": \"True\",\n       \"apiStatusMessage\": \"Update order success\"\n   },\n   \"order_details\": {\n       \"id\": \"61f387d90367af3e1e3b4272\",\n       \"name\": \"Decathlon\",\n       \"service_id\": \"5fe340785c2c707b75a530b5\",\n       \"email\": \"delivery.australia+1516@decathlon.com\",\n       \"mobile_number\": \"82553647\",\n       \"customer_id\": null,\n       \"merchant_id\": \"616cf997686e0b287adc1114\",\n       \"branch_id\": \"616d0af5686e0b287adc1116\",\n       \"order_type\": \"DELIVERY\",\n       \"service_type\": \"SAME_DAY\",\n       \"pickup_type\": \"AGENT_PICKUP\",\n       \"delivery_type\": \"AGENT_DROPOFF\",\n       \"status\": \"PLACED\",\n       \"created_epoch\": 1643349977,\n       \"created_datetime\": null,\n       \"chat_user_id\": null,\n       \"delivery\": {\n           \"from_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC Brandon Park\",\n        \"mobile_number\": \"+61429008306\",\n        \"email\": \"saby@fastestcarrier.com.au\"\n      }\n    },\n    \"to_address\": {\n      \"google_formated_address\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"business_name\": null,\n      \"address1\": \"Cnr Springvale, Ferntree Gully Rd, Wheelers Hill VIC 3170, Australia\",\n      \"address2\": \"Wheelers Hill\",\n      \"city\": \"Wheelers Hill\",\n      \"zip\": \"3170\",\n      \"province\": \"Victoria\",\n      \"province_code\": \"VIC\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -37.9059245,\n      \"gps_longitude\": 145.1623669,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC Brandon Park\",\n        \"mobile_number\": \"+61429008306\",\n        \"email\": \"saby@fastestcarrier.com.au\"\n      }\n    },\n           \"instruction\": {\n               \"note\": \"Order\",\n               \"need_box\": false,\n               \"send_sms\": true,\n               \"additional\": null\n           },\n           \"tracking\": {}\n       },\n       \"price\": null,\n       \"payment\": {\n           \"payment_type\": \"COD\",\n           \"status\": \"PENDING\",\n           \"delivery_charge\": 0,\n           \"delivery_charge_tax\": 0,\n           \"product_charge\": 595.0,\n           \"product_charge_tax\": 0,\n           \"currency\": \"AUD\",\n           \"payment_service\": \"POSTPAID\",\n           \"cod_payment\": {\n               \"collection_point\": \"PICKUP\",\n               \"amount\": 0\n           }\n       }\n   }\n}\n"}],"_postman_id":"13d9832b-5625-4ca3-9594-9e91cffeb784"},{"name":"Order status","id":"2b7d9433-5c71-4fad-bc7e-0a4a71197670","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"Sample Request :\n\nOrder_id:str -> path parameter","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/order/{order_id}","description":"<p>Using this api user can get the status of the order</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<p><strong>Response Attributes:</strong><br />For POSTPAID merchant price attributes should be ignored</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>str</td>\n<td>Unique_id of the order</td>\n</tr>\n<tr>\n<td>order_number</td>\n<td>str</td>\n<td>External order number</td>\n</tr>\n<tr>\n<td>status</td>\n<td>str</td>\n<td>Status of the order</td>\n</tr>\n<tr>\n<td>created_epoch</td>\n<td>int</td>\n<td>Order creation time (utc time)</td>\n</tr>\n<tr>\n<td>delivery</td>\n<td>dict</td>\n<td>{ \"from_address\": {},  <br />  <br />\"to_address\": {},  <br />  <br />\"instruction\": {},  <br />  <br />“tracking”:{}  <br />  <br />}</td>\n</tr>\n<tr>\n<td>tracking</td>\n<td>dict</td>\n<td>{  <br />“Tracking_link”:””,  <br />“driver”:{},  <br />“do_history”:{}  <br />}</td>\n</tr>\n<tr>\n<td>tracking_link</td>\n<td>str</td>\n<td>Using tracking link user can track the live order</td>\n</tr>\n<tr>\n<td>do_history</td>\n<td>dict</td>\n<td>All information about order from when it was placed to when it completed.</td>\n</tr>\n<tr>\n<td>price</td>\n<td>dict</td>\n<td>{ \"price\": 58.0,  <br />\"currency\": \"AUD\",  <br />\"tax\": null,  <br />\"item_prices\":[]  <br />}</td>\n</tr>\n<tr>\n<td>item_prices</td>\n<td>list</td>\n<td>This field contains dictionary of each item and respective price details</td>\n</tr>\n<tr>\n<td>payment</td>\n<td>dict</td>\n<td>Payment details of the order</td>\n</tr>\n<tr>\n<td>status</td>\n<td>str</td>\n<td>Payment status</td>\n</tr>\n<tr>\n<td>payment_type</td>\n<td>str</td>\n<td>COD/ONLINE (as of now COD only supported)</td>\n</tr>\n<tr>\n<td>delivery_charge</td>\n<td>float</td>\n<td>Delivery charge of the order</td>\n</tr>\n<tr>\n<td>product_charge</td>\n<td>float</td>\n<td>Product/ item charge.</td>\n</tr>\n<tr>\n<td>delivery_charge</td>\n<td>float</td>\n<td>Amount calculated from price quotation api</td>\n</tr>\n<tr>\n<td>currency</td>\n<td>str</td>\n<td>currency</td>\n</tr>\n<tr>\n<td>cod_payment</td>\n<td>dict</td>\n<td>\"cod_payment\": {  <br />\"collection_point\": \"PICKUP\",  <br />\"amount\": 58.0  <br />}</td>\n</tr>\n<tr>\n<td>collection_point</td>\n<td>str</td>\n<td>COD orders need to mention from where the driver agent is going to collect payment amount.  <br />“PICKUP/DELIVERY”</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>float</td>\n<td>Amount needs to collected</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","order","{order_id}"],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"c51a15a8-cf2d-46fd-9dc8-30147ad0874a","name":"Response","originalRequest":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/order/{order_id}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{        \n  \"genericResponse\": {\n    \"apiStatusCode\": 200,\n    \"apiSuccessStatus\": \"True\",\n    \"apiStatusMessage\": \"Get order success\"\n  },\n  \"order_details\": {\n    \"id\": \"5ff8345066ed34a7d4914e4e\",\n    \"order_number\": \"1287645234\",\n    \"name\": \"ALex\",\n    \"service_id\": ,\n    \"email\": \"alex5883@gmail.com\",\n    \"mobile_number\": \"+917676057150\",\n    \"customer_id\": \"5f6dfbefcc8be3a8f19ec278\",\n    \"merchant_id\": null,\n    \"branch_id\": null,\n    \"order_type\": \"DELIVERY\",\n    \"status\": \"DELIVERED\",\n    \"created_epoch\": 1610082014,\n    \"created_datetime\": \"2021-01-08T10:30:14.219000\",\n    \"delivery\": {\n      \"from_address\": {\n      \"google_formated_address\": \"S/C, 318 N Rocks Rd, North Rocks NSW 2151, Australia\",\n      \"business_name\": null,\n      \"address1\": \"S/C, 318 N Rocks Rd, North Rocks NSW 2151, Australia\",\n      \"address2\": \"318\",\n      \"city\": \"North Rocks\",\n      \"zip\": \"2151\",\n      \"province\": \"New South Wales\",\n      \"province_code\": \"NSW\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -33.7687536,\n      \"gps_longitude\": 151.0287758,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC North Rocks,NSW\",\n        \"mobile_number\": \"+61387397600\",\n        \"email\": \"saby@fastestcarrier.com.au\"\n      }\n    },\n      \"to_address\": {\n      \"google_formated_address\": \"S/C, 318 N Rocks Rd, North Rocks NSW 2151, Australia\",\n      \"business_name\": null,\n      \"address1\": \"S/C, 318 N Rocks Rd, North Rocks NSW 2151, Australia\",\n      \"address2\": \"318\",\n      \"city\": \"North Rocks\",\n      \"zip\": \"2151\",\n      \"province\": \"New South Wales\",\n      \"province_code\": \"NSW\",\n      \"country\": \"Australia\",\n      \"country_code\": \"AU\",\n      \"gps_latitude\": -33.7687536,\n      \"gps_longitude\": 151.0287758,\n      \"street_address\": null,\n      \"area_name\": null,\n      \"locality\": null,\n      \"unit_floor\": null,\n      \"landmark\": null,\n      \"google_place_id\": null,\n      \"contact\": {\n        \"is_primary\": false,\n        \"name\": \"MFC North Rocks,NSW\",\n        \"mobile_number\": \"+61387397600\",\n        \"email\": \"saby@fastestcarrier.com.au\"\n      }\n    },\n      \"instruction\": {\n        \"note\": \"\",\n        \"need_box\": null,\n        \"send_sms\": null,\n        \"additional\": {\n          \"special_instructin\": \"\"\n        }\n      },\n      \"tracking\": {\n        \"tracking_link\": \"http://18.141.59.244/ot/#/custom/track-consignment/meta?token=6b5220363249482d924c2c6bd490d49c\",\n        \"driver\": {}\n        },\n        \"do_history\": {\n          \"1610105151\": {\n            \"message\": \"Your consignment is assigned to an Agent.\",\n            \"status\": \"ASSIGNED\"\n          },\n          \"1610218912\": {\n            \"message\": \"Our driver has started\",\n            \"status\": \"STARTED\"\n          },\n          \"1610219296\": {\n            \"message\": \"Driver arrived at facility to pickup\",\n            \"status\": \"STARTED\"\n          },\n          \"1610219318\": {\n            \"message\": \"Our driver has started\",\n            \"status\": \"STARTED\"\n          },\n          \"1610219344\": {\n            \"message\": \"Your order has been delivered. It was a pleasure serving you. Feel free to provide us feedback\",\n            \"status\": \"DELIVERED\"\n          }\n        }\n      }\n    },\n    \"price\": {\n      \"price\": 57.9,\n      \"currency\": \"AUD\",\n      \"tax\": null,\n      \"item_prices\":  [ ]\n    },\n    \"payment\": {\n      \"payment_type\": \"COD\",\n      \"status\": \"PAID\",\n      \"delivery_charge\": 57.9,\n      \"delivery_charge_tax\": 0,\n      \"product_charge\": 0,\n      \"product_charge_tax\": 0,\n      \"currency\": \"AUD\",\n      \"payment_service\": null,\n      \"cod_payment\": {\n        \"collection_point\": \"PICKUP\",\n        \"amount\": 57.9\n      }\n    }\n  }\n}"}],"_postman_id":"2b7d9433-5c71-4fad-bc7e-0a4a71197670"},{"name":"Order tracking details","id":"19902f1f-815b-4c9b-a0c4-73c7c61b0bcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"Sample Request :\n\nOrder_id:str -> path parameter\n","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/order/{order_id}/tracking","description":"<p>API used to get the order tracking details</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : “application/json”</code></p>\n<h6 id=\"for-postpaid-merchant-price-attributes-should-be-ignored\">For POSTPAID merchant price attributes should be ignored</h6>\n<p><strong>Response Attributes</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>str</td>\n<td>Unique_id of the order</td>\n</tr>\n<tr>\n<td>status</td>\n<td>str</td>\n<td>Status of the order</td>\n</tr>\n<tr>\n<td>tracking_link</td>\n<td>str</td>\n<td>Using tracking link user can track the live order</td>\n</tr>\n<tr>\n<td>driver</td>\n<td>dict</td>\n<td>This contains information about driveragent.  <br />Location  <br />  <br />Profile- driver profile  <br />  <br />Ex:  <br />  <br />{  <br />  <br />“location”:{},  <br />  <br />“profile”:{}  <br />}</td>\n</tr>\n<tr>\n<td>do_history</td>\n<td>dict</td>\n<td>All information about order from when it was placed to when it completed.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["otoms","order","{order_id}","tracking"],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"155846ca-e738-49e0-8e50-c9efb74c64e6","name":"Get order tracking details","originalRequest":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/order/{order_id}/tracking"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"19902f1f-815b-4c9b-a0c4-73c7c61b0bcc"},{"name":"Webhook","id":"99c6954a-46c3-4ead-855d-0c59533f2f72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<h5 id=\"how-it-works\">How It Works</h5>\n<p>We send webhook notification as a HTTP POST request with a well defined JSON payload on the provided endpoint URL.</p>\n<p>Webhook events are treated to be successful if the endpoint URL responds with 200 OK Response within 10 seconds.</p>\n<p>In case of failure, there will be a total of 10 attempts every hour to process a webhook notification.</p>\n<p>If all attempts fail, processing of webhook notifications will be paused for the account.</p>\n<p><strong>How To Create WebHook Endpoint API</strong></p>\n<p>Webhook endpoint API can be written in any server side coding language.</p>\n<p>Server API should accept application/json content-type and should respond back within 10 seconds with 200 OK. Any other http response status would mark the notification as a failure.</p>\n<p><strong>WebHook Entity</strong></p>\n<p>A webhook event is always triggered for an entity. When the event occurs, relevant information of the entity is shared in the webhook notification.</p>\n<p>Events:</p>\n<p>Currently we support events for change of order status or change of status of the steps.</p>\n<p>The events supported are</p>\n<p><strong>SERVICE :</strong></p>\n<p><strong>LAST MILE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>consignment.placed</th>\n<th>Once the consignment order is created.</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>consignment.inprogress</td>\n<td>When order start processing</td>\n</tr>\n<tr>\n<td>consignment.pickup</td>\n<td>Once an order is picked up by a driver agent.</td>\n</tr>\n<tr>\n<td>consignment.delivered</td>\n<td>When an order is delivered to the user.</td>\n</tr>\n<tr>\n<td>consignment.cancelled</td>\n<td>If the order is canceled.</td>\n</tr>\n<tr>\n<td>consignment.failed</td>\n<td>If the order is failed</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>EXAMPLE WEBHOOK:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"event_id\": \"31a4f0e13d304318a9303541622cb33f\",\n  \"created_epoch\": 1662706125.481716,\n  \"created_datetime\": \"2022-09-09 06:48:45.481716\",\n  \"event_name\": \"placed\",\n  \"order\": {\n    \"id\": \"631ae1cc16e4cee21b284015\",\n    \"name\": \" test\",\n    \"service\": \"LAST MILE\",\n    \"service_id\": \"61ee668a04f218adbed93826\",\n    \"email\": null,\n    \"mobile_number\": \"+917737362081\",\n    \"customer_id\": null,\n    \"merchant_id\": \"62872a35a2a2f84e0fd6ae1a\",\n    \"branch_id\": \"DELIVERY\",\n    \"service_type\": \"SAME_DAY\",\n    \"pickup_type\": \"HUB_PICKUP\",\n    \"delivery_type\": \"HOME_DEIVERY/HUB_DELIVERY\",\n    \"status\": \"PLACED\",\n    \"reason_type\": null,\n    \"reason\": null,\n    \"created_datetime\": \"2022-09-09T06:48:44.679000\",\n    \"chat_user_id\": null,\n    \"delivery\": {\n      \"from_address\": {\n        \"google_formated_address\": \"124-134 Millers Rd, Altona North VIC 3025, Australia\",\n        \"business_name\": \"MFC atlona 2\",\n        \"address1\": \"124/134 Millers Road,Altona North,Victoria,Australia\",\n        \"address2\": null,\n        \"city\": \"Altona North\",\n        \"zip\": \"3025\",\n        \"province\": \"Millers Road\",\n        \"province_code\": \"Millers Rd\",\n        \"country\": \"3025\",\n        \"country_code\": \"3025\",\n        \"gps_latitude\": -37.8278645,\n        \"gps_longitude\": 144.848057,\n        \"street_address\": null,\n        \"area_name\": null,\n        \"locality\": null,\n        \"unit_floor\": \"\",\n        \"landmark\": null,\n        \"google_place_id\": \"ChIJCw54UeBg1moR_EUCyq3T3oY\",\n        \"contact\": {\n          \"is_primary\": false,\n          \"name\": \"MFC atlona 2\",\n          \"mobile_number\": \"+616846846464\",\n          \"email\": \"vinay@onetraker.com\"\n        }\n      },\n      \"to_address\": {\n        \"google_formated_address\": \"124-134 Millers Rd, Altona North VIC 3025, Australia\",\n        \"business_name\": null,\n        \"address1\": \"124/134 Millers Road,Altona North,Victoria,Australia\",\n        \"address2\": null,\n        \"city\": \"Altona North\",\n        \"zip\": \"3025\",\n        \"province\": \"Millers Road\",\n        \"province_code\": \"Millers Rd\",\n        \"country\": \"3025\",\n        \"country_code\": \"3025\",\n        \"gps_latitude\": -37.8278645,\n        \"gps_longitude\": 144.848057,\n        \"street_address\": null,\n        \"area_name\": null,\n        \"locality\": null,\n        \"unit_floor\": \"\",\n        \"landmark\": null,\n        \"google_place_id\": \"ChIJCw54UeBg1moR_EUCyq3T3oY\",\n        \"contact\": {\n          \"is_primary\": false,\n          \"name\": \"test\",\n          \"mobile_number\": \"+917737362081\",\n          \"email\": \"\"\n        }\n      },\n      \"instruction\": {\n        \"note\": \" \",\n        \"need_box\": false,\n        \"send_sms\": false,\n        \"additional\": null\n      },\n      \"tracking\": {\n        \"tracking_code\": \"7b738aa336174b6bbe18b7e138692a01\",\n        \"tracking_link\": \"https://onetraker.tech/#/custom/track-consignment/meta?token=7b738aa336174b6bbe18b7e138692a01\",\n        \"driver\": {},\n        \"do_history\": {}\n      }\n    },\n    \"price\": {\n      \"price\": 5,\n      \"currency\": \"AUD\",\n      \"tax\": null,\n      \"item_prices\": [\n        {\n          \"item\": {\n            \"name\": \"prod1\",\n            \"type\": null,\n            \"variant_id\": \"\",\n            \"quantity\": 1,\n            \"category\": \"\",\n            \"category2\": \"\",\n            \"category3\": \"\",\n            \"description\": \"\",\n            \"products\": null,\n            \"attributes\": [\n              {\n                \"category\": \"distance\",\n                \"unit\": \"KM\",\n                \"name\": \"0-10km\",\n                \"value\": 0,\n                \"attribute_type\": \"RANGE\",\n                \"components\": [],\n                \"additional_info\": null\n              }\n            ]\n          },\n          \"price\": 5,\n          \"currency\": \"AUD\",\n          \"tax\": null\n        }\n      ]\n    },\n    \"payment\": {\n      \"payment_type\": \"ONLINE\",\n      \"status\": \"PAID\",\n      \"delivery_charge\": 5,\n      \"delivery_charge_tax\": 0,\n      \"product_charge\": 11,\n      \"product_charge_tax\": 0,\n      \"currency\": \"AUD\",\n      \"payment_service\": \"POSTPAID\"\n    }\n  }\n}\n\n</code></pre>\n<p>-Do work with the API team for any queries regarding webhook events.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"99c6954a-46c3-4ead-855d-0c59533f2f72"},{"name":"Tags","id":"47218b25-dee9-4d66-ac80-6c5a1670a8fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/merchant/tags/","description":"<p>Using this API user can get the all Tags</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : \"application/json\"</code></p>\n","urlObject":{"path":["otoms","merchant","tags",""],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"5cfa5aa1-836a-4228-a0bb-1a4d0910cae2","name":"Response","originalRequest":{"method":"GET","header":[],"url":"{BASE_URL}/otoms/merchant/tags/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"genericResponse\": {\n        \"apiStatusCode\": 200,\n        \"apiSuccessStatus\": \"True\",\n        \"apiStatusMessage\": \"Get tags success\"\n    },\n    \"tags\": [\n        \"internal_order_id\",\n        \"shippit_tracking_no\",\n        \"external_order_id\",\n        \"shippit_customer_tracking_no\"\n    ]\n}"}],"_postman_id":"47218b25-dee9-4d66-ac80-6c5a1670a8fc"},{"name":"Invoice","id":"14beefc9-b2cf-4382-8bee-9c57fe47970e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[ Order_id:str\n]","options":{"raw":{"language":"json"}}},"url":"{BASE_URL}/otoms/invoice/","description":"<p>Using this api user can get invoice</p>\n<p><strong>Headers:</strong></p>\n<p><code>authorization: \"Bearer Base64encodedValueOf(client_id:client_secret)\"</code></p>\n<p><code>content-type : \"application/json\"</code></p>\n","urlObject":{"path":["otoms","invoice",""],"host":["{BASE_URL}"],"query":[],"variable":[]}},"response":[{"id":"605233c3-6469-442a-ad89-f7a8fb84d1ad","name":"Response","originalRequest":{"method":"POST","header":[],"url":"{BASE_URL}/otoms/invoice/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"\n{\n    \"genericResponse\": {\n        \"apiStatusCode\": 200,\n        \"apiSuccessStatus\": \"True\",\n        \"apiStatusMessage\": \"Get invoice success\"\n    },\n    \"invoice_details\": [   'https://short-link.onetraker.com/r/1edfFIZa2'\n    ]\n}"}],"_postman_id":"14beefc9-b2cf-4382-8bee-9c57fe47970e"}]}