Skip to Content
Grail Network
API reference

Shop Balance_list Balance Transactions

GET
/shop/balance-transactions

Authorization

shopApiKey
headerAuthorizationBearer <token>

The shop's API key.

Query Parameters

page?integer
Range1 <= value <= 9007199254740991
Default1
pageSize?integer
Range1 <= value <= 200
Default20
kind?string
Value in"deposit""manual_deposit""withdrawal""manual_withdrawal""pack_purchase""market_purchase""shipping_price""refund""not_charged""payout""shop_buyback_share"
referenceId?string

Only the rows of one reference: a pull, a market purchase, a shipment, a deposit or a withdrawal. Its debit or credit, and its refund or its row that is not charged

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
from?string

The first time, included

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

The last time, not included

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
sort?string
Default"-createdAt"
Value in"createdAt""-createdAt"

Response Body

application/json
  1. response
data*array<>
meta*
Example Request
curl -X GET 'https://api-stg.grailnetwork.com/shop/balance-transactions'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "deposit",      "amount": {        "amountAtomic": "string",        "currency": "string"      },      "referenceId": "8502eb05-558d-4480-8511-c1011710b340",      "holdingId": "51ebd04a-ea04-425f-9017-f69b7702e7a3",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "page": 1,    "pageSize": 1,    "total": 0  }}