# Cyan > Cyan lets an AI agent take a payment. A backend creates a payment link with one API call, and the customer pays in a checkout inside the chat or on a hosted page. The money goes to the business's own Stripe account. - The API has three endpoints under `/v1/payment-links`: create, retrieve and cancel. Each needs `Authorization: Bearer ` and is called from a server. - Creating a link needs an `Idempotency-Key` header. A retry with the same key and body returns the same link. - `amount` is an integer in the currency's smallest unit: `4950` is $49.50. Fields are snake_case. - The API key stays on the server. The chat page only gets a payment link's `url`, which it passes to `Cyan.mount`. - Widget callbacks run in the customer's browser. Check that a link's status is `paid` from the server before fulfilling an order. ## Documentation Sets - [Abridged documentation](https://docs.cyan.cash/llms-small.txt): a compact version of the documentation for Cyan, with non-essential content removed - [Complete documentation](https://docs.cyan.cash/llms-full.txt): the full documentation for Cyan ## Notes - The complete documentation includes all content from the official documentation - The content is automatically generated from the same source as the official documentation ## Optional - [OpenAPI spec](https://docs.cyan.cash/openapi.json): The API as an OpenAPI 3.1 document