-
Notifications
You must be signed in to change notification settings - Fork 442
SFC Code Examples
tawoe edited this page Sep 27, 2021
·
4 revisions
{
"id": "BANGANADERO", <- field 7 of rt1 (entity key)
"short_name": "BBVA Colombia", <- data dictionary: supervised entities
"full_name": "Banco Bilbao Vizcaya Argentaria Colombia S.A. podrá utilizar el nombre BBVA Colombia", <- data dictionary: supervised entities
"logo": null,
"website": null,
"bank_routings": [
{
"scheme": "OBP", <- scheme "OBP"
"address": "BANGANADERO"
}
],
"attributes": [
{
"name": "TAX_ID",
"value": "860003020-1" <- data dictionary: supervised entities
}
]
}
## Fee:
# Code examples
getBanks:
`curl --location --request GET 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks'`
getBank: (replace BANGANADERO with your BANK_ID)
`curl --location --request GET 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks/BANGANADERO'`
getProducts: (replace BANGANADERO with your BANK_ID)
`curl --location --request GET 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks/BANGANADERO/products'`
getProduct: (replace BANGANADERO, 1200 with your BANK_ID, PRODUCT_CODE)
`curl --location --request GET 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks/BANGANADERO/products/1200'`
getProductFees:
`curl --location --request GET 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks/BANGANADERO/products/1200/fees'`
createBank: ( replace YOURTOKEN)
`curl --location --request POST 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks' \
--header 'Content-Type: application/json' \
--header 'Authorization: DirectLogin token=YOURTOKEN' \
--data-raw '{
"id": "OBP_DEFAULT_BANK_ID",
"short_name": "obp",
"full_name": "obp",
"logo": "https://static.openbankproject.com/whatever",
"website": "https://www.openbankproject.com",
"bank_routings": [{
"scheme": "OBP",
"address": "OBP_DEFAULT_BANK"
}]
}
'`
create Product: ( replace YOURTOKEN, BANK_ID, PRODCUCT_CODE)
`curl --location --request PUT 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks/BANK_ID/products/PRODUCT_ID' \
--header 'Content-Type: application/json' \
--header 'Authorization: DirectLogin token=YOURTOKEN' \
--data-raw '{
"parent_product_code": "no-example-provided",
"name": "no-example-provided",
"more_info_url": "no-example-provided",
"terms_and_conditions_url": "no-example-provided",
"description": "no-example-provided",
"meta": {
"license": {
"id": "5",
"name": "TESOBE"
}
}
}'`
createFee ( replace YOURTOKEN, BANK_ID, PRODCUCT_CODE)
`curl --location --request POST 'https://ifcsandbox.openbankproject.com//obp/v4.0.0/banks/BANK_ID/products/PRODCUCT_CODE/fee' \
--header 'Content-Type: application/json' \
--header 'Authorization: DirectLogin token=YOURTOKEN' \
--data-raw '{
"name": "ACCOUNT_MANAGEMENT_FEE",
"is_active": true,
"more_info": "for geneneric debit account",
"value": {
"currency": "COP",
"amount": "10.12",
"frequency": "MONTHLY",
"type": ""
}
}'`