Skip to content
tawoe edited this page Sep 22, 2021 · 14 revisions

Where does the data come from:

{ "product_fee_id": "6ab6659e-f234-4415-8e55-f2c8a77c5823", <- autogenerated at fee creation "name": "CUOTA_DE_ADMINISTRACIÓN", <- rt4 field 5 Código de la Unidad de Captura , field 6 (Código de la Subcuenta), mapped against F365 "is_active": false, <- rt4 field 4 (Código de la Columna) == 01, and field 8 (value) == 2 => false, else true "more_info": "", "value": { "currency": "COP", <- Default, USD if Código de la Columna == 03, some Captura/Subcuanta map to Format 365 Tabla2 (Unidades) Codigo == 1 "amount": "0.00", "frequency": null, <- mapping of Tabla2 Unidades, if Código de la Columna == 03 for some Captura/Subcuanta "type": null <- mapping of Tabla2 Unidades, if Código de la Columna == 03 for some Captura/Subcuanta } }

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": "" } }'

Clone this wiki locally