> For the complete documentation index, see [llms.txt](https://relampago.gitbook.io/rayo-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://relampago.gitbook.io/rayo-apis/reference/rayo-instant-ln-payouts-to-latam/mexico-payouts/generate-quote.md).

# Generate Quote

Generates a quote that contains the LN Invoice and BTC/MXN rates that Relampago is using in that instant. The LN Invoice expires after 1 minute. On paying the invoice, the MXN payout is made.

## Generate a quote with a LN Invoice

<mark style="color:green;">`POST`</mark> `https://api.relampago.cash/quote`

#### Headers

| Name                                        | Type   | Description                                 |
| ------------------------------------------- | ------ | ------------------------------------------- |
| X-API-KEY<mark style="color:red;">\*</mark> | String | the api key must be specified in the header |
| Authorization                               | String | the session token                           |

#### Request Body

| Name                                              | Type   | Description                                  |
| ------------------------------------------------- | ------ | -------------------------------------------- |
| countryCode<mark style="color:red;">\*</mark>     | String | must be "MX"                                 |
| currency<mark style="color:red;">\*</mark>        | String | must be "mxn"                                |
| beneficiary<mark style="color:red;">\*</mark>     | String | recipient name                               |
| institutionName<mark style="color:red;">\*</mark> | String | recipient bank name                          |
| institutionCode<mark style="color:red;">\*</mark> | String | recipient bank code                          |
| method<mark style="color:red;">\*</mark>          | String | one of "clabe", "debitCard" or "phoneNumber" |
| clabe<mark style="color:red;">\*</mark>           | String | the 18- digit Mexican bank clabe             |
| amountSats<mark style="color:red;">\*</mark>      | String | number of satoshi to send                    |

{% tabs %}
{% tab title="200: OK Successful Response" %}

```
{
    quoteId: String,
    lnInvoice: String,
    btcRate: double,
    recipientReceives:{
        amount: double,
        currency: String
    }
}
```

{% endtab %}
{% endtabs %}
