> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magicmealkits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Paymint

> Send and manage Paymint (결제선생) payment requests and AutoPay.

The Paymint group powers the **Paymint** Make.com app — send payment requests to payers,
read/cancel them, and manage AutoPay (recurring billing).

<Note>
  New to Paymint? Start with the **[Getting started guide](/guides/paymint/getting-started)** —
  sign up for 결제선생, pass the card-company review, and connect it to Magic Meal Kits.
</Note>

## Authentication

Send the MMK `X-API-KEY` plus your Paymint connection fields, which you set once on the
connection page in the Magic Meal Kits app (see [Authentication](/authentication)). Two
modes:

* **MMK mode** — send `X-Paymint-MMK-Mode: true` (optionally `X-Paymint-Member-ID` /
  `X-Paymint-Merchant-ID` to pick a specific license). Easiest; uses a license configured
  on your deployment.
* **Traditional mode** — send `X-Paymint-Host`, `X-Paymint-Api-Key`, `X-Paymint-Member-ID`,
  `X-Paymint-Merchant-ID`, `X-Paymint-Business-Number`.

<Note>
  The protected endpoints require a **Pro** or **Paymint-only** license — a Basic deployment
  gets `402` (upgrade required). On top of that, payment-sending calls (`request`, `resend`,
  `autopay/request`) **draw down your Paymint balance**, which also returns `402` when the
  balance is insufficient.
</Note>

## Endpoints

| Endpoint                            | Auth       | What it does                                       |
| ----------------------------------- | ---------- | -------------------------------------------------- |
| `GET /paymint/licenses`             | None       | List approved licenses (to pick a member/merchant) |
| `POST /paymint/format-phone-number` | None       | Normalize a phone number                           |
| `POST /paymint/request`             | Connection | Send a payment request (uses balance)              |
| `POST /paymint/read`                | Connection | Read a payment's status                            |
| `POST /paymint/cancel`              | Connection | Cancel a payment                                   |
| `POST /paymint/destroy`             | Connection | Permanently remove a payment                       |
| `POST /paymint/resend`              | Connection | Resend a payment request (uses balance)            |
| `POST /paymint/autopay/register`    | Connection | Register a payer for AutoPay                       |
| `POST /paymint/autopay/manage`      | Connection | Update an AutoPay method                           |
| `GET /paymint/autopay/methods`      | Connection | List a payer's AutoPay methods                     |
| `POST /paymint/autopay/request`     | Connection | Charge via AutoPay (uses balance)                  |
| `DELETE /paymint/autopay/delete`    | Connection | Delete an AutoPay method                           |

## Notes

* **Public helpers.** `licenses` and `format-phone-number` need no Paymint auth — handy for
  setup and input formatting.
* **Balance.** Top up your Paymint balance to keep `request` / `resend` / `autopay/request`
  working.
* **Callback.** Paymint posts payment status updates to a server-side `callback` endpoint;
  it's inbound from Paymint, not something you call.

Use the interactive playground to try a request with your own deployment host, API key, and
Paymint connection fields.
