---
updatedAt: 2026-03-24T12:22:54.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Revoke a payment source

Removes a payment `source`, such as card or ACH token, from the customer profile. Use [Create a card token](https://docs.clover.com/reference/create-card-token) or [Create an ACH token](https://docs.clover.com/reference/create-ach-token) to create payment source.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "error": {
        "description": "Error response from the API.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/api_errors"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "api_errors": {
        "properties": {
          "charge": {
            "description": "Displays for card-related errors. Unique identifier (Id) of the failed charge.",
            "maxLength": 5000,
            "type": "string"
          },
          "code": {
            "description": "Error code. Additional information about the error to help users identify the issue.",
            "maxLength": 5000,
            "type": "string"
          },
          "decline_code": {
            "description": "Displays when a card issuer declines the transaction. This includes the reason for the decline, if specified by the card issuer.",
            "maxLength": 5000,
            "type": "string"
          },
          "doc_url": {
            "description": "URL (link) for more information about the reported error code.",
            "maxLength": 5000,
            "type": "string"
          },
          "message": {
            "description": "Detailed information about the error code. For card-related errors, this can provide more information to users.",
            "maxLength": 40000,
            "type": "string"
          },
          "param": {
            "description": "Displays card parameter errors. The error message can inform users entering card information of a specific problem with their entry.",
            "maxLength": 5000,
            "type": "string"
          },
          "type": {
            "description": "Returned error type.",
            "enum": [
              "api_connection_error",
              "api_error",
              "authentication_error",
              "card_error",
              "idempotency_error",
              "invalid_request_error",
              "rate_limit_error"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "APIErrors",
        "type": "object",
        "x-expandableFields": [
          "payment_intent",
          "payment_method",
          "source"
        ]
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://sandbox.dev.clover.com/oauth/authorize",
            "tokenUrl": "https://sandbox.dev.clover.com/oauth/token",
            "scopes": {}
          }
        }
      }
    },
    "parameters": {
      "UserAgentHeader": {
        "name": "User-Agent",
        "in": "header",
        "description": "Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: `<product> / <product-version> <comment>`",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "PostmanRuntime/7.44.1"
      }
    }
  },
  "openapi": "3.0.0",
  "info": {
    "title": "Ecommerce Service API",
    "description": "REST API providing card-not-present transaction functions for Clover merchants and developers",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://scl-sandbox.dev.clover.com",
      "description": "SCL Sandbox API server (Default)"
    },
    {
      "url": "https://apisandbox.dev.clover.com",
      "description": "API Sandbox server (Use for Hosted Checkout)"
    }
  ],
  "security": [
    {
      "OAuth2": []
    }
  ],
  "paths": {
    "/v1/customers/{customerId}/sources/{sourceId}": {
      "delete": {
        "tags": [
          "CUSTOMERS"
        ],
        "operationId": "RevokeCard",
        "summary": "Revoke a payment source",
        "x-clover-handler": "com.clover.scl.handlers.customers.RevokeCardHandler",
        "x-clover-is-public": true,
        "description": "Removes a payment `source`, such as card or ACH token, from the customer profile. Use [Create a card token](https://docs.clover.com/reference/create-card-token) or [Create an ACH token](https://docs.clover.com/reference/create-ach-token) to create payment source.",
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          },
          {
            "in": "path",
            "name": "customerId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Unique identifier (ID) of the customer."
          },
          {
            "in": "path",
            "name": "sourceId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Universally unique identifier (UUID) of the card data associated with a customer record.\n Use [Create a card-on-file customer](https://docs.clover.com/reference/createcustomer) endpoint to generate the card data identifier."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response. Payment source successfully removed from the customer record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean",
                      "description": "Indicates whether the payment source associated with customer has been deleted."
                    },
                    "id": {
                      "type": "string",
                      "description": "Identifier of the payment source associated with a customer record."
                    },
                    "object": {
                      "type": "string",
                      "description": "Indicates the type of payment source associated with the customer record.",
                      "enum": [
                        "deletedcard",
                        "ach"
                      ]
                    }
                  },
                  "required": [
                    "deleted",
                    "id",
                    "object"
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```