---
title: "Record Payment"
method: POST
path: "/api/v1/courses/{course_id}/students/{student_id}/payments"
tags: ["api", "api", "courses"]
---

# Record Payment

`POST /api/v1/courses/{course_id}/students/{student_id}/payments`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/courses/{course_id}/students/{student_id}/payments`
- Auth: HTTP bearer

## Path parameters

- `course_id` string, required
- `student_id` string, required

## Request body

- PaymentCreate
  - `amount` integer, required: To'lov summasi (so'm), > 0

## Response `200`

Successful Response

- CourseStudent
  - `id` string, required
  - `full_name` string, required
  - `email` string, nullable
  - `phone` string, nullable
  - `avatar_url` string, nullable
  - `mastery_percent` integer
  - `has_debt` boolean
  - `status` 'request' | 'student' | 'teacher' | 'supportTeacher' | 'parent' | 'staff' | 'spam': Kurs o'quvchisining roli/holati (COURSES_API.md §3).
  - `subscription` 'active' | 'trial' | 'debtor' | 'expired': Kurs o'quvchisining obuna (reja) holati (COURSES_API.md §3).
  - `group_id` string, nullable
  - `is_course_admin` boolean
  - `parent_of` string, nullable
  - `rank` integer, nullable
  - `contacts` StudentContact[]
    - `relation` string, required
    - `phone` string, required
  - `payments` LessonPayment[]
    - `lesson` integer, required
    - `due` integer, required
    - `paid` integer, required
  - `phone_verification_status` string, nullable
  - `enrolled_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
