# Retrieve CVC2 source: https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/data-management/query-cms-to-get-particular-data/retrieve-cvc2/index.md ## Test case -- Success {#test-case--success} This test case describes retrieving a card verification code (CVC2) for a specified card contract stored in the CMS. **Sample request** `POST /cards/70001/card-verification-codes/searches` ```JSON { "cardExpiryDate" : "3004" } ``` **Sample response** `200` ```JSON { "cardVerificationCode": "347" } ``` ## Test case -- Fail -- Invalid expiry date {#test-case--fail--invalid-expiry-date} This test case describes an attempt to retrieve a card verification code (CVC2) for a specified card contract stored in the CMS by sending the incorrect card expiry date in the request. For this test case, use the following information in the request: | Field | Available value | |------------------|-----------------| | `cardExpiryDate` | 2101 | **Sample request** `POST /cards/70001/card-verification-codes/searches` ```JSON { "cardExpiryDate" : "2101" } ``` **Sample response** `404` ```JSON { "Errors": { "Error": [ { "Source": "MASTERCARD PROCESSING", "ReasonCode": "INVALID_EXPIRY_DATE", "Description": "Expiry date 2101 does not match for the card contract with id 70001.", "Recoverable": false } ] } } ```