Skip to main content

Remove Saved Card

Remove a stored card token so it can no longer be used for Server-to-Server charges.

Get cardToken from Get Saved Card Tokens before calling this endpoint.

Endpoint Information

Name: Remove Saved Card
Method: POST
URL: {{base_url}}/api/v1/customer-saved-card/remove

Authentication

Type: Basic Auth

  • Username: App Key
  • Password: Secret Key

Request Body

Content-Type: application/json

{
"cardToken": "{{cardToken}}",
"email": "{{customerEmail}}",
"merchantAccountId": "{{merchantAccountId}}"
}

Key Parameters

ParameterTypeRequiredDescription
cardTokenstringYesSaved card token to delete
emailstringYesCustomer email associated with the saved card
merchantAccountIdstringYesYour merchant account ID

Response

Success Response

{
"success": true,
"message": "Success",
"data": []
}

Response Fields

FieldTypeDescription
successbooleantrue when the card was removed
messagestringStatus message
dataarrayEmpty on success