{"openapi":"3.0.0","info":{"title":"Leabank API","version":"2.0.0"},"tags":[{"name":"Spanish Loan Application (v2)","description":"OAuth2 authentication"},{"name":"Swedish Loan Application (v1)","description":"OAuth2 authentication"},{"name":"Swedish Credit Card Application (v1)","description":"OAuth2 authentication"},{"name":"Swedish Sales Finance Application (v1)","description":"OAuth2 authentication"},{"name":"Norwegian Loan Application (v1)","description":"OAuth2 authentication"},{"name":"Finnish Loan Application (v1)","description":"OAuth2 authentication"}],"servers":[{"url":"/api"}],"security":[{"keycloak":[]},{"bearerAuth":[]}],"paths":{"/v1/credit-card/se":{"post":{"summary":"Add a new Swedish credit card application","tags":["Swedish Credit Card Application (v1)"],"security":[{"keycloak":["credit-card:create:se"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwedishCreditCardRequestBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"}}}}}}}}},"/v1/credit-card/se/{applicationId}":{"delete":{"summary":"Delete or cancel a Swedish credit card application","tags":["Swedish Credit Card Application (v1)"],"security":[{"keycloak":["credit-card:delete:se"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/loan-application/se":{"post":{"summary":"Add a new Swedish loan application","tags":["Swedish Loan Application (v1)"],"security":[{"keycloak":["loan-application:create:se"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwedishLoanRequestBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"}}}}}}}}},"/v1/loan-application/se/{applicationId}/accept":{"post":{"summary":"Accept a Swedish loan offer","tags":["Swedish Loan Application (v1)"],"security":[{"keycloak":["loan-application:accept:se"]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"selectedOffer":{"type":"string","enum":["original","counter"],"description":"Type of offer the agent is accepting","example":"original","nullable":true}}}}}},"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/loan-application/se/{applicationId}":{"delete":{"summary":"Delete or cancel a Swedish loan application","tags":["Swedish Loan Application (v1)"],"security":[{"keycloak":["loan-application:delete:se"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/sales-finance/se":{"post":{"summary":"Add a new Swedish sales finance application","tags":["Swedish Sales Finance Application (v1)"],"security":[{"keycloak":["sales-finance:create:se"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwedishSalesFinanceRequestBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"}}}}}}}}},"/v1/sales-finance/se/{applicationId}/accept":{"post":{"summary":"Accept a Swedish loan offer","tags":["Swedish Sales Finance Application (v1)"],"security":[{"keycloak":["sales-finance:accept:se"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/sales-finance/se/{applicationId}/confirm":{"post":{"summary":"Confirm a Swedish loan offer","tags":["Swedish Sales Finance Application (v1)"],"security":[{"keycloak":["sales-finance:confirm:se"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/sales-finance/se/{applicationId}":{"delete":{"summary":"Delete or cancel a Swedish sales finance application","tags":["Swedish Sales Finance Application (v1)"],"security":[{"keycloak":["sales-finance:delete:se"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/sales-finance/se/{applicationId}/refund":{"post":{"summary":"Refund a Swedish sales finance application","tags":["Swedish Sales Finance Application (v1)"],"security":[{"keycloak":["sales-finance:refund:se"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwedishSalesFinanceRefund"}}}}}},"/v1/loan-application/no":{"post":{"summary":"Add a new Norwegian loan application","tags":["Norwegian Loan Application (v1)"],"security":[{"keycloak":["loan-application:create:no"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NorwegianLoanRequestBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"}}}}}}}}},"/v1/loan-application/no/{applicationId}/accept":{"post":{"summary":"Accept a Norwegian loan offer","tags":["Norwegian Loan Application (v1)"],"security":[{"keycloak":["loan-application:accept:no"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/loan-application/no/{applicationId}":{"delete":{"summary":"Delete or cancel a Norwegian loan application","tags":["Norwegian Loan Application (v1)"],"security":[{"keycloak":["loan-application:delete:no"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/loan-application/fi":{"post":{"summary":"Add a new Finnish loan application","tags":["Finnish Loan Application (v1)"],"security":[{"keycloak":["loan-application:create:fi"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinnishLoanRequestBody"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"}}}}}}}}},"/v1/loan-application/fi/{applicationId}/accept":{"post":{"summary":"Accept a Finnish loan offer","tags":["Finnish Loan Application (v1)"],"security":[{"keycloak":["loan-application:accept:fi"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v1/loan-application/fi/{applicationId}":{"delete":{"summary":"Delete or cancel a Finnish loan application","tags":["Finnish Loan Application (v1)"],"security":[{"keycloak":["loan-application:delete:fi"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v2/loan-application/es":{"post":{"summary":"Add a new Spanish loan application","tags":["Spanish Loan Application (v2)"],"security":[{"keycloak":["loan-application:create:es"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpanishLoanRequestBody"}}}}}},"/v2/loan-application/es/{applicationId}":{"delete":{"summary":"Delete or cancel a Spanish loan application","tags":["Spanish Loan Application (v2)"],"security":[{"keycloak":["loan-application:delete:es"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/v2/loanapplication/es/create-and-wait-status":{"post":{"summary":"Add a new Spanish loan application and wait for status","tags":["Spanish Loan Application (v2)"],"security":[{"keycloak":["loan-application:create:es"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid","example":"f647fb9a-9e77-4a9f-91dc-36fd90e0ba42"},"applicationStatus":{"type":"string","example":"approved","description":"Current status of application ('approved', 'declined', 'failed', etc.)"},"offer":{"type":"object","nullable":true,"description":"Loan offer details (null if not approved)","properties":{"product":{"type":"string","example":"LeabankLånet"},"approvedAmount":{"type":"number","example":1000},"duration":{"type":"integer","example":48},"internalRedemptionAmount":{"type":"number","example":0},"monthlyCost":{"type":"number","example":29.12},"offerValidUntil":{"type":"string","format":"date-time","example":"2025-02-11T09:13:55.498Z"},"signingLink":{"type":"string","example":"https://staging-firmar.leabank.es/e5db2abf-8206-499b-b155-16dcf506aaef"},"interestRate":{"type":"number","example":12},"effectiveInterestRate":{"type":"number","example":17.08},"setupFee":{"type":"number","example":30},"monthlyFee":{"type":"number","example":2},"invoiceFee":{"type":"number","example":0},"yearlyFee":{"type":"number","example":0},"quarterlyFee":{"type":"number","example":0},"refinanceRequirement":{"type":"boolean","example":false},"existingCustomer":{"type":"boolean","example":false},"installmentType":{"type":"string","example":"Annuity"},"secciUrl":{"type":"string","nullable":true,"description":"URL to the SECCI (Standard European Consumer Credit Information) document. Finland only; valid for the same period as the offer. Absent for other countries.","example":"https://leabankdocsprod.blob.core.windows.net/documents/FI/LOAN-123/secci.pdf"},"ppi":{"type":"boolean","example":false}}}}}}}}}}},"/v2/loan-application/es/{applicationId}/accept":{"post":{"summary":"Accept a Spanish loan offer","tags":["Spanish Loan Application (v2)"],"security":[{"keycloak":["loan-application:accept:es"]}],"parameters":[{"name":"applicationId","in":"path","required":true,"description":"The applicationId of the application","schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountNumber":{"type":"string","example":"ES9121000418450200051332"}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Enter JWT Bearer token only"},"keycloak":{"type":"openIdConnect","openIdConnectUrl":"https://oidc-kc.prod.quattro.stacc.dev/realms/agents-prod/.well-known/openid-configuration"}},"schemas":{"SwedishLoanRequestBody":{"type":"object","required":["application","applicant"],"properties":{"application":{"type":"object","properties":{"appliedAmount":{"type":"number"},"appliedCreditLimit":{"type":"number"},"appliedRepaymentTime":{"type":"number"},"appliedInterestRate":{"type":"number"},"agentName":{"type":"string"},"externalApplicationId":{"type":"string"},"purpose":{"type":"string","enum":["Car","Boat","Caravan","MC","OtherVehicle","BusinessLoan","Refinance","Consolidation","Renovation","Investment","MedicalExpenses","VacationTravelling","Wedding","Education","Invoices","Other"]},"refinanceAmount":{"type":"number"},"bankAccountNumber":{"type":"string"},"product":{"type":"string","enum":["Loans","CreditCards","SalesFinance"]},"additionalProduct":{"type":"string","enum":["Loans","CreditCards","SalesFinance"]},"ipAddress":{"type":"string"},"device_OS":{"type":"string"},"campaignId":{"type":"string"},"upsellConsent":{"type":"boolean"},"tomBlob":{"type":"string"},"redirectUrl":{"type":"string"},"extendedPayment":{"type":"object","required":["type","period"],"properties":{"type":{"type":"string","enum":["days","months","quarters","years"]},"period":{"type":"number"}}},"disableCustomerReminders":{"type":"boolean"}},"required":["appliedAmount","appliedRepaymentTime","purpose","refinanceAmount"]},"applicant":{"type":"object","properties":{"nationalId":{"type":"string"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"hasActiveCollectionCase":{"type":"boolean"},"hasPaymentRemark":{"type":"boolean"},"mobileNumber":{"type":"string"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"numberOfCardsInHousehold":{"type":"number"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}},"required":["nationalId","maritalStatus","mobileNumber","emailAddress","numberOfChildrenBelow18","dwelling","employment","expenses","income"]},"coapplicant":{"type":"object","properties":{"nationalId":{"type":"string"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"hasActiveCollectionCase":{"type":"boolean"},"hasPaymentRemark":{"type":"boolean"},"mobileNumber":{"type":"string"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"numberOfCardsInHousehold":{"type":"number"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}},"required":["nationalId","maritalStatus","mobileNumber","emailAddress","dwelling","employment","expenses","income"]},"purchase":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["Flight","Hotel","Ferry","CombinedTravel"]},"airlinename":{"type":"string"},"hotelname":{"type":"string"},"hotelcheckindate":{"type":"string","format":"date-time"},"traveldate":{"type":"string","format":"date-time"},"returntraveldate":{"type":"string","format":"date-time"},"destination":{"type":"string"},"incVAT":{"type":"boolean"},"travellernames":{"type":"array","items":{"type":"string"}},"billingaddress":{"type":"string"},"deliveryaddress":{"type":"string"},"orderdate":{"type":"string","format":"date-time"},"ordernumber":{"type":"string"}}}}}},"SwedishCreditCardRequestBody":{"type":"object","required":["application","applicant"],"properties":{"application":{"type":"object","properties":{"appliedAmount":{"type":"number"},"appliedCreditLimit":{"type":"number"},"appliedRepaymentTime":{"type":"number"},"appliedInterestRate":{"type":"number"},"agentName":{"type":"string"},"externalApplicationId":{"type":"string"},"purpose":{"type":"string","enum":["Car","Boat","Caravan","MC","OtherVehicle","BusinessLoan","Refinance","Consolidation","Renovation","Investment","MedicalExpenses","VacationTravelling","Wedding","Education","Invoices","Other"]},"refinanceAmount":{"type":"number"},"bankAccountNumber":{"type":"string"},"product":{"type":"string","enum":["Loans","CreditCards","SalesFinance"]},"additionalProduct":{"type":"string","enum":["Loans","CreditCards","SalesFinance"]},"ipAddress":{"type":"string"},"device_OS":{"type":"string"},"campaignId":{"type":"string"},"upsellConsent":{"type":"boolean"},"tomBlob":{"type":"string"},"redirectUrl":{"type":"string"},"extendedPayment":{"type":"object","required":["type","period"],"properties":{"type":{"type":"string","enum":["days","months","quarters","years"]},"period":{"type":"number"}}},"disableCustomerReminders":{"type":"boolean"}}},"applicant":{"$ref":"#/components/schemas/SwedishLoanRequestBody/properties/applicant"},"coapplicant":{"$ref":"#/components/schemas/SwedishLoanRequestBody/properties/coapplicant"},"purchase":{"type":"array","items":{"$ref":"#/components/schemas/SwedishLoanRequestBody/properties/purchase/items"}}}},"SwedishSalesFinanceRequestBody":{"type":"object","required":["applicant"],"properties":{"application":{"allOf":[{"type":"object","properties":{"appliedAmount":{"type":"number"},"appliedCreditLimit":{"type":"number"},"appliedRepaymentTime":{"type":"number"},"appliedInterestRate":{"type":"number"},"agentName":{"type":"string"},"externalApplicationId":{"type":"string"},"purpose":{"type":"string","enum":["Car","Boat","Caravan","MC","OtherVehicle","BusinessLoan","Refinance","Consolidation","Renovation","Investment","MedicalExpenses","VacationTravelling","Wedding","Education","Invoices","Other"]},"refinanceAmount":{"type":"number"},"bankAccountNumber":{"type":"string"},"product":{"type":"string","enum":["Loans","CreditCards","SalesFinance"]},"additionalProduct":{"type":"string","enum":["Loans","CreditCards","SalesFinance"]},"ipAddress":{"type":"string"},"device_OS":{"type":"string"},"campaignId":{"type":"string"},"upsellConsent":{"type":"boolean"},"tomBlob":{"type":"string"},"redirectUrl":{"type":"string"},"extendedPayment":{"type":"object","required":["type","period"],"properties":{"type":{"type":"string","enum":["days","months","quarters","years"]},"period":{"type":"number"}}},"disableCustomerReminders":{"type":"boolean"}}}],"required":["appliedAmount","appliedRepaymentTime"]},"applicant":{"allOf":[{"type":"object","properties":{"nationalId":{"type":"string"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"hasActiveCollectionCase":{"type":"boolean"},"hasPaymentRemark":{"type":"boolean"},"mobileNumber":{"type":"string"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"numberOfCardsInHousehold":{"type":"number"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}}}],"required":["nationalId","income","dwelling","numberOfChildrenBelow18","isPEP","employment"]},"coapplicant":{"allOf":[{"$ref":"#/components/schemas/SwedishSalesFinanceRequestBody/properties/applicant"}]},"purchase":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/SwedishLoanRequestBody/properties/purchase/items"}]}}}},"SwedishSalesFinanceRefund":{"type":"object","required":["amount","timeStamp"],"properties":{"amount":{"type":"number","example":1000,"description":"Amount to refund"},"timeStamp":{"type":"string","format":"date-time","example":"2025-02-11T09:13:55.498Z","description":"Time of the refund"}}},"FinnishLoanRequestBody":{"type":"object","required":["application","applicant"],"properties":{"application":{"type":"object","properties":{"appliedAmount":{"type":"number"},"appliedRepaymentTime":{"type":"number"},"appliedInterestRate":{"type":"number"},"agentName":{"type":"string"},"externalApplicationId":{"type":"string"},"customerIdentification":{"type":"string","enum":["None","Ftn","Mfa","Telephone","Campaign"]},"purpose":{"type":"string","enum":["Car","Boat","Caravan","MC","OtherVehicle","BusinessLoan","Refinance","Consolidation","Renovation","Investment","MedicalExpenses","VacationTravelling","Wedding","Education","Invoices","Other"]},"refinanceAmount":{"type":"number"},"bankAccountNumber":{"type":"string"},"product":{"type":"string","enum":["Loans"]},"ipAddress":{"type":"string"},"device_OS":{"type":"string"},"campaignId":{"type":"string"},"redirectUrl":{"type":"string"},"disableCustomerReminders":{"type":"boolean"}},"required":["appliedAmount","appliedRepaymentTime","purpose","refinanceAmount","customerIdentification"]},"applicant":{"type":"object","properties":{"nationalId":{"type":"string","description":"Finnish personal identity code (HETU), e.g. 131052-308T"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"mobileNumber":{"type":"string"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"numberOfCars":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}},"required":["nationalId","maritalStatus","mobileNumber","emailAddress","dwelling","employment","expenses","income"]},"coapplicant":{"type":"object","properties":{"nationalId":{"type":"string","description":"Finnish personal identity code (HETU), e.g. 131052-308T"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"mobileNumber":{"type":"string"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"numberOfCars":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}},"required":["nationalId","maritalStatus","mobileNumber","emailAddress","dwelling","employment","expenses","income"]}}},"NorwegianLoanRequestBody":{"type":"object","required":["application","applicant"],"properties":{"application":{"type":"object","properties":{"appliedAmount":{"type":"number"},"appliedRepaymentTime":{"type":"number"},"appliedInterestRate":{"type":"number"},"agentName":{"type":"string"},"externalApplicationId":{"type":"string"},"purpose":{"type":"string","enum":["Car","Boat","Caravan","MC","OtherVehicle","BusinessLoan","Refinance","Consolidation","Renovation","Investment","MedicalExpenses","VacationTravelling","Wedding","Education","Invoices","Other"]},"refinanceAmount":{"type":"number"},"bankAccountNumber":{"type":"string"},"product":{"type":"string","enum":["Loans"]},"ipAddress":{"type":"string"},"device_OS":{"type":"string"},"campaignId":{"type":"string"},"redirectUrl":{"type":"string"},"disableCustomerReminders":{"type":"boolean"}},"required":["appliedAmount","appliedRepaymentTime","purpose","refinanceAmount"]},"applicant":{"type":"object","properties":{"nationalId":{"type":"string","pattern":"^[0-9]{11}$","description":"Norwegian national identity number (fødselsnummer or D-number), 11 digits without separators, e.g. 15038512363"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"mobileNumber":{"type":"string","pattern":"^(\\+47|0047)?[49][0-9]{7}$","description":"Norwegian mobile number: 8 digits starting with 4 or 9, optionally prefixed with +47 or 0047, without spaces, e.g. +4791234567"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}},"required":["nationalId","maritalStatus","mobileNumber","emailAddress","dwelling","employment","expenses","income"]},"coapplicant":{"type":"object","properties":{"nationalId":{"type":"string","pattern":"^[0-9]{11}$","description":"Norwegian national identity number (fødselsnummer or D-number), 11 digits without separators, e.g. 15038512363"},"birthDate":{"type":"string","format":"date-time"},"firstName":{"type":"string"},"lastName":{"type":"string"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widower","Separated","CoHabiting"]},"mobileNumber":{"type":"string","pattern":"^(\\+47|0047)?[49][0-9]{7}$","description":"Norwegian mobile number: 8 digits starting with 4 or 9, optionally prefixed with +47 or 0047, without spaces, e.g. +4791234567"},"emailAddress":{"type":"string"},"isPEP":{"type":"boolean"},"numberOfChildrenBelow18":{"type":"number"},"educationLevel":{"type":"string","enum":["Bachelor","PrimarySchool","WorkEducation","Master","HighSchool"]},"preferredLanguage":{"type":"string"},"psd2Data":{"type":"string"},"dwelling":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["OwnHouse","OwnApartment","RentalApartment","HousingCooperative","LivingWithParents","CompanyHousing","Other"]},"startDate":{"type":"string","format":"date-time"}}},"employment":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Furlough","Pensioner","Incapacitated","FixedTermWorkContract","PermanentEmployment","Entrepreneur","Other","Student","Unemployed","WorkAssessmentAllowance","StayAtHome"]},"percentage":{"type":"number"},"employer":{"type":"string"},"position":{"type":"string"},"level":{"type":"string","enum":["Employee","PublicServant","IntermediateManager","Manager"]},"startDate":{"type":"string","format":"date-time"}}},"expenses":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["RentalCost","Alimony","CarLeasing","HousingExpenses","OtherExpenses"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"income":{"type":"array","items":{"type":"object","required":["amount","type","period"],"properties":{"amount":{"type":"number"},"type":{"type":"string","enum":["GrossIncome","NetIncome","PartnerGrossIncome","RentalIncome","InsuranceIncome","AlimonyIncome","GrossHouseholdIncome","OtherIncome"]},"period":{"type":"string","enum":["monthly","quarterly","yearly"]}}}},"citizenships":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"}}}},"debts":{"type":"array","items":{"type":"object","required":["debtType","redeem"],"properties":{"debtType":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"bankName":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"redeem":{"type":"boolean"},"interestRate":{"type":"number"},"creditLimit":{"type":"number"},"bankAccountNumber":{"type":"string"},"cid":{"type":"string"},"percentageResponsible":{"type":"number"}}}}},"required":["nationalId","maritalStatus","mobileNumber","emailAddress","dwelling","employment","expenses","income"]}}},"SpanishLoanRequestBody":{"type":"object","additionalProperties":false,"properties":{"externalApplicationId":{"type":"string","example":"ABC-123","description":"The agent's own unique application id, chosen by the agent. Any string, dependent on the agent, e.g. 551e5c5e-59fd-4150-bd54-f0625e396d16, ABC-123-X15 or 19283764"},"product":{"type":"string","example":"LeaBankLoan","description":"The product applied for"},"appliedAmount":{"type":"number","example":16000,"description":"The loan amount"},"appliedInterestRate":{"type":"number","example":5.5,"description":"The interest rate of the loan, if applicable"},"creditDecision":{"type":"string","enum":["standard","simplified"],"example":"simplified","description":"This credit decision is used for Wanna applications. If not provided, the default credit decision will be used"},"refinanceAmount":{"type":"number","example":10000,"description":"The amount to use for refinancing/redeeming other loans"},"repaymentPeriod":{"type":"number","example":60,"description":"Repayment period/duration of the loan, in months."},"ipAddress":{"type":"string","example":"62.97.191.112","description":"The IP address of the applicant"},"issuer":{"type":"string"},"agentId":{"type":"string"},"campaignId":{"type":"string"},"applicant":{"type":"object","additionalProperties":false,"description":"Spanish Applicant","properties":{"nationalId":{"type":"string","description":"The applicant's Spanish national Id DNI/NIE. DNI: (Documento Nacional de Identidad) This is the ID number for Spanish citizens NIE: (Número de Identificación de Extranjero) This is identification number in Spain for everyone who is not a Spanish citizen"},"firstName":{"type":"string","example":"Pedro"},"lastName":{"type":"string","example":"Sanchez"},"employment":{"type":"object","additionalProperties":false,"description":"Spanish applicant's employment","properties":{"percentage":{"type":"number","example":78.5,"description":"The applicant's employment percentage, if applicable"},"employer":{"type":"string","example":"Lechmere muebles e interior","description":"The applicant's employer"},"employerPhoneNum":{"type":"string","example":"4712345678","description":"Phone number of the employer (if applicable)"},"position":{"type":"string","example":"Manager","description":"The applicant's position"},"startDate":{"type":"string","format":"date-time","example":"2019-01-01","description":"The applicant's employment start date"},"type":{"type":"string","enum":["SelfEmployed","PrivateSector","PublicSector","Intership","Internship","Student","Retired","Investments","Unemployed"],"description":"The applicant's employment type/status"},"contractType":{"type":"string","enum":["Indefinitive","TemporaryEmployment","Workservices","Undefined"],"description":"The applicant's Type of contract"},"workPhone":{"type":"string","description":"The applicant's work phone"},"companyName":{"type":"string","description":"The applicant's company name"},"pensionType":{"type":"string","enum":["None","Retirement","Invalidity","AbsoluteInvalidity","TemporaryInvalidity","Other"],"description":"The applicant's Type of pension"},"fromYear":{"type":"number","description":"The applicant's year started working"},"toYear":{"type":"number","description":"The applicant's year stopped working"},"professionType":{"type":"string","enum":["Lawyer_Judge_Notary","Farmer_LiveStock","Administrative","Analyst_Finance_Marketing","Architect","Commercial","Consultant_Advisor","Accountant","Executive","Housekeeper","Personnel_Manager","Hotel_Restaurant","ComputerScience_Mathematician","Engineer","Middle_Manager","Doctor_And_HealthProfessions","Operator","Police_Military_Firefighter_CivilGuard","Politician","Professional_Education","Technician","Driver","Salesman","Security","Other"],"description":"Profession enumeration"}},"required":["type","contractType","fromYear"]},"mobileNumber":{"type":"string","example":"+3412345678","description":"The applicant's mobile phone number, including international prefix."},"secondMobileNumber":{"type":"string","example":"+3412345678","description":"The applicant's second mobile phone number, including international prefix."},"emailAddress":{"type":"string","description":"The applicant's email address"},"gender":{"type":"string","enum":["Male","Female","NotSet"],"description":"Gender of the applicant"},"birthDate":{"type":"string","description":"The applicant's birth date","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$"},"citizenships":{"type":"array","items":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW","OtherThanAppliedCountry","Unknown"]}},"numberOfYearsLivingInTheCountry":{"type":"number"},"numberOfChildrenBelow18":{"type":"number","description":"The applicant's number of children Ex: 0,1,2,3,4,5,6"},"educationLevel":{"oneOf":[{"type":"string","enum":["Master","Bachelor","HigherEducation12","UpperSecondarySchool","ElementarySchool","PrimarySchool","SecondarySchool","WorkEducation","UniversityDegree","None"],"description":"Education level enumeration"},{"type":"number","minimum":0,"maximum":9,"description":"Numeric representation of education level from 0 to 9"}]},"paymentsPerYear":{"oneOf":[{"type":"string","enum":["Twelve","Thirteen","Fourteen","FifteenOrMore"],"description":"Payments per year enumeration"},{"type":"number","minimum":12,"maximum":15,"description":"Numeric representation of payments per year from 12 to 15"}],"default":"Twelve"},"income":{"type":"object","additionalProperties":false,"description":"Applicant's income","properties":{"monthlyGrossIncome":{"type":"number","description":"Regular monthly income, gross/before tax. Either one of this and yearly income is mandatory."},"monthlyNetPayout":{"type":"number","description":"Monthly net payout, if any"},"rentalIncome":{"type":"number","description":"Monthly rental income, if any"},"insurancePayout":{"type":"number","description":"Monthly insurance payout, if any"},"yearlyBonusPayout":{"type":"number","description":"Yearly bonus payout, if any"},"receivedAlimonyAmount":{"type":"number","description":"Monthly received alimony amount, if any"},"otherIncome":{"type":"number","description":"Monthly other income, if any, gross/before tax."},"otherIncomeDescription":{"type":"string","description":"Description of other income, if any."},"yearlyGrossIncome":{"type":"number","description":"Yearly income, gross/before tax. Either one of this and monthly income is mandatory"},"totalHousingIncome":{"type":"number","description":"Total gross yearly household income"},"partnerMonthlyIncome":{"type":"number","description":"The applicant's partner monthly income"}},"anyOf":[{"required":["monthlyGrossIncome"]},{"required":["yearlyGrossIncome"]},{"required":["monthlyNetPayout"]}]},"debts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"bankName":{"type":"string"},"type":{"type":"string","enum":["ConsumerLoan","Creditcard","MortgageLoan","StudentLoan","VehicleLoan","FlexibleMortgage","FlexibleConsumerLoan","ChargeCard","HousingCooperativeSharedDebt","Other"]},"cid":{"type":"string"},"agreementNumber":{"type":"string"},"bankAccountNumber":{"type":"string"},"remainingPaymentMonths":{"type":"number"},"outstandingAmount":{"type":"number"},"monthlyPaymentAmount":{"type":"number"},"termFee":{"type":"number"},"feePeriod":{"type":"string","enum":["Annually","SemiAnnually","Quarterly","Monthly"]},"creditLimit":{"type":"number"},"redeemedAmount":{"type":"boolean"},"interestRate":{"type":"number"},"coBorrowerStatus":{"type":"string","enum":["NoCoBorrower","IsCoBorrower","HasCoBorrower","Unknown"]},"amount":{"type":"number"},"currency":{"type":"string"}},"required":["amount","type","currency"]}},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Partner","Widowed"],"description":"The marital/civil status."},"housing":{"type":"object","additionalProperties":false,"description":"Spanish applicant's housing","properties":{"dwelling":{"type":"string","enum":["OwnerPropertyWithMortgage","OwnerPropertyWithOutMortgage","Rental","LivingWithParentsOrRelatives","CompanyHousing"],"description":"Spanish dwelling (housing) of the applicant"},"since":{"type":"number","description":"The applicant's year since living in his/her current house/apartment"},"monthlyCostRentOrMortgage":{"type":"number","description":"The applicant's monthly cost for rent or mortage"}},"required":["dwelling","since","monthlyCostRentOrMortgage"]},"addressInformation":{"type":"object","additionalProperties":false,"properties":{"address":{"type":"string","description":"The applicant's address"},"typeOfAddress":{"type":"string","description":"The applicant's type of address"},"streetName":{"type":"string","description":"The applicant's street name"},"streetNumber":{"type":"string","description":"The applicant's street number"},"addressDetails":{"type":"string","description":"The applicant's address details"},"postalCode":{"type":"string","description":"The applicant's postal code"},"city":{"type":"string","description":"The applicant's city"},"province":{"type":"string","description":"The applicant's province"}},"required":["typeOfAddress","streetName","streetNumber","postalCode","city","province"]},"numberOfExistingLoans":{"oneOf":[{"type":"string","enum":["None","One","Two","ThreeOrMore"],"description":"Spanish Number of existing loans of the applicant"},{"type":"number","minimum":0,"maximum":3,"description":"Numeric representation of number of existing loans from 0 to 3"}],"default":"None"},"expenses":{"type":"object","additionalProperties":false,"description":"The applicant's monthly cost of existing loans","properties":{"monthlyHousingCost":{"type":"number","description":"Monthly housing cost, not including loan repayments"},"paidAlimonyAmount":{"type":"number","description":"Monthly paid alimony amount, if any"},"monthlyCostOfExistingLoans":{"type":"number","description":"The applicant's monthly cost of existing loans"}}},"preferredLanguage":{"type":"string","enum":["Spanish","Basque","Catalan"],"description":"The supported languages."},"rawPSD2Data":{"type":"string","description":"The applicant's raw PSD2 data provided by agent"},"psD2Data":{"type":"object","additionalProperties":false,"properties":{"accounts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"accountId":{"type":"string"},"balance":{"type":"number"}}}},"transactions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"accountId":{"type":"string"},"transactionId":{"type":"string"},"date":{"type":"string","format":"date-time"},"transactionClass":{"type":"string"},"amount":{"type":"number"},"description":{"type":"string"}}}},"fetched_at":{"type":"string"},"identity":{"type":"object","additionalProperties":false,"properties":{"date_of_birth":{"type":"string"},"name":{"type":"string"},"ssn":{"type":"string"}}},"statistics":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"expenses":{"type":"number"},"income":{"type":"number"},"left_to_spend":{"type":"number"},"period":{"type":"string"}}}}}},"externalScore":{"type":"string","description":"The applicant's external score provided by agent"}},"required":["nationalId","firstName","lastName","employment","mobileNumber","emailAddress","gender","birthDate","citizenships","maritalStatus","income","housing","expenses","addressInformation","numberOfChildrenBelow18","educationLevel"]},"coapplicant":{"$ref":"#/components/schemas/SpanishLoanRequestBody/properties/applicant"},"purpose":{"type":"string","description":"Purpose of the loan application. Allowed values: used_vehicle, new_vehicle, repair_vehicle, debt_consolidation, renovate_home, home_furnishing, studies, health_or_medical, vacation, electronics, have_liquidity, unforeseen_expense, other","example":"renovate_home"},"bankAccountNumber":{"type":"string","example":"The applicant's bank account number. E.g.,ES9121000418450200051332, ES9121000418450200051332"},"info_blob":{"type":"object","description":"Additional information blob, if any. This is a free-form field that can be used to pass additional information about the application."}},"required":["externalApplicationId","purpose","product","appliedAmount","refinanceAmount","repaymentPeriod","applicant"]}}}}