---
title: "Get the card on file."
method: GET
path: "/v1/billing/card"
tags: ["billing"]
---

# Get the card on file.

`GET /v1/billing/card`

## Request

- Base URL: `https://api.smolmachines.com`
- URL: `https://api.smolmachines.com/v1/billing/card`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/smolmachines/apis/smolfleet-api/docs/v1/billing/card/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the brand, last four digits and expiry of the card the account's plan fee and auto top-ups are charged to. Requires the `usage:read` or `machine:read` scope.

## Response `200`

The card on file

- CardOnFile: Opt-in saved-card auto-recharge settings (`GET`/`POST /v1/billing/auto-recharge`). The card on file: what the account's plan fee and auto top-ups are charged to, as Stripe describes it. Never the number itself.
  - `brand` string, required: Card network, e.g. `visa`, `mastercard`, `amex`.
  - `expMonth` integer, required
  - `expYear` integer, required
  - `last4` string, required: Last four digits.

## Other responses

- `401`: Missing or invalid API key
- `403`: Key lacks the required scope
- `404`: No card on file, or card payments are not enabled
- `429`: Rate limited; retry after the Retry-After header
- `500`: Internal error
- `502`: The payment provider did not answer

## Changes

- **2026-10-16** `bc31fc04a568`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smolmachines/apis/smolfleet-api/changes/v1/billing/card/get.md)

---

[API](https://skmtc.dev/smolmachines/apis/smolfleet-api.md) - [All operations](https://skmtc.dev/smolmachines/apis/smolfleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smolmachines/apis/smolfleet-api/revisions/bc31fc04a568?raw)
