# Get Card Art Associations by Card Art ID source: https://developer.mastercard.com/mdes-digital-card-art-service/documentation/testing/get-card-art-associations-by-card-art-id/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} ### Duplicate Request {#duplicate-request} * Response * Error_Response ```Response { "responseId": null, "count": 1, "offset": 0, "limit": 10, "total": 1, "associations": [ { "tokenRequestorId": "50120834693", "lastUpdated": "2025-04-22T17:32:28Z", "status": "COMPLETED", "associatedAccountNumbers": 10 } ] } ``` ```Error_Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "DUPLICATE_REQUEST", "Description": "Duplicate Request", "Recoverable": "false", "Details": "This operation has already been submitted and is being processed" } ] } } ``` ### Authorization Failed {#authorization-failed} * Response ```Response { "responseId": null, "count": 1, "offset": 0, "limit": 10, "total": 1, "associations": [ { "tokenRequestorId": "50120834693", "lastUpdated": "2025-04-22T17:32:28Z", "status": "COMPLETED", "associatedAccountNumbers": 10 } ] } ``` ### Requested Action Not Performed {#requested-action-not-performed} * Response * Error_Response ```Response { "responseId": null, "count": 1, "offset": 0, "limit": 10, "total": 1, "associations": [ { "tokenRequestorId": "50120834693", "lastUpdated": "2025-04-22T17:32:28Z", "status": "COMPLETED", "associatedAccountNumbers": 10 } ] } ``` ```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." } ] } } } ``` ### Velocity Count Exceeded {#velocity-count-exceeded} * Response * Error_Response ```Response { "responseId": null, "count": 1, "offset": 0, "limit": 10, "total": 1, "associations": [ { "tokenRequestorId": "50120834693", "lastUpdated": "2025-04-22T17:32:28Z", "status": "COMPLETED", "associatedAccountNumbers": 10 } ] } ``` ```Error_Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "VELOCITY_COUNT_EXCEEDED", "Description": "Velocity count has been exceeded.", "Recoverable": false, "Details": "The number of card art requests for the provided PAN has exceeded the allowed limit within the defined time window" } ] } } ``` ### Invalid Card Art ID {#invalid-card-art-id} * Response * Error_Response ```Response { "responseId": null, "count": 1, "offset": 0, "limit": 10, "total": 1, "associations": [ { "tokenRequestorId": "50120834693", "lastUpdated": "2025-04-22T17:32:28Z", "status": "COMPLETED", "associatedAccountNumbers": 10 } ] } ``` ```Error_Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "INVALID_CARD_ART_ID", "Description": "Invalid Card Art ID", "Recoverable": false, "Details": "The Provided Card art Id is not valid." } ] } } ``` ### Token Requestor Not Eligible {#token-requestor-not-eligible} * Response * Error_Response ```Response { "responseId": null, "count": 1, "offset": 0, "limit": 10, "total": 1, "associations": [ { "tokenRequestorId": "50120834693", "lastUpdated": "2025-04-22T17:32:28Z", "status": "COMPLETED", "associatedAccountNumbers": 10 } ] } ``` ```Error_Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "TOKEN_REQUESTOR_NOT_ELIGIBLE", "Description": "Token Requestor Not Eligible", "Recoverable": false, "Details": "Request can not be performed on the provided Token Requestor" } ] } } ```