Create xs2a.risk object
Changed onCreate a xs2a.risk object and receive a wizard session key in return.
Please Note: In the following documentation of the request body, all available risk checks are defined. It is important to note that they are optional, and that you simply submit the risk check you need. You can find a more detailed explanation of the risk checks here.
Important Note: Using the request sample, can only be performed if all code sections are fully expanded.
Request
- Base URLhttps://api.xs2a.com/v1
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"bank_code": 88888888,
"country_id": "DE",
"iban": "DE62888888880012345678",
"bic": "TESTDE88XXX",
"check_amount": 100.45,
"check_currency_id": "EUR",
"metadata": {
"key1": "value1"
},
"easy_onboarding": {
"success_link": "https://www.xs2a.com/success",
"abort_link": "https://www.xs2a.com/abort"
},
"language": "de",
"xs2a_account_characteristics_check": {},
"xs2a_account_linked_offers_check": {},
"xs2a_account_snapshot": {
"days": 365,
"from": "YYYY-MM-DD",
"to": "YYYY-MM-DD",
"all_accounts": true,
"all_tags": true
},
"xs2a_account_status_check": {
"limit_turnover_days": 365,
"all_accounts": true
},
"xs2a_age_verification_check": {},
"xs2a_all_accounts_check": {},
"xs2a_balance_check": {
"check_amount": 100,
"check_currency_id": "EUR"
},
"xs2a_balance_overview": {},
"xs2a_cashflow_overview": {},
"xs2a_chargeback_check": {},
"xs2a_children_check": {},
"xs2a_collection_check": {
"check_amount": 100,
"check_currency_id": "EUR"
},
"xs2a_credit_check": {
"checks": [
"income"
]
},
"xs2a_direct_debit_check": {
"check_amount": 100,
"check_currency_id": "EUR",
"start_date": "2014-03-23",
"end_date": "2014-03-31"
},
"xs2a_fact_sheet_lists": {
"limit_turnover_days": 365,
"fields": [
{
"tags": [
"expenditure",
"banking-fees"
],
"categories": [
"K.8.2.1"
],
"name": "test",
"min_amount": -20,
"max_amount": -2
}
]
},
"xs2a_holder_identification_check": {
"expect_holders": [
{
"firstname": "Hartmuth",
"name": "Mustermann"
}
]
},
"xs2a_income_check": {
"limit_turnover_days": 365
},
"xs2a_insurance_contract_check": {
"days": 365
},
"xs2a_name_check": {
"name": "Mustermann",
"firstname": "Hartmut"
},
"xs2a_overdraft_limit_check": {},
"xs2a_profit_loss_check": {},
"xs2a_risk_calculations_check": {
"calculations": [
{
"tags": [
"transfer"
],
"categories": [
"K.1.1"
],
"functions": [
"sum",
"count",
"median",
"average",
"last",
"min",
"max",
"min_date",
"max_date",
"clean_sum",
"exists",
"sums_of_every_month",
"counts_of_every_month",
"median_of_all_month_sums",
"average_of_all_month_sums",
"min_of_all_month_sums",
"max_of_all_month_sums",
"distinct_counter_holders"
],
"name": "Example name",
"days": 180
}
]
},
"xs2a_seizure_check": {
"days": 90
},
"xs2a_standing_orders_check": {}
}Response
Request successfully processed
Example response
{
"wizard_session_key": "m5A65Cy2lwI1rOXxuvwU4MM47b4tDaV0ME9By6It",
"transaction": "10001-xv-LEz8-oct7"
}Changes
- breaking
removed the enum value
ESof the request property - breaking
removed the enum value
FRof the request property - breaking
removed the enum value
GBof the request property - breaking
removed the enum value
ITof the request property - breaking
removed the enum value
esof the request property - breaking
removed the enum value
frof the request property - breaking
removed the enum value
itof the request property - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- breaking