API reference
Shop Holdings_list
GET
shopApiKeyheader
AuthorizationBearer <token>The shop's API key.
page?integerRange
1 <= value <= 9007199254740991Default
1pageSize?integerRange
1 <= value <= 200Default
20sort?stringDefault
"-createdAt"Value in
"createdAt""-createdAt"buyerId?stringThe shop's own id of the buyer
Length
1 <= length <= 200pullId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidmarketPurchaseId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidlive?stringOnly the holdings that are not bought back
ordered?stringapplication/json- response
data*array<>meta*curl -X GET 'https://api-stg.grailnetwork.com/shop/holdings'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "buyerId": "string", "pullId": "7f652a8a-88a6-4b0e-8d1a-6568d65e1e00", "marketPurchaseId": "cc4784dc-fb40-4b02-b50c-d4a4e46b586b", "priceAtHold": { "amountAtomic": "string", "currency": "string" }, "payout": { "amountAtomic": "string", "currency": "string" }, "buybackOfferEndsAt": "2019-08-24T14:15:22Z", "orderedAt": "2019-08-24T14:15:22Z", "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "boughtBackAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "item": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "state": "available", "catalogCard": { "name": "string", "number": "string", "setName": "string", "categoryName": "string" }, "gradeName": "string", "conditionName": "string", "frontPictureUrl": "string" } } ], "meta": { "page": 1, "pageSize": 1, "total": 0 }}