post https://api.juspay.in/card/update
Updates nickname
and/or name_on_card
for the stored card.
Response Parameters for the Update Card API: (click to view)
Parameter | Type | Description |
---|---|---|
card_token | String | Temporary token representing the card which is to be updated. |
user_message | String | Returns: "Card details updated", unless a failure occurred, in which case a response with an HTTP status code of "400" is returned, as shown below. . |
status | String | Returns: "SUCCESS", unless a failure occurred, in which case a response with an HTTP status code of "400" is returned, as shown below. |
⭣The request must include a card_token, and other parameters, as listed below: (click to open table)
The request must include a card_token, and other parameters, as listed below: (click to open table)
Field | Type | Description | |
---|---|---|---|
card_token | * | String | The temporary card_token received in the response for the List stored cards API or Add Card API. |
customer_id | * | String | Customer ID against which the card is stored. |
name_on_card | String | Pass a new value, if name_on_card needs to be updated. Should contain alphabetical characters and spaces only. with length limit of 64 characters. | |
nickname | String | Pass a new value, if nickname needs to be updated, Should contain alphabetical characters and spaces only, with length limit of 64 characters. |
* = Required