Skip to main content

Get balance by currency

Get available balance for a specific currency.

Definition​

URL
GET https://api-test.instarem.com:4803/api/v1/balance/currency/{currency}

Header Parameters​

ParametersDescriptionTypeRequired
authorizationauth tokenStringYes
content-typeThe Content-Type entity header is used to indicate the media type of the resource. Expected value is application/json.StringYes
X-CLIENT-IDUnique id for client generated by Nium, Required only in case of partner based model (E.g. 593feb7c7c52bb2357b2df6c).StringNo

Example Request​

curl --request get \\
--url "https://api-test.instarem.com:4803/api/v1/balance/currency/{currency}" \\

--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTgxMzQ4OTQsImRhdGEiOnsic3ViIjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWE1IiwiY2xpZW50IjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWExIn0sImlhdCI6MTQ5ODA0ODQ5NH0.pevwSDpk-JDNtVIpqFu_m0Xu1UnDVumrAYStcrxf8sM' \\
--header 'content-type: application/json' \\

Path Parameters​

ParametersDescriptionTypeRequired
currencyCurrency to retrieve available balance e.g: USD (3-letter ISO-4217 code)StringYes

Example Response​

[
{
"account_number": 101950173983,
"currency": "USD",
"balance": 50000,
"auto_bookfx_sequence": 5,
"active": true,
"default": true,
"label": "USD Currency"
}
]

Response Parameters​

ParametersDescriptionType
account_numberReturns 12 digit account number generated by Instarem.Number
currencyReturns currency (3-letter ISO-4217 code).String
balancereturns available balance of the accountNumber
auto_bookfx_sequence_If returns <> 0, this account is used for auto book fx, and it's priority is set accordingly.Number
activeReturns true if account is active otherwise falseBoolean
defaultreturns true if account is default otherwise falseBoolean
labelreturns label name as defined for accountString