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

# Create credit checkout

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

`veryfront__create_credit_checkout`

Requires account.billing.manage.

## Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

**Call type:** Can change resources.

## Arguments

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `package_id` | `string` | Yes | Provide the package id. Values: `"small"`, `"medium"`, `"large"`, `"xl"`. |
| `project_reference` | `string` | No | 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. Minimum length: `1`. |
| `success_url` | `string` | No | Provide the success url. Format: `uri`. |
| `cancel_url` | `string` | No | Provide the cancel url. Format: `uri`. |

## Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See [MCP client setup](https://veryfront.com/docs/cloud/getting-started/connect-mcp.md).

```json title="request.json" theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_credit_checkout",
    "arguments": {
      "package_id": "small"
    }
  }
}
```

## Result

The published output shape is summarized below. Inspect both the MCP response content and `isError` when handling a call.

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `status` | `string` | Yes | Lifecycle status for the returned record. Value: `"checkout_created"`. |
| `checkout_url` | `string` | Yes | The checkout url returned by the tool. Format: `uri`. |

## Full schemas

```json title="input-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "package_id": {
      "type": "string",
      "enum": [
        "small",
        "medium",
        "large",
        "xl"
      ],
      "description": "Provide the package id."
    },
    "project_reference": {
      "type": "string",
      "minLength": 1,
      "description": "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": {
      "type": "string",
      "format": "uri",
      "description": "Provide the success url."
    },
    "cancel_url": {
      "type": "string",
      "format": "uri",
      "description": "Provide the cancel url."
    }
  },
  "required": [
    "package_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the create_credit_checkout tool."
}
```

```json title="output-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "checkout_created",
      "description": "Lifecycle status for the returned record."
    },
    "checkout_url": {
      "type": "string",
      "format": "uri",
      "description": "The checkout url returned by the tool."
    }
  },
  "required": [
    "status",
    "checkout_url"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Structured result returned by the create_credit_checkout tool."
}
```

<details>
  <summary>Try this tool</summary>

  Replace sample arguments with values for your project or connected account. Calls run only when you select Run tool.

  MCP tool call

  Call `veryfront__create_credit_checkout` against the Veryfront MCP endpoint.

  Bearer token or API key

  Arguments (JSON)

  Run this tool with these arguments.

  Run tool

  Output JSON

  <pre />
</details>


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