---
title: "Generate Ninepay Payment Url"
method: POST
path: "/api/payment/ninepay/get-payment-url"
tags: ["Payment"]
---

# Generate Ninepay Payment Url

`POST /api/payment/ninepay/get-payment-url`

Get payment URL for NinePay.

## Request body

- PaymentCreateSchema — Schema for creating payment information.
  - `billing_type` integer, required — Billing type indicating the payment method or plan.
  - `subscription_time_type` 1 | 2, required
  - `lang` 'en' | 'vi', required
  - `currency` 'USD' | 'EUR' | 'GBP' | 'CNY' | 'JPY' | 'VND', required
  - `coupon_code` string, nullable — Optional coupon code for applying discounts.

## Response `200`

Successful Response

- HttpResponseSchema — HTTP Response Schema.
  - `message_code` integer, required — Numeric code indicating the type of message or response.
  - `message` string, required — Human-readable message providing additional context about the response.
  - `data` unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/versions/cbb37496f138/schema)
