To create a listing, you have to create a facility first. Listings are always related to a specific facility.
Create a listing
For adding the listing to your facility, the article ID of your system (tenantArticleId
) and a title is enough:
PUT https://your.api.fulfillmenttools.com/api/facilities/{facilityId}/listings
{
"listings": [
{
"imageUrl": "https://upload.wikimedia.org/wikipedia/en/3/35/Wonka_Bar%2C_packaging.jpg",
"price": 2.99,
"tenantArticleId": "4892",
"titleLocalized": {
"de_DE": "Wonkas Schokoriegel",
"en_US": "Wonkas Chocolate Bar"
},
}
]
}
If your request was successful, you'll receive a HTTP 200 OK
response without a body.
Get listings
To check the listings of a facility, you can use the paginated GET endpoint to find all listings for a specific facilityId
:
GET https://your.api.fulfillmenttools.com/api/facilities/{facilityId}/listings
This will respond with a HTTP 200 OK
containing all listings for that facility:
{
"total": 1,
"listings": [
{
"id": "5d174533-29b9-464b-9325-94bfacefe335_4892",
"version": 1,
"status": "ACTIVE",
"tenantArticleId": "4892",
"created": "2023-08-22T12:19:14.129Z"
}
]
}
Alternatively, there is a GET endpoint to find a specific listing by your own article ID (tenantArticleId
):
GET https://your.api.fulfillmenttools.com/api/facilities/{facilityId}/listings/{tenantArticleId}
This will result in a HTTP 200 OK
response containing a more detailed view of that listing:
{
"attributes": null,
"imageUrl": "https://upload.wikimedia.org/wikipedia/en/3/35/Wonka_Bar%2C_packaging.jpg",
"price": 2.99,
"tenantArticleId": "4892",
"titleLocalized": {
"de_DE": "Wonkas Schokoriegel",
"en_US": "Wonkas Chocolate Bar"
},
"scannableCodes": [],
"created": "2023-08-22T12:19:14.129Z",
"lastModified": "2023-08-22T12:19:14.129Z",
"version": 1,
"facilityId": "5d174533-29b9-464b-9325-94bfacefe335",
"id": "5d174533-29b9-464b-9325-94bfacefe335_4892",
"status": "ACTIVE"
}