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

# Generate Quote

Generates a quote that contains the Lightning Invoice and BTC/COP rates that Relampago is using in that instant. The LN Invoice expires after 1 minute. On paying the invoice, the COP 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                                                 |
| ------------------------------------------------- | ------ | ----------------------------------------------------------- |
| name<mark style="color:red;">\*</mark>            | String | recipient name                                              |
| documentType<mark style="color:red;">\*</mark>    | String | type of id document ("Cedula" or  "NIT")                    |
| documentId<mark style="color:red;">\*</mark>      | String | the cedula or NIT                                           |
| currency<mark style="color:red;">\*</mark>        | String | must be "cop"                                               |
| countryCode<mark style="color:red;">\*</mark>     | String | must be "CO"                                                |
| accountType<mark style="color:red;">\*</mark>     | String | "Savings" or "Checking"                                     |
| accountNumber<mark style="color:red;">\*</mark>   | String | bank account number. For mobile wallets, its a phone number |
| lastName<mark style="color:red;">\*</mark>        | String | recipient's last name                                       |
| amountSats<mark style="color:red;">\*</mark>      | String | amount of satoshi to send                                   |
| institutionName<mark style="color:red;">\*</mark> | String | recipient bank/mobile wallet name                           |
| institutionCode<mark style="color:red;">\*</mark> | String |                                                             |

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

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

{% endtab %}
{% endtabs %}
