---
title: "New Endpoint"
method: POST
path: "/checkout"
---

# New Endpoint

`POST /checkout`

This is your first endpoint! Edit this page to start documenting your API.

## Headers

- `X-API-KEY` string, required

## Request body

- object
  - `fullname` string, required — Customer name
  - `email` string, required — Customer email
  - `metadata` object
  - `success_url` string, required — URL to redirect to on success
  - `cancel_url` string, required — URL to redirect to on cancel
  - `webhook_url` string — URL to call when payment is completed
  - `amount` string, required — Payment amount

## Response `200`

Successful response

---

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