Download OpenAPI specification:Download
Manage the availability and physical location of a product.
Key Features:
Key Benefits:
Retrieves all locations for a specified site.
Required scopes
availability.availability_view
The request was successful. A list of locations is returned.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource was not found.
Some server-side error occurred. Details are provided in the response.
[- {
- "id": "shop1:1234",
- "site": "shop1",
- "rack": "1234",
- "rackName": "Tools",
- "order": 1
}
]
Adds a new location to a specified site.
Required scopes
availability.availability_manage
The request was successful. The location has been added to the site.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource already exists.
Some server-side error occurred. Details are provided in the response.
{- "id": "shop1:1234",
- "site": "shop1",
- "rack": "1234",
- "rackName": "Tools",
- "order": 1
}
{- "message": "Successfully created location with id: shop1:1234",
- "code": 201
}
Updates locations for a specified site.
Required scopes
availability.availability_manage
The request was successful. The locations have been updated.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response.
[- {
- "id": "shop1:1234",
- "order": 1
}, - {
- "id": "secondary:4321",
- "order": 10
}
]
{- "message": "Successfully modified 5 location(s)",
- "code": 200
}
Deletes a specified location.
Required scopes
availability.availability_manage
The request was successful. The location has been deleted.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response.
{- "message": "Successfully deleted 5 location(s)",
- "code": 200
}
Retrieves all availability information for a specified site.
Note: When a product bundle is retrieved, availability is returned both for its particular products and for the bundle as a whole. The bundle's availability is equal to the lowest availability found in its products.
Required scopes No specific scopes are required.
The request was successful. A list of availabilities is returned.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response.
[- {
- "id": "shop1:12345",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT",
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json"
}
}, - "mixins": {
- "productCustomAttributes": {
- "minOrderQuantity": 2
}
}
}
]
Retrieves a specified product's availability details.
The request was successful. The product's availability details are returned.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource was not found.
Some server-side error occurred. Details are provided in the response.
{- "id": "shop1:12345",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT",
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json"
}
}, - "mixins": {
- "productCustomAttributes": {
- "minOrderQuantity": 2
}
}, - "bundleAvailabilities": [
- {
- "id": "shop1:678",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT",
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json"
}
}, - "mixins": {
- "productCustomAttributes": {
- "minOrderQuantity": 2
}
}
}
]
}
Creates a new availability for a specified product.
Note: We recommend not to create a new product availability for a site named main
. A site named main
works as an aggregator of availability data from other sites. It's not possible to later retrieve availability for a single site when it's called main
.
Required scopes
availability.availability_manage
The request was successful. The availability has been created.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource already exists.
Some server-side error occurred. Details are provided in the response.
{- "id": "shop1:12345",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT",
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json"
}
}, - "mixins": {
- "productCustomAttributes": {
- "minOrderQuantity": 2
}
}
}
{- "message": "Availability record has been created.",
- "code": 201
}
Updates a specified product's availability details.
Note: There is no possibility to update a product bundle's availability - it is always equal to the lowest availability found in the bundled products.
Required scopes
availability.availability_manage
The request was successful. The availability has been updated.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource was not found.
Some server-side error occurred. Details are provided in the response.
{- "id": "shop1:12345",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT",
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json"
}
}, - "mixins": {
- "productCustomAttributes": {
- "minOrderQuantity": 2
}
}
}
{- "message": "Availability has been updated",
- "code": 200
}
Deletes a specified product's availability.
Note: There is no possibility to delete a product bundle's availability - it is always equal to the lowest availability found in the bundled products.
Required scopes
availability.availability_manage
The request was successful. The availability has been deleted.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource was not found.
Some server-side error occurred. Details are provided in the response.
{- "code": 400,
- "status": "Bad Request",
- "message": "There is a validation error. Please check the details.",
- "_embedded": {
- "errors": [
- {
- "message": "Required field missing. Check API documentation."
}
]
}
}
Retrieves locations of specified products.
Required scopes
availability.availability_view
The request was successful. A list of locations is returned.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource was not found.
Some server-side error occurred. Details are provided in the response.
{- "site": "shop1",
- "productIds": [
- "5f7c996173fc281cdd412345",
- "5f7c996173fc281cdd412345"
]
}
[- {
- "productId": "5f7c996173fc281cdd412345",
- "locations": [
- {
- "site": "shop1",
- "zone": "zone1",
- "rack": "1",
- "rackName": "Tools",
- "shelf": "shelf1",
- "section": "section1",
- "bin": "bin1",
- "order": 1
}
]
}
]
Retrieves availabilities for specified products on a specified site.
Required scopes No specific scopes are required.
The request was successful. A list of availabilities is returned.
The request was syntactically incorrect. Details are provided in the response.
The authorization token is invalid or has expired. Details are provided in the response.
Provided authorization scopes are not sufficient and do not match scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response.
[- "5f7c996173fc281cdd412345",
- "5f7c996173fc281cdd412346"
]
[- {
- "id": "shop1:12345",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT",
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json"
}
}, - "mixins": {
- "productCustomAttributes": {
- "minOrderQuantity": 2
}
}, - "bundleAvailabilities": [
- {
- "id": "shop1:678",
- "site": "shop1",
- "stockLevel": 10,
- "available": true,
- "productId": "5f7c996173fc281cdd412345",
- "popularity": 5,
- "createdAt": "2022-02-22T02:02:02.222Z",
- "modifiedAt": "2022-02-22T02:02:02.222Z",
- "distributionChannel": "ASSORTMENT"
}
]
}
]