---
title: "Create Refund"
method: POST
path: "/api/v1/kaspi-refunds/"
tags: ["kaspi-refunds"]
---

# Create Refund

`POST /api/v1/kaspi-refunds/`

## Request

- Base URL: `https://api.food24.kz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.food24.kz/api/v1/kaspi-refunds/`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/v1/auth/login`
- TypeScript: <https://skmtc.dev/food24/apis/goodfood/docs/api/v1/kaspi-refunds/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- RefundCreate
  - `order_id` string, required: Номер заказа (OrderId)
  - `return_amount` integer, required: Сумма возврата в тыйинах
  - `reason` string, required: Причина возврата

## Response `200`

Successful Response

- RefundInfo
  - `id` integer, required
  - `payment_id` integer, required
  - `original_payment_txn_id` string, required
  - `return_amount` integer, required
  - `refund_uid` string, required
  - `reason` string, required
  - `kaspi_request_id` string, nullable, required
  - `status_code` string, required
  - `error_code` integer, nullable, required
  - `error_message` string, nullable, required
  - `created_by` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_status_check` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/food24/apis/goodfood.md) - [All operations](https://skmtc.dev/food24/apis/goodfood/llms.txt) - [OpenAPI document](https://skmtc.dev/food24/apis/goodfood/revisions/f75c731597d3?raw)
