Show Courier Coordinates

This page provides an endpoint to get Courier Coordinates.

Courier Coordinates will be available per Delivery Request (e.g. "DR-dc87500d7b4da2baba474ccc789ef2e7").
Courier Coordinates will be available when the courier is on the way to the pickup (status: "confirmed") and, then when the courier drives to the dropoff (status: "driving").

Resource

POST v1/delivery/deliveries/location

Authorization

OAuth 2.0 bearer token with Delivery scope.

Query Parameters

Name

Type

Description

business_id

string

Unique identifier representing a Business. (ex: "IL-7436" or "RU-11111")

Body Parameters - raw format

Namw

Type

Description

uuid

string

Delivery id received when creating a new delivery.

Please note that body parameters shall not be in JSON format, it shall contain a raw array of delivery UUID's as in the following example:

["DR-dc87500d7b4da2baba474ccc789ef2e7", "DR-dfd22dd08f0541ef89c939676ff9ce37"]

Request

curl --location \
--request POST 'https://api.gett.com/v1/delivery/deliveries/location?business_id=RU-11111' \
--header 'Authorization: Bearer [API SECRET TOKEN]' \
--header 'Content-Type: text/plain' \
--data-raw '["DR-dc87500d7b4da2baba474ccc789ef2e7", "DR-dfd22dd08f0541ef89c939676ff9ce37"]'

Response

{
    "DR-dc87500d7b4da2baba474ccc789ef2e7": {
        "lat": 55.86002,
        "lng": 37.527938
    },
    "DR-dfd22dd08f0541ef89c939676ff9ce37": {
        "lat": 55.91498,
        "lng": 37.454937
    }
}

Sandbox

Resource:

POST /v1/delivery_sandbox/deliveries/location

More info can be found here


Did this page help you?