---
title: "Get a credit purchase"
method: GET
path: "/api/v1/checkout/{id}"
tags: ["Account"]
---

# Get a credit purchase

`GET /api/v1/checkout/{id}`

## Request

- Base URL: `https://audo.ai`
- URL: `https://audo.ai/api/v1/checkout/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Secure-audo.session_token`

While it's open, Stripe is asked too, so a paid checkout is completed and credited at once.

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `id` string, required
  - `amountCents` integer, required: The price in US cents
  - `credits` integer, required: The credits it adds
  - `status` 'open' | 'completed' | 'expired', required
  - `provider` 'stripe' | 'dev', required
  - `processing` boolean: Open, with a payment on its way that hasn't arrived yet (a bank debit, say)
  - `runJobId` string, nullable: The whole-file job this purchase started, once paid
  - `runError` string, nullable: Why the purchase's run couldn't start (such as file_expired); the credits are kept
  - `savedFor` string, nullable: Paid without signing in: the email the credits are kept for, masked
  - `leftCents` integer, nullable: Paid without signing in, once its run is done: what the purchase left over, in US cents
  - `paidTotal` object, nullable: Once paid: what the buyer was charged, tax included, in the currency they paid in (null when the payment provider didn't say)
    - `amount` integer, required: In the currency's smallest unit, such as cents
    - `currency` string, required: ISO 4217, lowercase, such as usd or eur

## Other responses

- `default`: An error, with what went wrong and what to do next

---

[API](https://skmtc.dev/audo/apis/audo-api.md) · [All operations](https://skmtc.dev/audo/apis/audo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/audo/apis/audo-api/revisions/0800e93224eb?raw)
