# Create credit checkout

```http
POST /accounts/{account_id}/credits/checkouts
```

Start a Stripe checkout to buy a credit package for an account, or for the account that owns a project; returns the checkout URL. Requires account.billing.manage.

## Parameters

| Name         | In   | Required | Description |
| ------------ | ---- | -------- | ----------- |
| `account_id` | path | Yes      |             |

## Request body

| Field               | Type   | Required | Description                                                                                                                                             |
| ------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `package_id`        | string | Yes      |                                                                                                                                                         |
| `project_reference` | string |          | Project UUID or slug for an owner-pays top-up: the project owner’s wallet and effective price apply. Naming a project also requires project.read on it. |
| `success_url`       | string |          |                                                                                                                                                         |
| `cancel_url`        | string |          |                                                                                                                                                         |

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | Stripe checkout session for the credit package. |
| 400    | Bad request                                     |
| 401    | Unauthorized                                    |
| 403    | Forbidden                                       |
| 404    | Not found                                       |
| 409    | Conflict                                        |
| 500    | Server error                                    |
