1. Inquiry Reguler
Hostname |
https://api.bni.co.id |
Port |
443 |
HTTP Method |
GET
|
Path |
/rate/reg/{currency} |
HTTP Headers
Name |
Format |
Mandatory |
Description |
Content-Type |
application/json |
Yes
|
|
|
Query string parameters
Name |
Format |
Mandatory |
Description |
access_token |
String |
Yes
|
Token provided from gettoken request |
|
Format |
JSON |
Authentication |
OAuth 2.0 (client credential) |
Request Definition
Field |
Data Type |
Mandatory |
Description |
currency |
String |
Yes
|
• Currency Must be Uppercase (ext. CHF)
• No spasi (ext. ../CHF?access_token)
• currency can be changed with another currency (ext. USD) |
|
Response Definition
Name |
Type |
Description |
buyRate |
String |
|
sellRate |
String |
|
|
Response (error) |
See Response Code
|
https://{BNIServer}:{port}/rate/reg/{currency}?access_token={access_token}
2. Inquiry Non Reguler
Hostname |
https://api.bni.co.id |
Port |
443 |
HTTP Method |
GET
|
Path |
/rate/nonreg/{currency} |
HTTP Headers
Name |
Format |
Mandatory |
Description |
Content-Type |
application/json |
Yes
|
|
|
Query string parameters
Name |
Format |
Mandatory |
Description |
access_token |
String |
Yes
|
Token provided from gettoken request |
|
Format |
JSON |
Authentication |
OAuth 2.0 (client credential) |
Request Definition
Field |
Data Type |
Mandatory |
Description |
currency |
String |
Yes
|
• Currency Must be Uppercase (ext. CHF)
• No spasi (ext. ../CHF?access_token)
• currency can be changed with another currency (ext. USD) |
|
Response Definition
Name |
Type |
Description |
buyRate |
String |
|
sellRate |
String |
|
|
Response (error) |
See Response Code
|
https://{BNIServer}:{port}/rate/nonreg/{currency}?access_token={access_token}