diff --git a/code/API_definitions/customer-insights.yaml b/code/API_definitions/customer-insights.yaml index b30f5f6..1519d45 100644 --- a/code/API_definitions/customer-insights.yaml +++ b/code/API_definitions/customer-insights.yaml @@ -409,7 +409,7 @@ components: - An identifier is not included in the request and the device or phone number identification cannot be derived from the 3-legged access token ("code": "MISSING_IDENTIFIER","message": "The phone number cannot be identified.") - An explicit identifier is provided when a device or phone number has already been identified from the access token ("code": "UNNECESSARY_IDENTIFIER","message": "The phone number is already identified by the access token.") - Provided `scoringType` value is not supported. (`"code": "CUSTOMER_INSIGHTS.SCALE_TYPE_NOT_SUPPORTED","message": "Indicated parameter scoringType is not supported."`) - - Provided `idDocument` is not consistent with the phone number. (`"code": "CUSTOMER_INSIGHTS.IDENTIFIERS_MISMATCH","message": "Provided idDocument is not consistent with the phone number."`) + - Provided `idDocument` is not consistent with the phone number. (`"code": "CUSTOMER_INSIGHTS.INVALID_IDENTIFIERS","message": "The request contains invalid data."`) - Provided `idDocument` field is not supported. (`"code": "CUSTOMER_INSIGHTS.ID_DOCUMENT_NOT_SUPPORTED","message": "Indicated parameter idDocument is not supported"`) - Required `idDocument` field and it is not provided. (`"code": "CUSTOMER_INSIGHTS.ID_DOCUMENT_REQUIRED","message": "The idDocument is required to perform the properties validation."`) headers: @@ -431,7 +431,7 @@ components: - MISSING_IDENTIFIER - UNNECESSARY_IDENTIFIER - CUSTOMER_INSIGHTS.SCALE_TYPE_NOT_SUPPORTED - - CUSTOMER_INSIGHTS.IDENTIFIERS_MISMATCH + - CUSTOMER_INSIGHTS.INVALID_IDENTIFIERS - CUSTOMER_INSIGHTS.ID_DOCUMENT_NOT_SUPPORTED - CUSTOMER_INSIGHTS.ID_DOCUMENT_REQUIRED examples: @@ -459,12 +459,12 @@ components: status: 422 code: CUSTOMER_INSIGHTS.SCALE_TYPE_NOT_SUPPORTED message: Indicated parameter `scoringType` is not supported. - GENERIC_422_IDENTIFIERS_MISMATCH: - description: Error when provided `idDocument` is not consistent with the phone number. + GENERIC_422_INVALID_IDENTIFIERS: + description: The request contains invalid data identifying customer value: status: 422 - code: CUSTOMER_INSIGHTS.IDENTIFIERS_MISMATCH - message: Provided `idDocument` is not consistent with the phone number. + code: CUSTOMER_INSIGHTS.INVALID_IDENTIFIERS + message: The request contains invalid data. GENERIC_422_ID_DOCUMENT_NOT_SUPPORTED: description: Error when `idDocument` field is not supported value: diff --git a/code/Test_definitions/customer-insights-retrieveScoring.feature b/code/Test_definitions/customer-insights-retrieveScoring.feature index 8002e84..9fba4b1 100644 --- a/code/Test_definitions/customer-insights-retrieveScoring.feature +++ b/code/Test_definitions/customer-insights-retrieveScoring.feature @@ -203,7 +203,7 @@ Feature: CAMARA Customer Insights API, v0.2.0-rc.1 - Operation retrieveScoring When the request "retrieveScoring" is sent Then the response status code is 422 And the response property "$.status" is 422 - And the response property "$.code" is "CUSTOMER_INSIGHTS.IDENTIFIERS_MISMATCH" + And the response property "$.code" is "CUSTOMER_INSIGHTS.INVALID_IDENTIFIERS" And the response property "$.message" contains a user friendly text @retrieve_scoring_422.03_id_document_not_supported_three_legged