m2pfintech
API LibraryPre Issuance

Get Forex Conversion Rate for Issuance

Retrieves the currency conversion rate for use during forex card issuance. The rate includes product-level markups and any applicable promotional discounts.

Response Fields

  • conversionRate: The effective rate applied to the transaction
  • netAmount: Total INR equivalent after applying the rate
  • conversionGst: GST on the currency conversion
  • discountAmount: Discount applied (if promotional rate active)

Note

Use this rate when populating the walletAmount array in the issuance request.

POST
/v1/forex/issuance/conversion-rate

Authorization

bearerAuth tenantId
AuthorizationBearer <token>

In: header

X-TENANT-ID<token>

In: header

Header Parameters

X-TENANT-ID*string

Your unique tenant identifier

Request Body

application/json

product*string

Product ID

business*string

Corporate/hierarchy ID

amount*number

Amount in foreign currency

fundMode*string
Value in"LOAD" | "RELOAD" | "Refund"
rateSubType*string
Value in"BUY" | "SELL"
walletName*string

Target currency code

discountRate?number

Discount on rate (decimal, 0.05 = 5%)

Response Body

application/json

application/json

curl -X POST "https://sandbox-api.m2pprepaid.com/prepaid/corporate/v1/forex/issuance/conversion-rate" \  -H "X-TENANT-ID: ACME_CORP" \  -H "Content-Type: application/json" \  -d '{    "product": "FRX001",    "business": "90009",    "amount": 500,    "fundMode": "LOAD",    "rateSubType": "BUY",    "walletName": "USD",    "discountRate": 0  }'
{
  "result": {
    "conversionRate": 84.95,
    "netAmount": 42475,
    "conversionGst": 125,
    "discountAmount": 0,
    "baseConversionRate": 84.5,
    "baseConvertedAmount": 42250,
    "valueOfSupply": 42250
  },
  "pagination": null
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Bad Request",
  "status": 400,
  "detail": "Unable to convert http message",
  "message": "error.http.400"
}