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

# Purchase Credits

Create a checkout session to purchase additional platform credits. This endpoint is available across all plan tiers.

### Request

<ParamField header="X-Organization-Id" type="string" required>
  The unique identifier of the organization.
</ParamField>

<ParamField body="amount" type="integer" required>
  The dollar amount of credits to purchase (e.g., `10`, `50`, `100`, `250`, `500`).
</ParamField>

### Response

<ResponseField name="checkout_url" type="string">
  The URL to redirect the user to complete their payment via Dodo Payments.
</ResponseField>

<ResponseField name="session_id" type="string">
  The unique identifier of the checkout session.
</ResponseField>

<ResponseField name="credits_to_receive" type="integer">
  The number of credits that will be added to the balance upon successful payment.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "checkout_url": "https://checkout.dodopayments.com/pay/cs_abc123",
    "session_id": "cs_abc123",
    "credits_to_receive": 10000
  }
  ```
</ResponseExample>
