Skip to main content

Get Currencies

Return the list of currency pairs that Baokim can quote for the requesting Merchant. Only pairs that can be reliably quoted are returned.

We recommend calling this API at most once a day — the list of supported currencies changes very rarely.

Path

  • URL: /cb-core/api/v1/fx/get-currencies
  • Method: POST
  • Description: Get the list of supported currency pairs.

Request

Request table

ParamsData TypeRequiredDescription
request_idstring(50)YesUnique code that identifies the request. Suggested format: MerchantCode + BK + YYYYMMDD + UniqueId
request_timestring(19)YesTime the Merchant sends the request. Format: YYYY-MM-DD HH:MM:SS
merchant_codestring(20)YesMerchant code provided by Baokim before integration

Request Example

{
"request_id": "MERCHANT1234BK202606051",
"request_time": "2026-06-05 10:15:30",
"merchant_code": "MERCHANT1234"
}

Response

Response Table

ParamsData TypeRequiredDescription
response_codeint(4)YesResult code from Baokim, as per the Error Codes table
response_messagestring(200)YesDescription of the result code
merchant_codestring(20)YesMerchant code provided by Baokim before integration
dataArray of ObjectsYesList of supported currency pairs

Data Array Structure (inside data)

ParamsData TypeDescription
currency_pairstring(10)Currency pair in BASE/QUOTE format (e.g. USD/VND)
base_currencystring(10)Foreign currency code (e.g. USD)
quote_currencystring(10)Quote currency code (e.g. VND)
base_currency_namestring(50)Display name of the base currency
quote_currency_namestring(50)Display name of the quote currency

Response Example

{
"response_code": 200,
"response_message": "Success",
"merchant_code": "MERCHANT1234",
"data": [
{
"currency_pair": "USD/VND",
"base_currency": "USD",
"quote_currency": "VND",
"base_currency_name": "United States Dollar",
"quote_currency_name": "Vietnamese Dong"
},
{
"currency_pair": "CNY/VND",
"base_currency": "CNY",
"quote_currency": "VND",
"base_currency_name": "Chinese Yuan",
"quote_currency_name": "Vietnamese Dong"
}
]
}

Error Code

Response CodeResponse Message
200Success
101System Error
110Merchant Code Invalid
120Invalid Signature
422Validation Error
429Too Many Requests