Namespace

locations

Dispatch.locations

Methods

# static retrieve(id) → {Promise.<Response>}

Retrieves a location using its ID

Parameters:
Name Type Description
id string

The ID of the location that you want to retrieve

View Source dispatch.js, line 385

Returns the response object. The Response's data property will be an array of Location objects.

Promise.<Response>
Example
const response = await dispatch.locations.retrieve("loc_fjdsklfju8jisjfdisoiu89j")
const delivery = response.data //this will contain the location object