Accounts

 

Version: 1.0

Contents

Accounts consists of HTTP GET and POST methods that provide a list of accounts with their details, based on an identifier (Bci account or client number).
 

Security

Requires Bci Access authentication. To do this, you must follow the steps detailed in the Getting Started Guide.

 

Call Examples

Once the Authorization Token has been obtained, you can invoke the different operations:

 

POST /account

Obtains information on a particular account of a Bci client.

 

curl --location --request POST

'https://apiprogram.bci.cl/{api_environment}/v1/api-accounts/account' \

--header 'x-fapi-financial-id: 123456789' \

--header 'x-fapi-customer-last-logged-time: <string>' \

--header 'x-fapi-customer-ip-address: 10.20.30.40' \

--header 'x-fapi-interaction-id: <string>' \

--header 'Authorization: <string>' \

--header 'Content-Type: application/json' \

--data-raw '{

"AccountId": "<string>"

}'

Where:

  • {api_environment}: [sandbox | prod]
  • 'x-fapi-financial-id', is the ClientId that identifies your application.
  • 'Authorization', is the Authorization Token obtained from Bci Access.
  • 'AccountId', is the Bci customer's account identifier.

 

GET /

Obtains information on the accounts of a Bci client.
 

curl --location --request GET

'https://apiprogram.bci.cl/{api_environment}/v1/api-accounts/' \

--header 'x-fapi-financial-id: 123456789' \

--header 'x-fapi-customer-last-logged-time: <string>' \

--header 'x-fapi-customer-ip-address: 10.20.30.40' \

--header 'x-fapi-interaction-id: <string>' \

--header 'Authorization: <string>'


Where: 
  • -{api_environment}: [sandbox | prod]

    -'x-fapi-financial-id', is the ClientId that identifies your application.

    -'Authorization', is the Authorization Token obtained from Bci Access.

 

POST /balance

Obtains the balance of a particular account of a Bci client.
 

curl --location --request POST

'https://apiprogram.bci.cl/{api_environment}/v1/api-accounts/balance' \

--header 'x-fapi-financial-id: 123456789' \

--header 'x-fapi-customer-last-logged-time: <string>' \

--header 'x-fapi-customer-ip-address: 10.20.30.40' \

--header 'x-fapi-interaction-id: <string>' \

--header 'x-jws-signature: <string>' \

--header 'Authorization: <string>' \

--header 'Content-Type: application/json' \

--data-raw '{

"AccountId": "<string>"

}'

Where:

  • -{api_environment}: [sandbox | prod]
  • -'x-fapi-financial-id', is the ClientId that identifies your application.
  • -'Authorization', is the Authorization Token obtained from Bci Access.
  • -'AccountId', is the Bci customer's account identifier.

GET /balances

Obtains the balances of the accounts of a Bci client.
 

curl --location --request GET

'https://apiprogram.bci.cl/{api_environment}/v1/api-accounts/balances' \

--header 'x-fapi-financial-id: 123456789' \

--header 'x-fapi-customer-last-logged-time: <string>' \

--header 'x-fapi-customer-ip-address: 10.20.30.40' \

--header 'x-fapi-interaction-id: <string>' \

--header 'Authorization: <string>'


Where: 
  • {api_environment}: [sandbox | prod]
  • 'x-fapi-financial-id', is the ClientId that identifies your application.
  • 'Authorization', is the Authorization Token obtained from Bci Access.

 

Sandbox data

You can make the corresponding requests with the following information:
 

Key Value
AccountId 11111111
CustomerId  11111111-1
Password 111222
Scope accounts