> 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/argentina-payouts/generate-quote.md).

# Generate Quote

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

## 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 is included in the header. |
| Authorization<mark style="color:red;">\*</mark> | String | the session token                      |

#### Request Body

| Name                                            | Type   | Description                                         |
| ----------------------------------------------- | ------ | --------------------------------------------------- |
| beneficiary<mark style="color:red;">\*</mark>   | String | recipient name                                      |
| currency<mark style="color:red;">\*</mark>      | String | must be "ars"                                       |
| countryCode<mark style="color:red;">\*</mark>   | String | must be "ARG"                                       |
| accountType<mark style="color:red;">\*</mark>   | String | One of "CBU", "CVU" or "ALIAS"                      |
| accountNumber<mark style="color:red;">\*</mark> | String | bank account number or mobile wallet account number |
| amountSats<mark style="color:red;">\*</mark>    | String | amount of satoshi to send                           |

{% tabs %}
{% tab title="200: OK A successful response will just contain the id of the transaction" %}

```
{
    quoteId: String,
    lnInvoice: String, 
    btcRate: double, // btc/ars rate at the moment
    recipientReceives:{
        amount: double,
        currency: String
    }
}
```

{% endtab %}
{% endtabs %}
