Locations

Retrieving all locations for a site

get

Retrieves all locations for a specified site.


Required scopes

  • availability.availability_view

Required scopes
This endpoint requires the following scopes:
  • : view_availability
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Example: testtenant
sitestringRequired

Site code, defined when the site is created.

Example: shop1
Responses
200

The request was successful. A list of locations is returned.

application/json
get
/availability/{tenant}/locations/{site}

Adding a new location to a site

post

Adds a new location to a specified site.


Required scopes

  • availability.availability_manage

Required scopes
This endpoint requires the following scopes:
  • : manage_availability
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Example: testtenant
sitestringRequired

Site code, defined when the site is created.

Example: shop1
Body

Physical location of the product.

idstringRequired

Unique identifier of the location.

Note: The value should be provided in the site:rack format.

Example: shop1:1234
sitestringRequired

Site code, defined when the site is created. The value should match the site query/path parameter value.

Example: shop1
rackstringOptional

Rack number.

Example: 1234
rackNamestringOptional

Name of the rack.

Example: Tools
ordernumberRequired

Order of the location, expressed as a number.

Example: 1
Responses
post
/availability/{tenant}/locations/{site}

Updating locations

put

Updates locations for a specified site.


Required scopes

  • availability.availability_manage

Required scopes
This endpoint requires the following scopes:
  • : manage_availability
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Example: testtenant
sitestringRequired

Site code, defined when the site is created.

Example: shop1
Bodyobject[]
idstringOptional

Unique identifier of the location.

Example: shop1:1234
ordernumberOptional

Order of the location, expressed as a number.

Example: 1
Responses
200

The request was successful. The locations have been updated.

application/json
put
/availability/{tenant}/locations/{site}

Deleting a location

delete

Deletes a specified location.


Required scopes

  • availability.availability_manage

Required scopes
This endpoint requires the following scopes:
  • : manage_availability
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Example: testtenant
locationstringRequired

Location unique identifier.

Example: shop1:1234
Responses
200

The request was successful. The location has been deleted.

application/json
delete
/availability/{tenant}/locations/{location}

Retrieving product locations

post

Retrieves locations of specified products.


Required scopes

  • availability.availability_view

Required scopes
This endpoint requires the following scopes:
  • : view_availability
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Example: testtenant
Body
sitestringOptional

Site code, defined when the site is created.

Example: shop1
productIdsstring[]Optional

List of product IDs. A product IDs is generated when the product is created through the Product Service.

Example: ["5f7c996173fc281cdd412345","5f7c996173fc281cdd412345"]
Responses
200

The request was successful. A list of locations is returned.

application/json
post
/availability/{tenant}/search/locations

Last updated

Was this helpful?