# Update Card Art Associations source: https://developer.mastercard.com/mdes-digital-card-art-service/documentation/testing/update-card-art-associations/index.md ## Pre-requisites {#pre-requisites} 1. Refer to the MDES Digital Card Art Service [API specification](https://developer.mastercard.com/mdes-digital-card-art-service/documentation/api-reference/index.md). 2. Download the sandbox encryption certificate: [public-key-certificate.crt](https://static.developer.mastercard.com/content/mdes-digital-card-art-service/uploads/public-key-certificate.crt) (2KB). 3. Use the static publicKeyFingerprint value `710498B6F697B1ED8E5EB264E96D335763F7C02B` along with the encryption certificate. ### Scenarios {#scenarios} ## Duplicate Request {#duplicate-request} * Request * Response * Error Response ```Request { "reasonCode": "OTHER", "requestId" : "request-id-for-duplicate-request" } ``` ```Response { "reasonCode": "OTHER", "requestId": "request-id-for-success" } ``` ```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} * Request * Response * Error Response ```Request { "reasonCode": "OTHER", "requestId" : "request-id-for-authorization-failed" } ``` ```Response { "reasonCode": "OTHER", "requestId": "request-id-for-success" } ``` ```Error Response { "Errors": { "Error": [ { "Source": "MASTERCARD_DIGITAL_PERSONALIZATION_SERVICE", "ReasonCode": "AUTHORIZATION_FAILED", "Description": "Authorization failed.", "Recoverable": false, "Details": "The client could not be authorized to perform the requested action." } ] } } ``` ## Requested Action Not Performed {#requested-action-not-performed} * Request * Response * Error Response ```Request { "reasonCode": "OTHER", "requestId": "request-id-for-request-action-not-performed" } ``` ```Response { "reasonCode": "OTHER", "requestId": "request-id-for-success" } ``` ```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} * Request * Response * Error Response ```Request { "reasonCode": "OTHER", "requestId" : "request-id-for-velocity-count-exceeded" } ``` ```Response { "reasonCode": "OTHER", "requestId": "request-id-for-success" } ``` ```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} * Request * Response * Error Response ```Request { "reasonCode": "OTHER", "requestId" : "request-id-for-invalid-card-art-id" } ``` ```Response { "reasonCode": "OTHER", "requestId": "request-id-for-success" } ``` ```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} * Request * Response * Error Response ```Request { "reasonCode": "OTHER", "requestId": "request-id-for-token-requestor-not-eligible" } ``` ```Response { "reasonCode": "OTHER", "requestId": "request-id-for-success" } ``` ```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" } ] } } ```