> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing API: Plan, Credits and Payment State

> Read an organization's plan, how much of it is used, and any payment problem, and link an AWS Marketplace purchase. Cloud only.

On OneCLI Cloud an organization has a plan with a monthly number of credits. One request that uses a credential costs one credit.

Use these endpoints to read the plan, its usage and a payment problem. They exist on OneCLI Cloud only.

## Related guides

* [Editions: what OneCLI Cloud adds](/docs/api-reference/editions.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Link an AWS Marketplace purchase](/docs/api-reference/billing/link-an-aws-marketplace-purchase.md) | `POST /v2/billing/aws-marketplace/registrations` | Links an AWS Marketplace subscription to this organization with its registration token. |
| [Read a payment problem](/docs/api-reference/billing/read-a-payment-problem.md) | `GET /v2/billing/payment-issue` | A failed renewal, or a plan that ended for non-payment, with where to pay. |
| [Read the plan's usage](/docs/api-reference/billing/read-the-plans-usage.md) | `GET /v2/billing/quota` | What the organization uses of its plan: resources and credits. |
| [Read the subscription](/docs/api-reference/billing/read-the-subscription.md) | `GET /v2/billing/subscription` | The organization's plan, and when it renews. |

## Next steps

* [API overview](/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](/docs/api-reference/errors.md): status codes and the error format
* [Editions](/docs/api-reference/editions.md): which endpoints each edition serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.