---
title: "Generate Quote"
method: POST
path: "/v1/client/transaction/generate-quote"
---

# Generate Quote

`POST /v1/client/transaction/generate-quote`

## Request

- Base URL: `https://uatclientapi-v2.stockal.com/client/v2`
- URL: `https://uatclientapi-v2.stockal.com/client/v2/v1/client/transaction/generate-quote`
- Auth: none required
- TypeScript: <https://skmtc.dev/stockal/apis/uat-client-api-v2/docs/v1/client/transaction/generate-quote/post.ts> (a function with typed inputs; its response is checked against the schema)

The Generate Quote API allows the user to Generate a quote for a transaction based on the Student and Beneficiary selected

## Headers

- `api-key` string, required
- `auth-key` string, required
- `userId` string, required

## Request body

- object
  - `inputCurrency` string, required: The currency in which the amount is collected from the application user.
  - `amount` string, required: The amount in the inputCurrency
  - `fromCurrency` string, required: Currency in which remittence is sent (Will always be INR, for LRS transactions)
  - `toCurrency` string, required: Currency in which remittence is received by the Beneficiary (Beneficiary's Currency)
  - `bankId` string, required: Remitter's bank ID
  - `beneBankId` string, required: Beneficiary's Bank ID
  - `studentId` string, required: ID of the student the remittence is being made for
  - `purposeId` string, required: Purpose Id from GET Purpose List API, as appropriate for the transaction quote is generated for
  - `haveEducationLoan` boolean: Flag to indicate the source of funds are from an Education loan (This impacts the docs to be collected and TCS on the transaction)

## Response `200`

200

- object
  - `status` integer
  - `message` string
  - `data` object
    - `transactionId` string
    - `amount` integer
    - `exType` string
    - `fromCurrency` string
    - `toCurreny` string
    - `exRate` number
    - `fees` integer
    - `otherCharges` integer
    - `expiry` string
    - `tcsAmt` integer
    - `gstAmt` integer
    - `totalBankCharges` integer
    - `totalAdditionalAmount` integer
    - `finalFromAmount` integer
    - `handlecharge` integer

## Other responses

- `500`: 500

---

[API](https://skmtc.dev/stockal/apis/uat-client-api-v2.md) - [All operations](https://skmtc.dev/stockal/apis/uat-client-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/stockal/apis/uat-client-api-v2/revisions/08e36bbbd3be?raw)
