action credas_verify { label: "Verifies bank account details." provider: credas method: POST path: "/api/bank-accounts/verify" encoding: json input: { type: "object" properties: { accountDetails: { type: "object" required: ["accountNumber", "sortcode"] properties: { accountNumber: { type: "string" } sortcode: { type: "string" } } } address: { type: "object" required: ["addressLine1", "city", "country", "postcode"] properties: { addressLine1: { type: "string" } addressLine2: { type: "string" } addressLine3: { type: "string" } city: { type: "string" } country: { type: "string" } county: { type: "string" } postcode: { type: "string" } } } apikey: { type: "string" } person: { type: "object" required: ["forename", "surname"] properties: { forename: { type: "string" } middleName: { type: "string" } surname: { type: "string" } } } regEntryId: { type: "string" format: "uuid" } } required: ["accountDetails", "address", "apikey", "person", "regEntryId"] additionalProperties: false } output: { type: "object" properties: { Address1: { type: "string" } City: { type: "string" } Forename: { type: "string" } MiddleName: { type: "string" } PostCode: { type: "string" } Surname: { type: "string" } accountNumber: { type: "string" } accountNumberValidation: { type: "integer" format: "int32" description: "Unknown = 0, NoMatch = 1, Valid = 2, Invalid = 3, SevenDigitsMatched = 4, SixDigitsMatched = 5" enum: [0, 1, 2, 3, 4, 5] } accountNumberValidationText: { type: "string" } accountStatus: { type: "integer" format: "int32" description: "Unknown = 0, NoMatch = 1, Live = 2, ClosedOrSettled = 3" enum: [0, 1, 2, 3] } accountStatusText: { type: "string" } accountValid: { type: "boolean" } addressValidation: { type: "integer" format: "int32" description: "Unknown = 0, NoMatch = 1, CurrentAddress = 2, PreviousAddress = 3, ForwardingAddress = 4" enum: [0, 1, 2, 3, 4] } addressValidationText: { type: "string" } checkDate: { type: "string" format: "date-time" } checkId: { type: "string" format: "uuid" } checkStatus: { type: "integer" format: "int32" description: "Unknown = 0, Pass = 1, Refer = 2, Fail = 3" enum: [0, 1, 2, 3] } error: { type: "boolean" } hasBeenOverridden: { type: "boolean" } nameValidation: { type: "integer" format: "int32" description: "Unknown = 0, NoMatch = 1, Valid = 2" enum: [0, 1, 2] } nameValidationText: { type: "string" } referenceId: { type: "string" } sortcode: { type: "string" } sortcodeValidation: { type: "integer" format: "int32" description: "Unknown = 0, NoMatch = 1, Valid = 2, Invalid = 3, FiveDigitsMatched = 4" enum: [0, 1, 2, 3, 4] } sortcodeValidationText: { type: "string" } } } }