---
title: "Create Charge"
method: POST
path: "/checkout-v2"
---

# Create Charge

`POST /checkout-v2`

## Headers

- `RT-UDDOKTAPAY-API-KEY` string, required

## Request body

- object
  - `full_name` string, required — User's full name.
  - `email` string, required — User's email address.
  - `amount` string, required — The payment amount.
  - `metadata` string, json, required — Additional project-specific data in JSON format. For example: { "order_id": "10", "product_id": "5"}
  - `redirect_url` string, required — The URL where the user will be redirected after a successful payment. Additionally, an `invoice_id` will be sent via POST data, which you must validate using the Verify Payment API.
  - `return_type` string, required — Specifies how the `invoice_id` is returned to the success page. It can be either "GET" or "POST."
  - `cancel_url` string, required — The URL where the user will be redirected when they click the cancel button during the payment process.
  - `webhook_url` string — A backend response URL where payment information is sent when an admin initiates a "SEND WEBHOOK REQUEST" from the admin panel.

## Response `200`

200

- object

## Other responses

- `400` — 400

---

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