API Explorer

v5.1.0 (267 APIs)

Bank
Accounts
Views
Counterparties
Transactions

创建效果图

为银行创建或更新Fx。

例:

“ from_currency_code”:“ EUR”,
“ to_currency_code”:“ USD”,
“ conversion_value”:1.136305,
“ inverse_conversion_value”:1 / 1.136305 = 0.8800454103431737,

因此1欧元= 1.136305美元

1美元= 0.8800欧元

身份验证是强制性的

Typical Successful Response:

								
									
{ "bank_id":"GENODEM1GLS", "from_currency_code":"EUR", "to_currency_code":"USD", "conversion_value":1.136305, "inverse_conversion_value":0.8800454103431737, "effective_date":"2017-09-18T22:00:00Z" }
Required Roles:
  • CanCreateFxRate - Please login to request this Role
  • CanCreateFxRateAtAnyBank - Please login to request this Role
Validations:
  • Required JSON Validation: No
  • Allowed Authentication Types: Not set
Possible Errors:
  • OBP-20001: User not logged in. Authentication is required!
  • OBP-30001: Bank not found. Please specify a valid value for BANK_ID.
  • OBP-20006: User is missing one or more roles:
  • OBP-50000: Unknown Error.
Connector Methods:
Version: OBPv2.2.0, function_name: by createFx, operation_id: OBPv2.2.0-createFx Tags: FX,

获取当前的FxRate

获取由BANK_ID,FROM_CURRENCY_CODE和TO_CURRENCY_CODE指定的最新汇率

OBP可能会根据运行中的连接器尝试不同的FX汇率信息源。

例如,我们要转换EUR => USD:

OBP将:
第一次尝试-连接器(数据库,核心银行系统或外部FX服务)
第2部分-第1部分-fallbackexchangerates / eur.json
第2次尝试第2部分-fallbackexchangerates / usd.json(使用反速率)
第三次尝试-外汇汇率的硬编码地图。

外汇流量

Typical Successful Response:

								
									
{ "bank_id":"GENODEM1GLS", "from_currency_code":"EUR", "to_currency_code":"GBP", "conversion_value":1.001, "inverse_conversion_value":0.998, "effective_date":"2017-09-18T22:00:00Z" }
Validations:
  • Required JSON Validation: No
  • Allowed Authentication Types: Not set
Possible Errors:
  • OBP-10003: Invalid Currency Value. It should be three letters ISO Currency Code.
  • OBP-20001: User not logged in. Authentication is required!
  • OBP-10004: ISO Currency code combination not supported for FX. Please modify the FROM_CURRENCY_CODE or TO_CURRENCY_CODE.
  • OBP-50000: Unknown Error.
Connector Methods:
Version: OBPv2.2.0, function_name: by getCurrentFxRate, operation_id: OBPv2.2.0-getCurrentFxRate Tags: FX, New-Style,