## GET /v1/account/billing/purchase-options

Read the smallest, largest, and suggested credit purchases, in millicents, and the platform fee. The fee is added to the credit amount and never reduces the credit granted.

Required permissions: read:account.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "fee_fraction": float,
  "max_amount": int,
  "min_amount": int,
  "preset_amounts": [
    int
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.account.billing.purchase_options()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.account.billing.purchaseOptions();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/account/billing/purchase-options" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "fee_fraction": {
      "type": "number"
    },
    "max_amount": {
      "type": "integer"
    },
    "min_amount": {
      "type": "integer"
    },
    "preset_amounts": {
      "items": {
        "type": "integer"
      },
      "type": "array"
    }
  },
  "required": [
    "min_amount",
    "max_amount",
    "fee_fraction",
    "preset_amounts"
  ],
  "type": "object"
}
```
