---
updatedAt: 2025-09-22T23:13:53.000Z
agentTools:
  projectIndex: https://developers.conekta.com/v2.1.0/llms.txt
---

# Delete Payment Method

Delete an existing payment method

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "contact": {
      "email": "engineering@conekta.com",
      "name": "Engineering Conekta",
      "url": "https://github.com/conekta/openapi/issues"
    },
    "description": "Conekta sdk",
    "license": {
      "name": "MIT-LICENSE",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Conekta API",
    "version": "2.1.0"
  },
  "servers": [
    {
      "description": "Conekta main server",
      "url": "https://api.conekta.io"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/customers/{id}/payment_sources/{payment_method_id}": {
      "delete": {
        "description": "Delete an existing payment method",
        "operationId": "DeleteCustomerPaymentMethods",
        "parameters": [
          {
            "description": "Identifier of the resource",
            "example": "6307a60c41de27127515a575",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Identifier of the payment method",
            "example": "src_2tQ974hSHcsdeSZHG",
            "in": "path",
            "name": "payment_method_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Use for knowing which language to use",
            "examples": {
              "es": {
                "summary": "for spanish request/response",
                "value": "es"
              },
              "en": {
                "summary": "for english request/response",
                "value": "en"
              }
            },
            "in": "header",
            "name": "Accept-Language",
            "required": false,
            "schema": {
              "default": "es",
              "enum": [
                "es",
                "en"
              ],
              "type": "string"
            }
          },
          {
            "description": "In the case of a holding company, the company id of the child company to which will process the request.",
            "example": "6441b6376b60c3a638da80af",
            "in": "header",
            "name": "X-Child-Company-Id",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.conekta-v2.1.0+json": {
                "schema": {
                  "$ref": "#/components/schemas/update_customer_payment_methods_response"
                }
              }
            },
            "description": "successful operation"
          },
          "401": {
            "content": {
              "application/vnd.conekta-v2.1.0+json": {
                "example": {
                  "details": [
                    {
                      "message": "Please include your access key in your request.",
                      "param": null,
                      "code": "conekta.errors.authentication.missing_key"
                    }
                  ],
                  "log_id": "507f1f77bcf86cd799439011",
                  "object": "error",
                  "type": "authentication_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            },
            "description": "authentication error"
          },
          "404": {
            "content": {
              "application/vnd.conekta-v2.1.0+json": {
                "example": {
                  "details": [
                    {
                      "message": "The resource was not found.",
                      "param": null,
                      "code": "conekta.errors.resource_not_found.entity",
                      "debug_message": "The object Webhook \"641b1d5662d7e00001eaa46b\" could not be found."
                    }
                  ],
                  "log_id": "641b6c253cd9a50001514fae",
                  "object": "error",
                  "type": "resource_not_found_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            },
            "description": "not found entity"
          },
          "422": {
            "content": {
              "application/vnd.conekta-v2.1.0+json": {
                "example": {
                  "details": [
                    {
                      "message": "The token does not exist.",
                      "param": "payment_method.token_id",
                      "code": "conekta.errors.parameter_validation.payment_method.token_id.nonexistent_token",
                      "debug_message": "The token does not exist."
                    }
                  ],
                  "log_id": "641b6d813cd9a50001515017",
                  "object": "error",
                  "type": "parameter_validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            },
            "description": "parameter validation error"
          },
          "500": {
            "content": {
              "application/vnd.conekta-v2.1.0+json": {
                "example": {
                  "details": [
                    {
                      "debug_message": "There was a runtime error and Conekta engineers have been notified.",
                      "message": "There was a runtime error and Conekta engineers have been notified.",
                      "param": null,
                      "code": "conekta.errors.api.system.general_failure"
                    }
                  ],
                  "object": "error",
                  "type": "api_error",
                  "log_id": "641b6f2b3cd9a50001515098"
                },
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            },
            "description": "internal server error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete Payment Method",
        "tags": [
          "Payment Methods"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "error": {
        "allOf": [
          {
            "$ref": "#/components/schemas/details"
          },
          {
            "properties": {
              "log_id": {
                "description": "log id",
                "example": "507f1f77bcf86cd799439011",
                "nullable": true,
                "type": "string"
              },
              "type": {
                "example": "authentication_error",
                "type": "string"
              },
              "object": {
                "example": "error",
                "type": "string"
              }
            },
            "type": "object"
          }
        ],
        "description": "err model",
        "title": "error"
      },
      "payment_method_cash_response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payment_method_response"
          },
          {
            "description": "use for cash responses",
            "properties": {
              "agreements": {
                "items": {
                  "$ref": "#/components/schemas/payment_method_cash_response_allOf_agreements"
                },
                "type": "array"
              },
              "reference": {
                "example": "93000262276908",
                "type": "string"
              },
              "barcode": {
                "example": "93000262276908",
                "type": "string"
              },
              "barcode_url": {
                "description": "URL to the barcode image, reference is the same as barcode",
                "example": "https://barcodes.conekta.com/644ebf80f2243197aad6cd8810375b905b613dbe.png",
                "type": "string"
              },
              "expires_at": {
                "example": 1742483424,
                "format": "int64",
                "type": "integer"
              },
              "provider": {
                "example": "Cash",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "payment_method_card_response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payment_method_response"
          },
          {
            "description": "use for card responses",
            "properties": {
              "last4": {
                "example": "6410",
                "type": "string"
              },
              "bin": {
                "example": "40276657",
                "type": "string"
              },
              "card_type": {
                "example": "debit",
                "type": "string"
              },
              "exp_month": {
                "example": "10",
                "type": "string"
              },
              "exp_year": {
                "example": "25",
                "type": "string"
              },
              "brand": {
                "example": "visa",
                "type": "string"
              },
              "name": {
                "example": "Fulano Perez\"",
                "type": "string"
              },
              "default": {
                "type": "boolean"
              },
              "visible_on_checkout": {
                "type": "boolean"
              },
              "payment_source_status": {
                "example": "active",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "payment_method_spei_recurrent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payment_method_response"
          },
          {
            "description": "use for spei responses",
            "properties": {
              "reference": {
                "example": "93000262276908",
                "type": "string"
              },
              "expires_at": {
                "example": "none",
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      },
      "details": {
        "properties": {
          "details": {
            "items": {
              "$ref": "#/components/schemas/details_error"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "payment_method_response": {
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "example": "src_2s8K1B3PBKDontpi9",
            "type": "string"
          },
          "object": {
            "example": "payment_source",
            "type": "string"
          },
          "created_at": {
            "example": 1675715413,
            "format": "int64",
            "type": "integer"
          },
          "parent_id": {
            "example": "cus_2s8K1B3PBKDontpi8",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "id",
          "object",
          "type"
        ],
        "type": "object"
      },
      "update_customer_payment_methods_response": {
        "discriminator": {
          "mapping": {
            "cash": "payment_method_cash_response",
            "card": "payment_method_card_response",
            "oxxo_recurrent": "payment_method_cash_response",
            "cash_recurrent": "payment_method_cash_response",
            "spei_recurrent": "payment_method_spei_recurrent"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payment_method_cash_response"
          },
          {
            "$ref": "#/components/schemas/payment_method_card_response"
          },
          {
            "$ref": "#/components/schemas/payment_method_spei_recurrent"
          }
        ],
        "title": "update_customer_payment_methods_response"
      },
      "payment_method_cash_response_allOf_agreements": {
        "properties": {
          "agreement": {
            "description": "Agreement number, you can use this number to pay in the store/bbva",
            "example": "2409526",
            "type": "string"
          },
          "provider": {
            "description": "Provider name, you can use this to know where to pay",
            "example": "bbva_cash_in",
            "type": "string"
          }
        },
        "type": "object"
      },
      "details_error": {
        "properties": {
          "code": {
            "example": "conekta.errors.authentication.missing_key",
            "type": "string"
          },
          "param": {
            "nullable": true,
            "type": "string"
          },
          "message": {
            "example": "Acceso no autorizado.",
            "type": "string"
          },
          "debug_message": {
            "example": "Please include your access key in your request.",
            "type": "string"
          }
        },
        "title": "details_error",
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```