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

# Create Checkout

> StateSet Voice API operation.

StateSet Voice API operation.

### Response

`object`

<ResponseField name="ok" type="boolean" required />

<ResponseField name="checkout_url" type="string" required>
  Stripe-hosted Checkout URL to redirect the customer to
</ResponseField>

### Status codes

| Code  | Meaning                                                                        |
| ----- | ------------------------------------------------------------------------------ |
| `200` | Stripe Checkout session created                                                |
| `404` | Billing disabled (Stripe not configured) or customer self-serve plane disabled |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.voice.stateset.com/api/v1/customer/billing/checkout' \
    --header "Authorization: Bearer $STATESET_VOICE_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "ok": true,
    "checkout_url": "string"
  }
  ```
</ResponseExample>
