curl --request GET \
--url https://tonapi.io/v2/purchases/{account_id}/history{
"purchases": [
{
"event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
"invoice_id": "03cfc582-b1c3-410a-a9a7-1f3afe326b3b",
"source": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"destination": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"lt": 25713146000001,
"utime": 1645544908,
"amount": {
"currency_type": "jetton",
"value": "123000000000",
"decimals": 9,
"token_name": "TON",
"verification": "whitelist",
"image": "https://cache.tonapi.io/images/jetton.jpg",
"jetton": "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0"
},
"metadata": {
"encrypted_binary": "<string>",
"decryption_key": "dead.....beef"
}
}
],
"next_from": 25713146000001
}Get history of purchases
curl --request GET \
--url https://tonapi.io/v2/purchases/{account_id}/history{
"purchases": [
{
"event_id": "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e",
"invoice_id": "03cfc582-b1c3-410a-a9a7-1f3afe326b3b",
"source": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"destination": {
"address": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"is_scam": true,
"is_wallet": true,
"name": "Ton foundation",
"icon": "https://ton.org/logo.png"
},
"lt": 25713146000001,
"utime": 1645544908,
"amount": {
"currency_type": "jetton",
"value": "123000000000",
"decimals": 9,
"token_name": "TON",
"verification": "whitelist",
"image": "https://cache.tonapi.io/images/jetton.jpg",
"jetton": "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0"
},
"metadata": {
"encrypted_binary": "<string>",
"decryption_key": "dead.....beef"
}
}
],
"next_from": 25713146000001
}account ID
"0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
omit this parameter to get last invoices
25758317000002
1 <= x <= 1000100
Was this page helpful?