---
title: "Create Paylink Invoice"
method: POST
path: "/api/v1/paylink/invoice"
tags: ["paylink"]
---

# Create Paylink Invoice

`POST /api/v1/paylink/invoice`

## 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/paylink/invoice`
- Auth: none declared
- TypeScript: <https://skmtc.dev/food24/apis/goodfood/docs/api/v1/paylink/invoice/post.ts> (a function with typed inputs; its response is checked against the schema)

Создать инвойс PayLink и вернуть ссылку на оплату.
Вызывается фронтендом при нажатии «Оплатить».

## Request body

- CreateInvoiceRequest
  - `order_id` string, required
  - `amount` integer, required
  - `description` string
  - `phone` string, nullable
  - `name` string, nullable
  - `customer_id` string, nullable
  - `location_id` string, nullable
  - `success_url` string, nullable
  - `failure_url` string, nullable
  - `items` InvoiceItem[]
    - `product_id` integer, required
    - `product_name` string, required
    - `product_sku` string, nullable
    - `quantity` integer, required
    - `price` number, required

## Response `200`

Successful Response

- CreateInvoiceResponse
  - `payment_url` string, required
  - `invoice_uid` string, 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)
