Malaleem API

Malaleem API

Tool: create_payment_link

Create a hosted checkout session (a payment link) and return the same session object as `POST /api/v1/checkout` — `{id, url, status, amount, currency, expires_at, …}`; send the payer to `url`. Arguments: `idempotency_key` (string, required, max 255), `amount` (integer minor units, required), `currency` (ISO-4217, required), and optionally `reference`, `description`, `customer_email`, `customer_name`, `return_url`, `cancel_url`, `webhook_url`, `metadata` (object), `line_items` (array of `{name, qty, amount}`). Retrying with the same `idempotency_key` returns the same session; the same key with a different amount, currency or reference is refused.