# The credit object

> The prepaid credit of the tenant. Each amount is a string of US dollars to the cent.

```json Example
{
  "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

**balance** `string`

What is left.

**credit** `string`

All the additions.

**used** `string`

What the VMs used.

**since** `number`

The start of the usage that the credit pays for, as a Unix time.

**entries** `CreditEntry[]`

The additions, oldest first.

**top_up** `boolean`

true: Shako takes top-ups.

**amounts** `number[]`

The top-ups, in dollars.

**held** `boolean`

true: the credit is used up, so the VMs sleep, and none wakes until a top-up.
