Get inventory list
Inventories are just a logical way of group products. Products cannot exist by themselves, every product must belong to an inventory.
Calling the endpoint
In order to get the list of inventories we need to make a GET request to the inventories resource and pass the api key as a query parameter:
curl -i https://sercies.rxrise.com/api/v1/services?apiKey=YOUR_API_KEY
Response Payload
This will return you an array with all the inventories associated with the account:
[
{
"id": 1,
"ownerId": 1,
"createdAt": "2021-11-18T00:00:00.570Z",
"updatedAt": "2021-11-18T00:00:00.570Z"
},
{
"id": 2,
"ownerId": 1,
"createdAt": "2021-11-19T00:00:00.570Z",
"updatedAt": "2021-11-19T00:00:00.570Z"
}
]