# Get Available Card Art Details source: https://developer.mastercard.com/mdes-digital-card-art-service/documentation/testing/get-available-card-art-details/index.md ## Pre-requisites {#pre-requisites} Confirm the following before you send any requests: * Your project is created and Sandbox (Mock) credentials are available. * Your client uses the Sandbox (Mock) base URL: `https://sandbox.api.mastercard.com/mdes/digital-personalization/sandbox` * OAuth 1.0a signing is configured correctly. If you still need onboarding or credential setup, start with the [Quick Start Guide](https://developer.mastercard.com/mdes-digital-card-art-service/documentation/quick-start-guide/index.md) ### Choose a testing method {#choose-a-testing-method} Choose a testing method that best matches how you want to validate requests: * [Postman Collection Guide](https://developer.mastercard.com/platform/documentation/developer-tools/postman-collection/) * [Insomnia Collection Guide](https://developer.mastercard.com/platform/documentation/developer-tools/insomnia-collection/) * `curl` or a custom client for request-by-request validation ### Other configurations before you validate requests {#other-configurations-before-you-validate-requests} 1. Download the Sandbox (Mock) encryption certificate: [public-key-certificate.crt](https://static.developer.mastercard.com/content/mdes-digital-card-art-service/uploads/public-key-certificate.crt) (2KB). 2. Use the static publicKeyFingerprint value `710498B6F697B1ED8E5EB264E96D335763F7C02B` along with the encryption certificate. 3. Unencrypted data to be passed in request in encrypted format in the encryptedData field. ## Testing Scenarios {#testing-scenarios} ### Authorization Failed {#authorization-failed} * Request * Response * Error_Response ```Request { "requestId": "207306be-25f0-4684-bfff-61b028757777", "accountRanges": [ "5412346789" ] } ``` ```Response { "responseId": "207306be-25f0-4684-bfff-61b028757777", "count": 3, "offset": 0, "limit": 10, "total": 3, "availableCardArts": [ { "cardArtId": "495146c5-fc52-4bb3-95dc-69722537dce4", "digitalServicePartnerIdentifiers": [ "P2345" ] }, { "cardArtId": "7b21f97b-a4fc-40b8-8b12-f12345678901", "digitalServicePartnerIdentifiers": [ "P6789" ] }, { "cardArtId": "d912ff44-08c0-4eb1-80b8-abcdef123456", "digitalServicePartnerIdentifiers": [ "P1234" ] } ] } ``` ```Error_Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "AUTHORIZATION_FAILED", "Description": "Could not perform action", "Recoverable": false, "Details": "Requested action can not be performed." } ] } } ``` ### REQUEST_ACTION_NOT_PERFORMED {#request_action_not_performed} * Request * Response * Error_Response ```Request { "requestId": "207306be-25f0-4684-bfff-61b028757777", "accountRanges": [ "5412346789" ] } ``` ```Response { "responseId": "207306be-25f0-4684-bfff-61b028757777", "count": 3, "offset": 0, "limit": 10, "total": 3, "availableCardArts": [ { "cardArtId": "495146c5-fc52-4bb3-95dc-69722537dce4", "digitalServicePartnerIdentifiers": [ "P2345" ] }, { "cardArtId": "7b21f97b-a4fc-40b8-8b12-f12345678901", "digitalServicePartnerIdentifiers": [ "P6789" ] }, { "cardArtId": "d912ff44-08c0-4eb1-80b8-abcdef123456", "digitalServicePartnerIdentifiers": [ "P1234" ] } ] } ``` ```Error_Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "REQUEST_ACTION_NOT_PERFORMED", "Description": "Could not perform action", "Recoverable": false, "Details": "Requested action can not be performed." } ] } } ```