Repository navigation
Release Notes
This public release contains the definition and documentation of
- kyc-match 1.0.0
The API definition(s) are based on
- Commonalities r4.4 (0.9.0)
- Identity and Consent Management r4.2 (0.5.0)
kyc-match 1.0.0
kyc-match 1.0.0 is the first stable version of this API.
Changes documented below are compared to version 0.4.0.
- API definition with inline documentation:
Breaking changes
- Replaced
403 INVALID_TOKEN_CONTEXTwith422 UNNECESSARY_IDENTIFIERby @GillesInnov35 in #84- Previously, when the API consumer provided both a 3-legged access token and an explicit
phoneNumber, the API would return403 INVALID_TOKEN_CONTEXTif they did not match, but proceed as normal if they did match. - Now, the API will always return
422 UNNECESSARY_IDENTIFIERif both a 3-legged access token and an explicitphoneNumberare provided. This will be a breaking change for those API consumers who provide a matching 3-legged access token andphoneNumber- their API calls would have succeeded before, but now they will fail.
- Previously, when the API consumer provided both a 3-legged access token and an explicit
country,countryOfBirthandnationalitynow enforce the ISO 3166-1 alpha-2 format with the pattern^[A-Za-z]{2}$. Version 0.4.0 described this format but did not enforce it, so values it accepted (for example alpha-3 codes) are now rejected with400 INVALID_ARGUMENTby @GillesInnov35 in #81
Added
- Added the optional request property
bankAccountNumber(formatPREFIX:VALUE, for exampleIBAN:NL59ABNA0123456789) and the response propertybankAccountNumberMatchby @ToshiWakayama-KDDI in #73 - Documented the
429 TOO_MANY_REQUESTSerror response by @GillesInnov35 in #91 and #97 - Extended the test definitions by @albertoramosmonagas in #117:
- scenarios
02,04,05and06coverbankAccountNumber - the error scenarios that lacked them now check the
x-correlatorandContent-Typeresponse headers - new scenario
400.09tests unknown request body properties
- scenarios
Changed
- Replaced
403 INVALID_TOKEN_CONTEXTwith422 UNNECESSARY_IDENTIFIER: with a 3-legged access token,phoneNumbermust not be provided (see Breaking changes) by @GillesInnov35 in #84 - Aligned with Commonalities r4.4 (0.9.0) by @GillesInnov35 in #72, #81, #83, #90 and #97:
- Error responses use the Commonalities response and example definitions (example messages reworded), with a local
400response that keepsKNOW_YOUR_CUSTOMER.INVALID_PARAM_COMBINATION - Added the ISO 3166-1 alpha-2 pattern
^[A-Za-z]{2}$tocountry,countryOfBirthandnationality(see Breaking changes) - Added
maxLengthandformatconstraints to request and response properties, in line with the formats already documented - Documented the request body strictness rule: requests containing properties not declared in the specification are rejected with
400 INVALID_ARGUMENT - Aligned the test definitions with the testing guidelines (renamed scenario tags, operation
kycMatch, new 400, 403, 422 and 429 scenarios)
- Error responses use the Commonalities response and example definitions (example messages reworded), with a local
- Renamed the
operationIdfromKYC_MatchtokycMatch, the schemasKYC_MatchRequestBodyandKYC_MatchResponsetoKycMatchRequestBodyandKycMatchResponse, and the OpenAPI tagMatchtoCheck Subscriber Information(no change to paths, methods or payloads) by @GillesInnov35 in #83 and @ToshiWakayama-KDDI in #100 - Improved the API documentation: highlighted that the match score uses the Jaro-Winkler distance algorithm unless the Operator states otherwise, and renamed the request examples to "Example when using a Two-legged access token" and "Example when using a Three-legged access token" by @GillesInnov35 in #91
- Updated the test definitions: scenario
06lists each optional property explicitly, and the invalid parameter combination is tested in one scenario for 3-legged and one for 2-legged access tokens (400.03,400.04, replacing scenario10) by @ToshiWakayama-KDDI in #95 and @albertoramosmonagas in #106 - The test scenarios were renamed using a single feature identifier in the scenario tags by @albertoramosmonagas in #117
- Aligned the API description with the Commonalities r4.4 template by @albertoramosmonagas in #117:
- removed from the
422 MISSING_IDENTIFIERerror handling text the sentence that this error is typically returned in 2-legged scenarios - added the mandatory markers to the section "Identifying the phone number from the access token"
- removed from the
Fixed
- Corrected test scenario
05(false match without score) to send a value that does not match the stored value by @GillesInnov35 in #58 - Corrected the expected error for an empty request body
{}to400 KNOW_YOUR_CUSTOMER.INVALID_PARAM_COMBINATIONin test scenario400.03, as stated in thePOST /matchdescription (was400 INVALID_ARGUMENT) by @GillesInnov35 in #97 and @albertoramosmonagas in #106 - Some minor typos and wordings were corrected in the API description and the test scenarios by @albertoramosmonagas in #117
Removed
- Removed the additional
idDocumentvalidation that Operators could require before the match check, together with the error codes403 KNOW_YOUR_CUSTOMER.ID_DOCUMENT_REQUIREDand403 KNOW_YOUR_CUSTOMER.ID_DOCUMENT_MISMATCHand their test scenarios by @fernandopradocabrillo in #54 - Removed
NOT_FOUNDfrom the documented404error codes;404 IDENTIFIER_NOT_FOUNDremains by @GillesInnov35 in #97 - Test scenario
07and implementation indication on a mandatoryidDocumentwere removed from the test scenarios by @albertoramosmonagas in #117
Full Changelog: r1.2...r2.3