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

# Go live

> Errors, the kinds of request you can make, and a checklist before your first real customer.

## Errors

`POST /send` answers `201` with the link, or one of these. Every error but `401` carries a JSON body with an `error` string.

| Status | What it means | What to do |
| - | - | - |
| `400` | The body was refused: an unknown field, both `amount` and `minAmount`, an amount with more than 2 decimals, a URL that isn’t `https`, an `expiresAt` in the past or more than a year ahead. `error` names the reason. | Fix the body. Retrying the same one won’t help. |
| `401` | The key is missing, malformed or unknown, or your account isn’t on the Business plan. No body, on purpose. | Check the key, then your plan. A revoked or rolled key also answers `401`. |
| `413` | The body is longer than 8 192 characters. | Shorten `concept` (500 bytes at most) or the URLs. |
| `429` | You made 100 requests in the last hour, or have 1 000 open links. | Wait `retryAfter` seconds (also the `Retry-After` header). Cancel links you no longer need. |
| `502` | A temporary failure on Pesso’s side. Nothing was created. | Retry with backoff. |

Call `https://api.pesso.xyz/send` with no trailing slash: `/send/` answers a `308` redirect instead of creating the request.

## Kinds of request

| You want | Send |
| - | - |
| An exact amount, paid once | `"amount": "25.00"` |
| At least an amount, the customer chooses | `"minAmount": "5"` — they type their amount on the pay screen. |
| A link paid by many people, like a donation or a tip jar | `"multiple": true` — each payment sends its own webhook with its own `paymentId`. |
| A deadline | `"expiresAt": "2027-06-30T23:59:59Z"` — at most 365 days ahead. The customer sees “Open until”, in their own time zone. |
| A way back if they don’t pay | `"cancelUrl"` — shown as “Cancel — back to your site”. |

To stop a link early, cancel it in **Your requests › Links**. Anyone who opens it is told it’s no longer active. Money already paid stays yours.

## Things that can happen

* **A single-use link is paid twice.** You get a second `payment.succeeded` with `data.duplicate: true`. Send the money back to `data.payerAddress` from your own Pesso account if you don’t want it.
* **Your customer wants their money back.** Pesso can’t reverse a payment. Send it back from your own Pesso account to `data.payerAddress`.
* **Your customer closes the page right after paying.** The payment is still on Base. Pesso matches it to your request and sends the webhook, but the first attempt can wait for the daily run.
* **Your customer comes back to your `successUrl` without paying.** Anyone can open that URL. Mark an order paid only from a verified webhook.
* **Your plan lapses.** New requests answer `401`, and webhooks for new payments are held until the plan is back on. Links you already made keep working, and payments still reach your account.

## Checklist

**1. Keep the key on your server**

Never in a browser, a mobile app or a repository. Roll it in **Your requests › API keys** if it leaks.

**2. Verify every webhook**

With the raw body and your `whsec_…` secret. Answer `400` when it fails. [Webhooks](https://docs.pesso.xyz/webhooks.md).

**3. Handle each payment once**

Store `data.paymentId`, ignore repeats, and decide what to do with `duplicate: true`.

**4. Fulfil on the webhook only**

Not on the customer reaching `successUrl`.

**5. Pay one real request**

`"0.01"`, from a second Pesso account of your own, and watch the webhook arrive and verify.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.