Skip to content

r2.3

Latest

Choose a tag to compare

@camara-release-automation camara-release-automation released this 20 Nov 11:06
49a32c9

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.

Breaking changes

  • Replaced 403 INVALID_TOKEN_CONTEXT with 422 UNNECESSARY_IDENTIFIER by @GillesInnov35 in #84
    • Previously, when the API consumer provided both a 3-legged access token and an explicit phoneNumber, the API would return 403 INVALID_TOKEN_CONTEXT if they did not match, but proceed as normal if they did match.
    • Now, the API will always return 422 UNNECESSARY_IDENTIFIER if both a 3-legged access token and an explicit phoneNumber are provided. This will be a breaking change for those API consumers who provide a matching 3-legged access token and phoneNumber - their API calls would have succeeded before, but now they will fail.
  • country, countryOfBirth and nationality now 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 with 400 INVALID_ARGUMENT by @GillesInnov35 in #81

Added

  • Added the optional request property bankAccountNumber (format PREFIX:VALUE, for example IBAN:NL59ABNA0123456789) and the response property bankAccountNumberMatch by @ToshiWakayama-KDDI in #73
  • Documented the 429 TOO_MANY_REQUESTS error response by @GillesInnov35 in #91 and #97
  • Extended the test definitions by @albertoramosmonagas in #117:
    • scenarios 02, 04, 05 and 06 cover bankAccountNumber
    • the error scenarios that lacked them now check the x-correlator and Content-Type response headers
    • new scenario 400.09 tests unknown request body properties

Changed

  • Replaced 403 INVALID_TOKEN_CONTEXT with 422 UNNECESSARY_IDENTIFIER: with a 3-legged access token, phoneNumber must 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 400 response that keeps KNOW_YOUR_CUSTOMER.INVALID_PARAM_COMBINATION
    • Added the ISO 3166-1 alpha-2 pattern ^[A-Za-z]{2}$ to country, countryOfBirth and nationality (see Breaking changes)
    • Added maxLength and format constraints 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)
  • Renamed the operationId from KYC_Match to kycMatch, the schemas KYC_MatchRequestBody and KYC_MatchResponse to KycMatchRequestBody and KycMatchResponse, and the OpenAPI tag Match to Check 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 06 lists 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 scenario 10) 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_IDENTIFIER error 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"

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 {} to 400 KNOW_YOUR_CUSTOMER.INVALID_PARAM_COMBINATION in test scenario 400.03, as stated in the POST /match description (was 400 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 idDocument validation that Operators could require before the match check, together with the error codes 403 KNOW_YOUR_CUSTOMER.ID_DOCUMENT_REQUIRED and 403 KNOW_YOUR_CUSTOMER.ID_DOCUMENT_MISMATCH and their test scenarios by @fernandopradocabrillo in #54
  • Removed NOT_FOUND from the documented 404 error codes; 404 IDENTIFIER_NOT_FOUND remains by @GillesInnov35 in #97
  • Test scenario 07 and implementation indication on a mandatory idDocument were removed from the test scenarios by @albertoramosmonagas in #117

Full Changelog: r1.2...r2.3