---
title: "Checkout"
method: POST
path: "/api/v1/payments/checkout"
tags: ["payments"]
---

# Checkout

`POST /api/v1/payments/checkout`

## Request

- Base URL: `https://duebuddy.work` (the document declares no server; this is the origin it was published from)
- URL: `https://duebuddy.work/api/v1/payments/checkout`
- Auth: none declared

## Request body

- CheckoutIn
  - `plan_code` string, required
  - `period` 'm' | 'y'
  - `payment_method` string, nullable
  - `market` string, nullable

## Response `200`

Successful Response

- CheckoutOut
  - `pay_url` string, required
  - `amount_rub` number, required
  - `subscription_id` integer, required
  - `amount` number, nullable
  - `currency` string, nullable

## Other responses

- `422`: Validation Error

---

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