Skip to content

Create an LRS quote

Request

Creates a quote for an LRS remittance (resource: payin) or an LRS withdrawal (resource: payout). Use it to show the customer the exchange rate, the GST and the converted amount before they proceed. Payout quotes expire 30 minutes after they are created; for a payin quote, rely on the returned expires_at.

This is not the same endpoint as POST /quotes (createQuote). To create an LRS order, pass the payin quote's id as lrs.lrs_quote_id on POST /orders, with currency set to USD and amount equal to the USD side of the quote: from.amount when source_currency is USD, to.amount when it is INR.

For a payin quote, bank_code is required and must be a bank enabled for your account (see GET /lrs/banks). Either direction between INR and USD is supported. For a payout quote, only USD to INR is supported and bank_code must not be sent. LRS must be enabled for your account.

Security
JWT
Bodyapplication/jsonrequired
resourcestring

What the quote prices.

  • payin — an LRS remittance from a resident Indian customer. Requires bank_code.
  • payout — a withdrawal back to the customer in India. Only USD to INR is supported, and bank_code must not be sent.
Default:"payin"
Enum:"payin""payout"
Example:"payin"
bank_codestring

Code of the customer's bank, as returned by GET /lrs/banks. Required when resource is payin, and the bank must be enabled for your account. Rejected when resource is payout.

Example:"hdfc"
source_amountintegerrequired

The amount to convert, in the smallest unit of source_currency (paisa for INR, cents for USD). 4400000 is ₹44,000.00 when source_currency is INR. Must be a whole number; a string of digits such as "4400000" is also accepted. Send a positive integer; an optional leading sign is accepted. A decimal or an exponent is rejected with 400. On a payin quote, the amount must fall within the minimum and maximum set for the bank, otherwise the request is rejected with 400 and the message states the limit.

Example:4400000
source_currencystring, (iso-4217)required

The currency of source_amount. Must differ from target_currency.

Enum:"INR""USD"
Example:"INR"
target_currencystring, (iso-4217)required

The currency to convert into. Must differ from source_currency.

Enum:"INR""USD"
Example:"USD"
curl -i -X POST \
  https://api.glomopay.com/api/v1/lrs/quotes \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "bank_code": "hdfc",
    "source_amount": 4400000,
    "source_currency": "INR",
    "target_currency": "USD"
  }'

Responses

Quote created

Bodyapplication/json
idstringread-only

Unique identifier of the quote. Pass it as lrs.lrs_quote_id on an LRS order.

Example:"quote_6ab60de4Kx7Pq"
fromobjectread-only

The amount the quote converts from: your source_amount and source_currency.

toobjectread-only

The amount the quote converts to, in target_currency.

  • INR to USD payin quote: GST is deducted from from.amount before conversion, so to.amount is the USD remitted.
  • USD to INR payin quote: to.amount is the INR equivalent of from.amount, plus any transaction fee charged to the customer, with GST added.
  • Payout quote: to.amount is the INR the customer receives after fees and GST are deducted.

On a payin quote, the side in USD is the amount an LRS order must be created for.

fx_ratestringread-only

The exchange rate applied to the quote, as a decimal string in INR per 1 USD. It is expressed this way whichever direction the quote converts.

Example:"84.85"
bank_codestringread-only

The bank_code the quote was created for. Present on payin quotes only.

Example:"hdfc"
total_taxintegerread-only

GST on the conversion, in paisa, whichever direction the quote converts. 7906 is ₹79.06.

Example:7906
expires_atstring, (date-time)read-only

When the quote expires, as an ISO 8601 date-time in UTC. Payout quotes expire 30 minutes after created_at. For payin quotes, rely on this value rather than a fixed duration. An LRS order created from the quote expires at the same time, and an order cannot be created from an expired quote.

Example:"2026-09-25T06:30:04.113Z"
created_atstring, (date-time)read-only

When the quote was created, as an ISO 8601 date-time in UTC.

Example:"2026-09-25T06:00:04.113Z"
Response
{ "id": "quote_6ab60de4Kx7Pq", "from": { "amount": 4400000, "currency": "INR" }, "to": { "amount": 51763, "currency": "USD" }, "fx_rate": "84.85", "bank_code": "hdfc", "total_tax": 7906, "expires_at": "2026-09-25T06:30:04.113Z", "created_at": "2026-09-25T06:00:04.113Z" }