Files

1 line
42 KiB
JSON
Raw Permalink Normal View History

2026-03-24 01:54:43 +00:00
{"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"getInventory","kind":"identifier"},{"text":"(","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"input","kind":"internalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO","text":"Operations","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO12GetInventoryO","text":"GetInventory","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO12GetInventoryO5InputV","text":"Input","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input"},{"text":") ","kind":"text"},{"text":"async","kind":"keyword"},{"text":" ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO","text":"Operations","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO12GetInventoryO","text":"GetInventory","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO12GetInventoryO6OutputO","text":"Output","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Output"}],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"discussion","text":"Discussion","type":"heading","level":2},{"inlineContent":[{"text":"Returns the list of listings for an inventory of a user.","type":"text"}],"type":"paragraph"},{"inlineContent":[{"text":"Basic information about each listing and the corresponding release is provided, suitable for display in a list. For detailed information about the release, make another API call to fetch the corresponding Release.","type":"text"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"type":"text","text":"This endpoint accepts pagination and also, in case of authenticated as an inventory owner, items that not only have the "},{"code":"For Sale","type":"codeVoice"},{"type":"text","text":" state will be shown as well as other extra fields in those items such as "},{"code":"weight","type":"codeVoice"},{"type":"text","text":", "},{"code":"format_quality","type":"codeVoice"},{"type":"text","text":", "},{"code":"external_id","type":"codeVoice"},{"type":"text","text":", "},{"code":"location","type":"codeVoice"},{"type":"text","text":", and "},{"code":"quantity_keys","type":"codeVoice"},{"type":"text","text":". Note that the "},{"code":"quantity","type":"codeVoice"},{"type":"text","text":" field is read-only for "},{"type":"emphasis","inlineContent":[{"text":"NearMint","type":"text"}]},{"type":"text","text":" users, who will see "},{"type":"emphasis","inlineContent":[{"text":"1","type":"text"}]},{"type":"text","text":" for all quantity values, regardless of their actual count."}]},{"type":"paragraph","inlineContent":[{"text":"In case the user is authorized, the listing will contain a ","type":"text"},{"code":"in_cart","type":"codeVoice"},{"text":" boolean field indicating whether or not this listing is in their cart.","type":"text"}]},{"type":"aside","style":"note","name":"Remark","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"HTTP "},{"type":"codeVoice","code":"GET \/users\/{username}\/inventory"},{"type":"text","text":"."}]}]},{"type":"aside","style":"note","name":"Remark","content":[{"inlineContent":[{"type":"text","text":"Generated from "},{"code":"#\/paths\/\/users\/{username}\/inventory\/get(getInventory)","type