POST
/
location
/
geography
/
search

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Body

application/json

NearByLocation request model

filter
object
required

NearByLocation request model

limit
integer
default: 10

Number of records returned on a single page

offset
integer
default: 0

Number of records skipped before filtering records

sortBy
string
default: updatedAt

Item property on which data needed to be sorted on.

sortDirection
enum<string>
default: desc

Direction of sorting i.e ascending or descending

Available options:
asc,
desc

Response

200 - application/json

NearByLocation response model

count
integer

Total number of inventory locations within the given radius

limit
integer

Number of records returned on a single page

offset
integer

Number of records skipped before filtering records

locations
object[]

locations