Skip to Content
Grail Network
API reference

Shop Pulls_list

GET
/shop/pulls

Authorization

shopApiKey
headerAuthorizationBearer <token>

The shop's API key.

Query Parameters

page?integer
Range1 <= value <= 9007199254740991
Default1
pageSize?integer
Range1 <= value <= 200
Default20
buyerId?string

The shop's own id of the buyer

Length1 <= length <= 200
packId?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
state?string
Value in"started""completed""failed"
requestId?string

The shop's own id of the request: the same id with the same body answers the same pull

Length1 <= length <= 200
from?string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$
Formatdate-time
to?string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}(?:Z))$
Formatdate-time

Response Body

application/json
  1. response
data*array<>
meta*
Example Request
curl -X GET 'https://api-stg.grailnetwork.com/shop/pulls'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "requestId": "string",      "packId": "76be6288-f84b-4cef-9c7f-e3c35001eada",      "packVersion": -9007199254740991,      "buyerId": "string",      "packCount": -9007199254740991,      "packPrice": {        "amountAtomic": "string",        "currency": "USD"      },      "amount": {        "amountAtomic": "string",        "currency": "USD"      },      "state": "started",      "reason": "balance_too_low",      "createdAt": "2019-08-24T14:15:22Z",      "buybackOfferEndsAt": "2019-08-24T14:15:22Z",      "serverSeedHash": "string",      "serverSeed": "string",      "clientSeed": "string",      "packs": [        {          "index": -9007199254740991,          "cards": [            {              "slotPosition": -9007199254740991,              "tierName": "string",              "holdingId": "51ebd04a-ea04-425f-9017-f69b7702e7a3",              "priceAtHold": {                "amountAtomic": "string",                "currency": "USD"              },              "payout": {                "amountAtomic": "string",                "currency": "USD"              },              "item": {                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",                "cardName": "string",                "cardNumber": "string",                "setName": "string",                "categoryName": "string",                "gradeName": "string",                "conditionName": "string",                "frontPictureUrl": "string"              }            }          ],          "featuredRoll": "hit",          "featuredCard": {            "holdingId": "51ebd04a-ea04-425f-9017-f69b7702e7a3",            "priceAtHold": {              "amountAtomic": "string",              "currency": "USD"            },            "payout": {              "amountAtomic": "string",              "currency": "USD"            },            "item": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "cardName": "string",              "cardNumber": "string",              "setName": "string",              "categoryName": "string",              "gradeName": "string",              "conditionName": "string",              "frontPictureUrl": "string"            }          }        }      ]    }  ],  "meta": {    "page": 1,    "pageSize": 1,    "total": 0  }}