# Creating a payment request

Payment requests are created based on an amount in pesos and contain information about the exchange rate of the order in each available currency for making the payment. To initiate a payment, it is necessary to first create the payment request.

The route for creating them receives an amount in pesos and the accepted currencies, and the backend calculates the exchange rate for each currency and stores it in the database. The SimpleFi system listens to the blockchains of all accepted currencies and updates payment requests when the corresponding payments are found.

To create a payment request:

{% openapi src="<https://api.simplefi.tech/openapi.json>" path="/payment\_requests" method="post" %}
<https://api.simplefi.tech/openapi.json>
{% endopenapi %}

* The 'reference' field can be used freely to create a reference for this payment request.
* The 'coins' attribute contains an array in the format `[{'ticker': 'USDC', 'chain_id': 10}, {...}]`, where the ticker of each currency you want to offer as an option must be specified. All indicated currencies that do not have a configured address in the Business will be ignored. The API will respond with quotes for all tokens that have a configured address in the business.
* The 'notification\_url' field is optional. It allows you to specify a different URL than the one configured in the business to receive notifications associated with this transaction.

### Obtaining the dynamic QR

It is possible to obtain a QR code linked to a specific payment request. This QR code redirects to the checkout, linking the payment with the order created in the SimpleFi system or the payment network system.

{% openapi src="<https://api.simplefi.tech/openapi.json>" path="/payment\_requests/qr" method="post" %}
<https://api.simplefi.tech/openapi.json>
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://muvinai.gitbook.io/docs/api-reference/creating-a-payment-request.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
