Skip to main content
GET
Convert a positive amount with one currency-pair rate
Live Testing Guide: Before using Try it, create a Development project, then enter its Client ID and Client Secret. Configure the relevant provider for that project before sending the request.
This route returns the current pair rate, the parsed numeric amount, and conversion_result. AvraAPI calculates rate × amount and rounds the result to six decimal places.

API endpoint

GET

Request

curl

Response

Error codes

All failures use the standard AvraAPI error envelope. Keep the request_id when contacting support; see the REST API guide for the shared response format. amount is a path value, not a JSON body. It must be numeric and greater than zero. Invalid values, including 0 and negative numbers, return 422 with error.code: validation_failed and an error.details.amount message. To apply a CBSL rate type, replace {target} with LKR-SELL, LKR-BUY, or LKR-CBSL. See CBSL Rates for the three rate types, full request examples, and their response structure. The response is an application calculation, not a binding financial quote. Apply your own rounding, tax, pricing, and approval rules before using it in a customer-facing transaction.

Playground resources

The generated reference below lists this endpoint’s API standard details: request fields, authorizations, and response schema. The complete integration guide, request and response examples, and endpoint-specific error handling are above.

Authorizations

X-API-KEY
string
header
required

Your Development project's Client ID. Enter your own value in the Documentation Playground.

X-API-SECRET
string
header
required

Your Development project's Client Secret. Mintlify does not proxy these requests; the browser sends them directly to AvraAPI. Never enter a Production secret in the Documentation Playground.

Headers

X-ENV
enum<string>
default:development

Selects the Development credential environment. The Documentation Playground exposes Development values only; normal backend integrations may use their documented Production credentials outside this tool.

Available options:
dev,
development
Accept
string

Requests a JSON response where the selected operation supports JSON.

Example:

"application/json"

X-Privacy-Mode
boolean
default:false

Optional privacy override. Turn this on to request that AvraAPI suppress request-payload storage in observability logs for this request.

Example:

true

Path Parameters

base
string
required

An active three-letter currency code. Input is normalised to uppercase before it is checked against the active Currency code list.

Pattern: ^[A-Za-z]{3}$
Example:

"USD"

target
string
required

An active three-letter currency code, or one of LKR-SELL, LKR-BUY, and LKR-CBSL for a CBSL request.

Pattern: ^(?:[A-Za-z]{3}|LKR-(?:SELL|BUY|CBSL))$
Example:

"LKR"

amount
string
required

Numeric amount greater than zero.

Example:

"100.50"

Response

Current pair rate and calculated amount.

success
enum<boolean>
required
Available options:
true
request_id
string<uuid>
required

Include this value when contacting AvraAPI support.

data
object
required

Operation-specific result data.

Last modified on October 1, 2026