---
title: "Register Paylink Order"
method: POST
path: "/api/v1/paylink/order"
tags: ["paylink"]
---

# Register Paylink Order

`POST /api/v1/paylink/order`

## 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/order`
- Auth: none declared

Зарегистрировать заказ до оплаты через JS SDK PayLink.
В SDK-флоу инвойс создаёт сам виджет (по публичному токену), поэтому
invoice uid на этом этапе неизвестен — Payment создаётся с txn_id=order_id,
а callback привяжет invoiceUid по trackingId.

## 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

- unknown

## 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)
