{"openapi":"3.1.0","info":{"title":"Dispatch API","description":"We team up with the best global third-party delivery apps, seamlessly consolidating all your channels into one simple system.","version":"1.0.0"},"servers":[{"url":"https://api.staging.deliverect.com"}],"security":[{"oauth2ClientCredentials":[]}],"components":{"securitySchemes":{"oauth2ClientCredentials":{"type":"oauth2","description":"Obtain an access token using the partner client ID and client secret. Send the returned token with each API request in the Authorization header as a Bearer token.","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{}}}}}},"x-readme":{"headers":[],"explorer-enabled":true,"proxy-enabled":true,"oauth-options":{"useInsecureClientAuthentication":true}},"x-readme-fauxas":true,"tags":[{"name":"Endpoints","description":"Deliverect Endpoints. Use `https://api.staging.deliverect.com` for testing and `https://api.deliverect.com` in production."},{"name":"Webhooks","description":"Deliverect Webhooks. Requests can be signed with HMAC-SHA256 using a pre-shared secret configured on your integration, so you can verify they came from Deliverect and weren't altered in transit (see HMAC Authentication Guide <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>)."}],"paths":{"/fulfillment/generic/events":{"post":{"tags":["Endpoints"],"summary":"Update Delivery Job","description":"","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"deliveryJobId":{"type":"string"},"externalJobId":{"type":"string"},"pickupTimeETA":{"type":"string","format":"date-time"},"transportType":{"type":"string"},"trackingUrl":{"type":"string","format":"uri"},"courier":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"longitude":{"type":"string"},"latitude":{"type":"string"}}},"locations":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"channelOrderDisplayId":{"type":"string"},"status":{"type":"integer"},"deliveryTimeETA":{"type":"string","format":"date-time"}}}}}},"examples":{"Update Example":{"summary":"Update Example","value":{"deliveryJobId":"61********************b4","pickupTimeETA":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","transportType":"bicycle","trackingUrl":"https://example.com","courier":{"name":"Mac Miller","phone":"+3292331234","longitude":"51.05433703603857","latitude":"3.738214852809371"},"locations":[{"orderId":"61********************b4","status":83,"deliveryTimeETA":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm"}]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object"}},"text/plain":{"schema":{"type":"string"},"examples":{"OK":{"value":"","summary":"OK"}}}}},"default":{"description":"default","content":{"text/plain":{"schema":{"type":"string"},"examples":{"error":{"value":null}}}}}}}},"/fulfillment/cancel":{"post":{"tags":["Endpoints"],"summary":"Cancel Delivery Job","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"deliveryJobId":{"type":"string"},"reasonTag":{"type":"string","enum":["COURIER_NO_LONGER_AVAILABLE","COURIER_TRANSPORT_FAILURE","FOOD_ITEMS_ARE_NOT_READY","DROP_OFF_LOCATION_NOT_FOUND","CUSTOMER_UNRESPONSIVE","PACKAGE_SIZE_TOO_LARGE"]},"deliveryFeeCharged":{"type":"integer"},"extraDescription":{"type":"string"}}},"examples":{"Cancel Example":{"summary":"Cancel Example","value":{"deliveryJobId":"648******************874","reasonTag":"CUSTOMER_UNRESPONSIVE","deliveryFeeCharged":4500,"extraDescription":"Tried many times"}}}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"examples":{"OK":{"summary":"OK","value":""}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Bad Request":{"summary":"Bad Request","value":"{}"}}}}}}}},"/fulfillment/hetaUpdate/{dspname}/{locationId}":{"put":{"tags":["Endpoints"],"description":"","responses":{"200":{"description":"","content":{"application/json":{"examples":{"OK":{"summary":"OK","value":""}}}}}},"parameters":[{"in":"path","name":"dspname","schema":{"type":"string"},"required":true},{"in":"path","name":"locationId","description":"<Glossary>locationId</Glossary>","schema":{"type":"string"},"required":true}],"operationId":"put_fulfillment-hetaupdate-dspname-locationid","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"HETA Sample":{"summary":"HETA Sample","value":[{"heta":100}]}}}}},"summary":"Hypothetical Estimated Time"}}},"webhooks":{"https://yourwebhook.com/dispatch/cancel_job":{"post":{"tags":["Webhooks"],"summary":"Cancel Delivery Job","description":"","operationId":"dispatch_cancel_job","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"status":"confirmed","reason":"","price":0}}},"schema":{"type":"object","properties":{"status":{"type":"string","example":"confirmed"},"reason":{"type":"string","example":""},"price":{"type":"integer","example":0,"default":0}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"explorer-enabled":false},"parameters":[{"name":"Content-Type","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"Accept","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"User-Agent","in":"header","required":true,"description":"Identifies Deliverect as the sender of the webhook, in the format `Deliverect/{version}`.","schema":{"type":"string","default":"Deliverect/{version}"}},{"name":"X-Server-Authorization-HMAC-SHA256","in":"header","required":true,"description":"HMAC-SHA256 signature of the raw request body, generated with your shared secret. Recompute the signature on receipt and compare it to this value to verify the request came from Deliverect (see the <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">HMAC authentication guide</a>).","schema":{"type":"string","default":"{signature}"}}],"security":[]}},"https://yourwebhook.com/validate_job":{"post":{"tags":["Webhooks"],"summary":"Validate Delivery Job","description":"","operationId":"dispatch_validate_job","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"account":{"type":"string"},"pickupTime":{"type":"string","format":"date-time"},"transportType":{"type":"string"},"driverTip":{"type":"integer"},"pickupLocation":{"type":"object","properties":{"location":{"type":"string"},"name":{"type":"string"},"remarks":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"}}},"deliveryLocations":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"channelOrderDisplayId":{"type":"string"},"deliveryTime":{"type":"string","format":"date-time"},"packageSize":{"type":"string"},"orderDescription":{"type":"string"},"company":{"type":"string"},"name":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"subpremise":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"phone":{"type":"string"},"phoneAccessCode":{"type":"string"},"deliveryRemarks":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"payment":{"type":"object","properties":{"orderIsAlreadyPaid":{"type":"boolean"},"amount":{"type":"integer"},"paymentType":{"type":"integer"},"due":{"type":"integer"}}}}}},"ageCheck":{"type":"boolean"}}},"examples":{"Validate Job Sample":{"summary":"Validate Job Sample","value":{"jobId":"6a********************80","account":"65********************54","pickupTime":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","transportType":"unknown","driverTip":0,"pickupLocation":{"location":"60*****************55","name":"The Pizza Place","remarks":"please use the backdoor for order pickup","street":"Steinway Street","streetNumber":"31","postalCode":"11103","city":"Astoria","latitude":"40.7644231","longitude":"-73.9235849"},"deliveryLocations":[{"orderId":"60*****************dd","channelOrderDisplayId":"MT4YVTPL","deliveryTime":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","packageSize":"medium","orderDescription":"","company":"","name":"John Doe","street":"31st Avenue","streetNumber":"12","subpremise":"4B","postalCode":"11106","city":"Astoria","phone":"+1 (212) 555-0148","phoneAccessCode":"342241214","deliveryRemarks":"Ring door bell.","latitude":"40.7691234","longitude":"-73.9256789","payment":{"orderIsAlreadyPaid":true,"amount":1100,"paymentType":0,"due":0}}],"ageCheck":false}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Can Deliver":{"summary":"Can Deliver","value":{"jobId":"62*****************9a","canDeliver":true,"distance":10,"pickupTimeETA":"2022-05-10T14:47:31.649000Z","deliveryLocations":[{"deliveryId":"AB**67","orderId":"62*******************37","deliveryTimeETA":"2022-05-10T14:57:31.649000Z"}],"price":{"price":750,"taxRate":10000}}},"Cannot Deliver":{"summary":"Cannot Deliver","value":{"jobId":"651******************22a","canDeliver":false,"errors":[{"deliveryId":"J****FI","orderId":"651******************215","channelOrderDisplayId":"","reason":20,"description":"No drivers available at this time"}]}}},"schema":{"oneOf":[{"title":"Deliverable job","type":"object","required":["jobId","canDeliver","distance","pickupTimeETA","deliveryLocations","price"],"properties":{"jobId":{"type":"string","example":"62*****************9a"},"canDeliver":{"type":"boolean","enum":[true],"description":"Whether a courier is available for the delivery job.","example":true},"distance":{"type":"integer","example":10},"pickupTimeETA":{"type":"string","format":"date-time","example":"2022-05-10T14:47:31.649000Z"},"deliveryLocations":{"type":"array","items":{"type":"object","required":["deliveryId","orderId","deliveryTimeETA"],"properties":{"deliveryId":{"type":"string","example":"AB**67"},"orderId":{"type":"string","example":"62*******************37"},"deliveryTimeETA":{"type":"string","format":"date-time","example":"2022-05-10T14:57:31.649000Z"}}}},"price":{"type":"object","required":["price","taxRate"],"properties":{"price":{"type":"integer","example":750},"taxRate":{"type":"integer","example":10000}}}}},{"title":"Undeliverable job","type":"object","required":["jobId","canDeliver","errors"],"properties":{"jobId":{"type":"string","example":"651******************22a"},"canDeliver":{"type":"boolean","enum":[false],"description":"Whether a courier is available for the delivery job.","example":false},"errors":{"type":"array","items":{"type":"object","required":["deliveryId","orderId","channelOrderDisplayId","reason","description"],"properties":{"deliveryId":{"type":"string","example":"J****FI"},"orderId":{"type":"string","example":"651******************215"},"channelOrderDisplayId":{"type":"string","example":""},"reason":{"type":"integer","example":20},"description":{"type":"string","example":"No drivers available at this time"}}}}}}]}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Bad Request":{"summary":"Bad Request","value":"{}"}}}}},"422":{"description":"422","content":{"application/json":{"examples":{"Unprocessable Entity":{"summary":"Unprocessable Entity","value":"{}"}}}}}},"deprecated":false,"x-readme":{"explorer-enabled":false,"code-samples":[{"language":"json","name":"Validate Job Sample","code":"{\n  \"jobId\": \"6a********************80\",\n  \"account\": \"65********************54\",\n  \"pickupTime\": \"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm\",\n  \"transportType\": \"unknown\",\n  \"driverTip\": 0,\n  \"pickupLocation\": {\n    \"location\": \"60*****************55\",\n    \"name\": \"The Pizza Place\",\n    \"remarks\": \"please use the backdoor for order pickup\",\n    \"street\": \"Steinway Street\",\n    \"streetNumber\": \"31\",\n    \"postalCode\": \"11103\",\n    \"city\": \"Astoria\",\n    \"latitude\": \"40.7644231\",\n    \"longitude\": \"-73.9235849\"\n  },\n  \"deliveryLocations\": [\n    {\n      \"orderId\": \"60*****************dd\",\n      \"channelOrderDisplayId\": \"MT4YVTPL\",\n      \"deliveryTime\": \"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm\",\n      \"packageSize\": \"medium\",\n      \"orderDescription\": \"\",\n      \"company\": \"\",\n      \"name\": \"John Doe\",\n      \"street\": \"31st Avenue\",\n      \"streetNumber\": \"12\",\n      \"subpremise\": \"4B\",\n      \"postalCode\": \"11106\",\n      \"city\": \"Astoria\",\n      \"phone\": \"+1 (212) 555-0148\",\n      \"phoneAccessCode\": \"342241214\",\n      \"deliveryRemarks\": \"Ring door bell.\",\n      \"latitude\": \"40.7691234\",\n      \"longitude\": \"-73.9256789\",\n      \"payment\": {\n        \"orderIsAlreadyPaid\": true,\n        \"amount\": 1100,\n        \"paymentType\": 0,\n        \"due\": 0\n      }\n    }\n  ],\n  \"ageCheck\": false\n}","correspondingExample":"Validate Job Sample"}]},"parameters":[{"name":"Content-Type","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"Accept","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"User-Agent","in":"header","required":true,"description":"Identifies Deliverect as the sender of the webhook, in the format `Deliverect/{version}`.","schema":{"type":"string","default":"Deliverect/{version}"}},{"name":"X-Server-Authorization-HMAC-SHA256","in":"header","required":true,"description":"HMAC-SHA256 signature of the raw request body, generated with your shared secret. Recompute the signature on receipt and compare it to this value to verify the request came from Deliverect (see the <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">HMAC authentication guide</a>).","schema":{"type":"string","default":"{signature}"}}],"security":[]}},"https://yourwebhook.com/dispatch/create_job":{"post":{"tags":["Webhooks"],"summary":"Create Delivery Job","description":"","operationId":"dispatch_create_job","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"account":{"type":"string"},"pickupTime":{"type":"string","format":"date-time"},"transportType":{"type":"string"},"driverTip":{"type":"integer"},"pickupLocation":{"type":"object","properties":{"location":{"type":"string"},"name":{"type":"string"},"remarks":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"}}},"deliveryLocations":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"channelOrderDisplayId":{"type":"string"},"deliveryTime":{"type":"string","format":"date-time"},"packageSize":{"type":"string"},"orderDescription":{"type":"string"},"company":{"type":"string"},"name":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"subpremise":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"phone":{"type":"string"},"phoneAccessCode":{"type":"string"},"deliveryRemarks":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"payment":{"type":"object","properties":{"orderIsAlreadyPaid":{"type":"boolean"},"amount":{"type":"integer"},"paymentType":{"type":"integer"},"due":{"type":"integer"}}}}}},"ageCheck":{"type":"boolean"}}},"examples":{"Create Job Sample":{"summary":"Create Job Sample","value":{"jobId":"60*****************2e","account":"5f*****************31","pickupTime":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","transportType":"unknown","driverTip":500,"pickupLocation":{"location":"60*****************55","name":"The Pizza Place","remarks":"please use the backdoor for order pickup","street":"Steinway Street","streetNumber":"31","postalCode":"11103","city":"Astoria","latitude":"40.7644231","longitude":"-73.9235849"},"deliveryLocations":[{"orderId":"60*****************dd","channelOrderDisplayId":"MT4YVTPL","deliveryTime":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","packageSize":"medium","orderDescription":"","company":"","name":"John Doe","street":"31st Avenue","streetNumber":"12","subpremise":"4B","postalCode":"11106","city":"Astoria","phone":"+1 (212) 555-0148","phoneAccessCode":"342241214","deliveryRemarks":"Ring door bell.","latitude":"40.7691234","longitude":"-73.9256789","payment":{"orderIsAlreadyPaid":true,"amount":1100,"paymentType":0,"due":0}}],"ageCheck":false}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","example":"60*****************2e"},"canDeliver":{"type":"boolean","example":true,"default":true},"pickupTimeETA":{"type":"string","example":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm"},"externalJobId":{"type":"string","example":"DJ123456"},"distance":{"type":"integer","example":4200,"default":0},"price":{"type":"object","properties":{"price":{"type":"integer","example":750,"default":0},"taxRate":{"type":"integer","example":10000,"default":0}}},"courier":{"type":"object","properties":{"courierId":{"type":"string","example":"D1234"},"firstName":{"type":"string","example":"Delivery"},"lastName":{"type":"string","example":"Rider"},"phoneNumber":{"type":"string","example":"0032494112233"},"transportType":{"type":"string","example":"bicycle"}}},"deliveryLocations":{"type":"array","items":{"type":"object","properties":{"deliveryId":{"type":"string","example":"AB*****67"},"orderId":{"type":"string","example":"60*****************dd"},"channelOrderDisplayId":{"type":"string","example":"MT4YVTPL"},"deliveryTimeETA":{"type":"string","example":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm"},"deliveryRemarks":{"type":"string","example":""}}}}}},"examples":{"Result":{"value":{"jobId":"60*****************2e","canDeliver":true,"pickupTimeETA":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","externalJobId":"DJ123456","distance":4200,"price":{"price":750,"taxRate":10000},"courier":{"courierId":"D1234","firstName":"Delivery","lastName":"Rider","phoneNumber":"0032494112233","transportType":"bicycle"},"deliveryLocations":[{"deliveryId":"AB*****67","orderId":"60*****************dd","channelOrderDisplayId":"MT4YVTPL","deliveryTimeETA":"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm","deliveryRemarks":""}]}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"value":"{}"}}}}},"422":{"description":"422","content":{"application/json":{"examples":{"Result":{"value":"{\n\t[{\n\t\t“reason”: DeliveryJobErrorReason,\n\t\t“description”: string,\n\t\t“extraDetails”: string\n\t}]\n}"}}}}}},"deprecated":false,"x-readme":{"explorer-enabled":false,"code-samples":[{"language":"json","name":"Create Job Sample","code":"{\n  \"jobId\": \"60*****************2e\",\n  \"account\": \"5f*****************31\",\n  \"pickupTime\": \"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm\",\n  \"transportType\": \"unknown\",\n  \"driverTip\": 500,\n  \"pickupLocation\": {\n    \"location\": \"60*****************55\",\n    \"name\": \"The Pizza Place\",\n    \"remarks\": \"please use the backdoor for order pickup\",\n    \"street\": \"Steinway Street\",\n    \"streetNumber\": \"31\",\n    \"postalCode\": \"11103\",\n    \"city\": \"Astoria\",\n    \"latitude\": \"40.7644231\",\n    \"longitude\": \"-73.9235849\"\n  },\n  \"deliveryLocations\": [\n    {\n      \"orderId\": \"60*****************dd\",\n      \"channelOrderDisplayId\": \"MT4YVTPL\",\n      \"deliveryTime\": \"yyyy-MM-ddTHH:mm:ss.SSSSSS+HH:mm\",\n      \"packageSize\": \"medium\",\n      \"orderDescription\": \"\",\n      \"company\": \"\",\n      \"name\": \"John Doe\",\n      \"street\": \"31st Avenue\",\n      \"streetNumber\": \"12\",\n      \"subpremise\": \"4B\",\n      \"postalCode\": \"11106\",\n      \"city\": \"Astoria\",\n      \"phone\": \"+1 (212) 555-0148\",\n      \"phoneAccessCode\": \"342241214\",\n      \"deliveryRemarks\": \"Ring door bell.\",\n      \"latitude\": \"40.7691234\",\n      \"longitude\": \"-73.9256789\",\n      \"payment\": {\n        \"orderIsAlreadyPaid\": true,\n        \"amount\": 1100,\n        \"paymentType\": 0,\n        \"due\": 0\n      }\n    }\n  ],\n  \"ageCheck\": false\n}","correspondingExample":"Create Job Sample"}]},"parameters":[{"name":"Content-Type","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"Accept","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"User-Agent","in":"header","required":true,"description":"Identifies Deliverect as the sender of the webhook, in the format `Deliverect/{version}`.","schema":{"type":"string","default":"Deliverect/{version}"}},{"name":"X-Server-Authorization-HMAC-SHA256","in":"header","required":true,"description":"HMAC-SHA256 signature of the raw request body, generated with your shared secret. Recompute the signature on receipt and compare it to this value to verify the request came from Deliverect (see the <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">HMAC authentication guide</a>).","schema":{"type":"string","default":"{signature}"}}],"security":[]}},"https://yourwebhook.com/dispatch/updateJob":{"post":{"tags":["Webhooks"],"summary":"Job Update","description":"","operationId":"dispatch_update_job","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"account":{"type":"string"},"pickupTime":{"type":"string","format":"date-time"},"transportType":{"type":"string"},"driverTip":{"type":"integer"},"pickupLocation":{"type":"object","properties":{"location":{"type":"string"},"name":{"type":"string"},"remarks":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"}}},"deliveryLocations":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"channelOrderDisplayId":{"type":"string"},"deliveryTime":{"type":"string","format":"date-time"},"packageSize":{"type":"string"},"orderDescription":{"type":"string"},"company":{"type":"string"},"name":{"type":"string"},"street":{"type":"string"},"streetNumber":{"type":"string"},"subpremise":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"phone":{"type":"string"},"phoneAccessCode":{"type":"string"},"deliveryRemarks":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"payment":{"type":"object","properties":{"orderIsAlreadyPaid":{"type":"boolean"},"amount":{"type":"integer"},"paymentType":{"type":"integer"},"due":{"type":"integer"}}}}}},"ageCheck":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"explorer-enabled":false},"parameters":[{"name":"Content-Type","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"Accept","in":"header","description":"application/json","schema":{"type":"string","default":"application/json"}},{"name":"User-Agent","in":"header","required":true,"description":"Identifies Deliverect as the sender of the webhook, in the format `Deliverect/{version}`.","schema":{"type":"string","default":"Deliverect/{version}"}},{"name":"X-Server-Authorization-HMAC-SHA256","in":"header","required":true,"description":"HMAC-SHA256 signature of the raw request body, generated with your shared secret. Recompute the signature on receipt and compare it to this value to verify the request came from Deliverect (see the <a href=\"https://developers.deliverect.com/reference/hmac-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">HMAC authentication guide</a>).","schema":{"type":"string","default":"{signature}"}}],"security":[]}}}}