---
title: "Api Create Setup"
method: POST
path: "/v1/billing/setup"
---

# Api Create Setup

`POST /v1/billing/setup`

## Request

- Base URL: `https://www.polytranslator.com/api`
- URL: `https://www.polytranslator.com/api/v1/billing/setup`
- Auth: HTTP bearer

## Request body

- ApiPaymentSetupRequest
  - `expected_user_id` string, uuid, nullable
  - `idempotency_key` string, uuid, required
  - `return_url` string, uri, required
  - `consent` boolean

## Response `200`

Successful Response

- ApiPaymentSetupResponse
  - `setup_id` string, uuid, required
  - `status` string, required
  - `checkout_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/polytranslator/apis/polytranslator-api.md) · [All operations](https://skmtc.dev/polytranslator/apis/polytranslator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/polytranslator/apis/polytranslator-api/revisions/744f2e6d5396?raw)
