Skip to main content

discogsInventory Query

Description

Retrieves a paginated page of inventory listings from Discogs that are synced with the local inventory.

query discogsInventory($page: Int!) {
discogsInventory(page: $page) {
listings {
id
location
condition
sleeve_condition
posted
uri
comments
privateComments
path
exists
discrepancy
}
pagination {
limit
count
page
pages
hasMore
}
stats {
foundItems
}
}
}

Variables

{
"page": 1
}

Response

{
"discogsInventory": {
"listings": [
{
"id": "example",
"location": "example",
"condition": "example",
"sleeve_condition": "example",
"posted": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"comments": "example",
"privateComments": "example",
"path": "/release/1763553751/release-artist-release-name",
"exists": true,
"discrepancy": true
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"hasMore": true
},
"stats": {
"foundItems": 42
}
}
}

Arguments

NameTypeDescription
pageInt!Page number to retrieve. Page numbering starts at 1.

Returns

DiscogsInventoryPage