/api/v1/reports/inventory
POST
/api/v1/reports/inventory
const url = 'https://example.com/api/v1/reports/inventory';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"scope":{"locationId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"filters":{"placeIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"typeIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"tagIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"thingIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"includeEnded":true,"includeTrashed":true},"include":{"photos":true,"qr":true,"money":true},"locale":"en","digits":"western","email":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/reports/inventory \ --header 'Content-Type: application/json' \ --data '{ "scope": { "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "filters": { "placeIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "typeIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "tagIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "thingIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "includeEnded": true, "includeTrashed": true }, "include": { "photos": true, "qr": true, "money": true }, "locale": "en", "digits": "western", "email": true }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
scope
required
filters
object
placeIds
Array<string>
typeIds
Array<string>
tagIds
Array<string>
thingIds
Array<string>
includeEnded
boolean
includeTrashed
boolean
include
object
photos
boolean
qr
boolean
money
boolean
locale
string
digits
string
email
boolean
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
status
required
string
expiresAt
required
string
Example
{ "status": "queued"}