The credit object
The prepaid credit of the tenant. Each amount is a string of US dollars to the cent.
{
"balance": "12.34",
"credit": "15.00",
"used": "2.66",
"since": 1790899200,
"entries": [
{
"kind": "free",
"amount": "5.00",
"at": 1790899200
},
{
"kind": "topup",
"amount": "10.00",
"at": 1793491200
}
],
"top_up": true,
"amounts": [
5,
10,
25,
50
],
"held": false
}Fields
balancestring- What is left.
creditstring- All the additions.
usedstring- What the VMs used.
sincenumber- The start of the usage that the credit pays for, as a Unix time.
entriesCreditEntry[]- The additions, oldest first.
top_upboolean- true: Shako takes top-ups.
amountsnumber[]- The top-ups, in dollars.
heldboolean- true: the credit is used up, so the VMs sleep, and none wakes until a top-up.