Account
Credit transactions
Every credit movement on the account, newest first: top-ups, charges, refunds.
https://api.sangtao.ai/v2/account/transactionsAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Query parameters
typestringOnly transactions of this type. Case does not matter.
Available options:
TopupConsumeBonusRefundAdjustmentExchangepageintPage number, from 1. Default 1.
pageSizeintTransactions per page. Default 20, at most 100. limit is accepted as the same thing.
Response
An array of transactions, newest first. The total for the filter is in the X-Total-Count header.
idstringThe transaction’s id, tx_….
typestringWhat kind of movement it was.
Available options:
TopupConsumeBonusRefundAdjustmentExchangedescriptionstringWhat it was for, as a sentence (in Vietnamese).
descriptionKeystring | nullThe kind of sentence, to write description in your own language, e.g. "bank_topup". null when there is none.
descriptionParamsobject | nullThe values in that sentence (amount, package…), as strings.
amountnumberCredits added (positive) or taken (negative).
balanceAfternumberThe balance right after it.
jobIdstring | nullThe job it was for. null when it is not about a job (a top-up, say).
createdAtstringWhen it happened, ISO 8601 in UTC.
/account/transactionscurl "https://api.sangtao.ai/v2/account/transactions?page=1&pageSize=20" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": [
{
"id": "tx_8hQ2mZr4K",
"type": "Consume",
"description": "Motion render",
"descriptionKey": "motion_render",
"descriptionParams": {},
"amount": -12,
"balanceAfter": 142,
"jobId": "acff47cbfacf4e27bbc08770c9ea246d",
"createdAt": "2026-11-09T10:01:00Z"
},
{
"id": "tx_3kT9qPz0B",
"type": "Topup",
"description": "Nạp 200.000đ — Gói Starter",
"descriptionKey": "bank_topup",
"descriptionParams": {
"vnd": "200000",
"package": "Gói Starter"
},
"amount": 150,
"balanceAfter": 154,
"jobId": null,
"createdAt": "2026-11-08T03:20:00Z"
}
]
}/account/transactionscurl "https://api.sangtao.ai/v2/account/transactions?page=1&pageSize=20" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": [
{
"id": "tx_8hQ2mZr4K",
"type": "Consume",
"description": "Motion render",
"descriptionKey": "motion_render",
"descriptionParams": {},
"amount": -12,
"balanceAfter": 142,
"jobId": "acff47cbfacf4e27bbc08770c9ea246d",
"createdAt": "2026-11-09T10:01:00Z"
},
{
"id": "tx_3kT9qPz0B",
"type": "Topup",
"description": "Nạp 200.000đ — Gói Starter",
"descriptionKey": "bank_topup",
"descriptionParams": {
"vnd": "200000",
"package": "Gói Starter"
},
"amount": 150,
"balanceAfter": 154,
"jobId": null,
"createdAt": "2026-11-08T03:20:00Z"
}
]
}