---
title: "Create epay payment"
method: POST
path: "/api/v1/payments/epay/pay"
tags: ["Public Payments"]
---

# Create epay payment

`POST /api/v1/payments/epay/pay`

Generate epay form params for the given order. Frontend should POST the params to the returned URL.

## Request body

- object
  - `orderId` string, required — Order ID (UUID)
  - `paymentMethod` string, required — Payment method, e.g. "alipay" or "wxpay"

## Response `200`

Payment URL and form params

- object — Payment URL and form params
  - `success` boolean, required
  - `data` object, required
    - `url` string
    - `params` object

## Other responses

- `400` — Invalid order or payment params
- `503` — Epay not configured

---

[API](https://skmtc.dev/newapi/apis/qn-platform-api.md) · [All operations](https://skmtc.dev/newapi/apis/qn-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/newapi/qn-platform-api/revisions/d61f11e363ff/schema)
