POST
/
inventories
/
actions
/
find-by-geography

Authorizations

Authorization
string
header
required

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

Headers

x-fabric-tenant-id
string
required

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

x-fabric-request-id
string

Unique request ID

x-fabric-channel-id
string

x-fabric-channel-id identifies the sales channel through which the API request is being made; primarily for multichannel use cases. It is an optional field. The default US channel is 12 while the default Canada channel is 13.

x-fabric-channel-ids
string

x-fabric-channel-id identifies the sales channel through which the API request is being made; primarily for multichannel use cases. It is an optional field. The default US channel is 12 while the default Canada channel is 13. This field is optional. Note: Use xFabricChannelIds for multiple channels, and xFabricChannelId for a single channel.

Body

application/json

Find inventory by geography request

origin
object
required

Geo search origin. Must include (postalCode) OR (city and region and countryCode) OR (latitude and longitude)

locationTypes
string[]

List of location types

skus
string[]

List of SKUs for which the inventories are to be searched within the specified region

Response

200 - application/json

Geo search response sample

inventories
object[]

Inventories present in queried region.

locations
object[]

List Locations sorted by nearest first where Inventory present in queried region.