> For the complete documentation index, see [llms.txt](https://docs.lemanpay.net/payment-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lemanpay.net/payment-api/documentation/api-overview.md).

# API Overview

Docs: <https://publicoffice.lemanpay.net/>&#x20;

<figure><img src="https://206635882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5vcuN4XkkpKzwidKsGCe%2Fuploads%2F0SRVicXPmUWhp6lrU7WZ%2F%D0%94%D0%B8%D0%B0%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0%20%D0%B1%D0%B5%D0%B7%20%D0%BD%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F%20(4).png?alt=media&amp;token=6e17cd02-8bcf-455d-9653-40096ae333c8" alt=""><figcaption></figcaption></figure>

1. Call [Create payment session](/payment-api/rest-api/payment.md) API method to create an order in the LemanPay system.
2. LemanPay checks if the order is valid.

   2a. If the order is valid, responds with 200 HTTP status and returns order data. After receiving 200 HTTP status, you should redirect the shopper to ***paymentUrl*** address.

   2b. If the order is not valid,  returns 422 (or another) error HTTP status and an error message (see [Errors](/payment-api/documentation/errors.md))
3. When the shopper pays for the order, Payment system sends Payment Callback/Payment Notification to your ***callbackUrl***, which is defined when creating the order . Payment system also sends Payment Callback when order status is changed to canceled, expired or to any other status. Please note that payment notifications are sent using **POST** method.

   ###

   <br>
