Skip to Content
Grail Network
API reference

Shop Holdings_list

GET
/shop/holdings

Authorization

shopApiKey
headerAuthorizationBearer <token>

The shop's API key.

Query Parameters

page?integer
Range1 <= value <= 9007199254740991
Default1
pageSize?integer
Range1 <= value <= 200
Default20
sort?string
Default"-createdAt"
Value in"createdAt""-createdAt"
buyerId?string

The shop's own id of the buyer

Length1 <= length <= 200
pullId?string
Match^([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)$
Formatuuid
marketPurchaseId?string
Match^([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)$
Formatuuid
live?string

Only the holdings that are not bought back

ordered?string

Response Body

application/json
  1. response
data*array<>
meta*
Example Request
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  }}