Purchases

GET /v2/purchases/{account_id}/history

Get history of purchases

Request

Path parameters

account_idstring address required
Example:0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621

account ID

Query parameters

before_ltinteger
Example:25758317000002

omit this parameter to get last invoices

limitinteger
Example:100

Response

account purchase history

next_frominteger required

Example response

{
  "next_from": 25713146000001,
  "purchases": [
    {
      "amount": {
        "currency_type": "jetton",
        "decimals": 9,
        "image": "https://cache.tonapi.io/images/jetton.jpg",
        "jetton": "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0",
        "token_name": "Gram",
        "value": "123000000000",
        "verification": "whitelist"
      },
      "destination": {
        "address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
        "icon": "https://ton.org/logo.png",
        "is_scam": true,
        "is_wallet": true,
        "name": "Ton foundation"
      },
      "event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
      "invoice_id": "03cfc582-b1c3-410a-a9a7-1f3afe326b3b",
      "lt": 25713146000001,
      "metadata": {
        "decryption_key": "dead.....beef"
      },
      "source": {
        "address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
        "icon": "https://ton.org/logo.png",
        "is_scam": true,
        "is_wallet": true,
        "name": "Ton foundation"
      },
      "utime": 1645544908
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.