Exchange rates

The system provides an API, which serves exchange rates.

Returns a converted amount.

get

Returns a converted amount to the specified currency formatted as a string.

Query parameters
amountanyOptional
  • The amount to convert (optional). Can be a number or string representation. Defaults to 1.
Default: 1
targetstring · enumRequired

Represents all currencies in the payment processing system.

Used to specify the currency of accounts, exchange rates, and transactions in the payment processing system.

It provides a controlled and standardized list of supported currencies for all transactions and balances in the payment processing system.

New currencies can be added to the payment processing system as additional members.

Possible values:
sourcestring · enumRequired

Represents all currencies in the payment processing system.

Used to specify the currency of accounts, exchange rates, and transactions in the payment processing system.

It provides a controlled and standardized list of supported currencies for all transactions and balances in the payment processing system.

New currencies can be added to the payment processing system as additional members.

Possible values:
directionstring · enumOptional
  • The direction to convert value. Defaults to toTarget.
Default: toTargetPossible values:
invoiceIdstringOptional
  • The invoice id for fixed invoices rates.
Responses
200
Ok
application/json
get
GET /api/v2/exchange/rate HTTP/1.1
Host: api.xgateway.tech
Accept: */*
{
  "data": "0.00001668",
  "success": true
}

Last updated