Cards
Deactivate or edit a Card
Changed onBecause card information cannot be kept without the end user's approval, you should implement a way to deactivate the end user's card systematically when relevant.
</Warning>
Deactivate or edit a Card
This call serves one of two purposes:
- Setting the card as inactive, and thereby disabling it from being used again. This action is irreversible but doesn't prevent the card being registered again with POST Create a Card Registration.
- Adding the CardHolderName to an existing Card object. The CardHolderName cannot be modified once added to a Card object. It can also be done during registration with PUT Update a Card Registration, in which case attempting to edit it with this endpoint returns an error.
put/v2.01/{ClientId}/cards/{CardId}
Request
- Base URLhttps://api.sandbox.mangopay.com
- URLhttps://api.sandbox.mangopay.com/v2.01/{ClientId}/cards/{CardId}
- AuthHTTP bearer
Path parameters
ClientIdstring required
Platform's API account identifier, associated with the API key.
CardIdstring required
The unique identifier of the Card object, which is returned after updating the Card Registration object with the RegistrationData.
Request body
Response
Success
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning
- info
api operation id
deactivate_edit_cardremoved and replaced withcards_deactivate_edit_card
- info