listStockLots
GET
/stock/lots
const url = 'https://app.dev.buildtrace.eu/api/stock/lots?revisionId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&locationId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.dev.buildtrace.eu/api/stock/lots?revisionId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&locationId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --header 'Authorization: Bearer <token>'Required scope: inventory:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”revisionId
required
string format: uuid
locationId
required
string format: uuid
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
lot
required
string
onHand
required
string
Example generated
[ { "lot": "example", "onHand": "example" }]Bad request
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}Unauthorized