> 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/rest-api/payment.md).

# Payment

### Create payment session

Create order at LemanPay and redirect shopper to invoice (**payment url**).\
This is private API endpoint and requires authentication.

{% openapi src="/files/rxYDgMmTYejqVrjMHdGE" path="/v2/merchant/Owner/payment" method="post" %}
[swagger PS LP.json](https://206635882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5vcuN4XkkpKzwidKsGCe%2Fuploads%2FKWoEyQFQVdg0FCUoSmcg%2Fswagger%20PS%20LP.json?alt=media\&token=42cd3034-88c7-495b-a75f-c5a9567b04d5)
{% endopenapi %}

### Get order details

{% openapi src="/files/rxYDgMmTYejqVrjMHdGE" path="/v2/merchant/Currencies/order/{orderId}" method="get" %}
[swagger PS LP.json](https://206635882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5vcuN4XkkpKzwidKsGCe%2Fuploads%2FKWoEyQFQVdg0FCUoSmcg%2Fswagger%20PS%20LP.json?alt=media\&token=42cd3034-88c7-495b-a75f-c5a9567b04d5)
{% endopenapi %}

### Get orders list

{% openapi src="/files/rxYDgMmTYejqVrjMHdGE" path="/v2/merchant/Owner/orders/{orderId}" method="get" %}
[swagger PS LP.json](https://206635882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5vcuN4XkkpKzwidKsGCe%2Fuploads%2FKWoEyQFQVdg0FCUoSmcg%2Fswagger%20PS%20LP.json?alt=media\&token=42cd3034-88c7-495b-a75f-c5a9567b04d5)
{% endopenapi %}
