Re: Update Card status

snoviel
New Contributor

Update Card status

Hello Visa DPS team,

 

I am using API to update the status of card here is the request ,however the card status still remains the same ,does this API updates the status of the card? the use case here is to update the status so that user can't use the card 

https://sandbox.api.visa.com/dcas/cardservices/v2/cards/4079410000032212/cardstatus 

Request

{
  "status": "76-DO_NOT_HONOUR"
}

 

Response 

{
    "receivedTimestamp": "2024-12-03T23:55:41.586Z",
    "processingTimeinMs": 1,
    "resource": {
        "activationStatus": "ACTIVATED",
        "status": ""
    }
}
2 REPLIES 2
SyedSa
Community Moderator

Re: Update Card status

Hi @snoviel, Thank you for reaching out. An agent will get back to you as soon as possible. Until then, if any community member has information that may be helpful, feel free to reply in this thread.

API_Products
Visa Developer Support Specialist

Re: Update Card status

Hey @snoviel,

 

Based on the provided request and response, it appears that the API you are using does not update the card status as intended. The response shows that the `status` field is empty and the `activationStatus` remains "ACTIVATED".

 

To update the card status so that the user cannot use the card, you should verify the following:

1. API Endpoint: Ensure that the endpoint URL is correct. The provided URL should match the Visa Developer API documentation for updating card status.
2. HTTP Method: Confirm that you are using the correct HTTP method (e.g., PUT or POST) as specified in the API documentation.
3. Request Payload: Ensure that the request payload is correctly formatted and includes all required fields. The status value should match the expected values defined by the API documentation.
4. Authentication: Verify that you have the correct authentication credentials and that they are included in the request headers.

 

For more accurate information, please refer to the Visa Developer platform documentation for the "Update Card Status" API. You can find detailed information on required fields, supported status values, and example requests and responses.

 

Here is the link to the Visa Developer platform: https://developer.visa.com




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.