> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.crisscross.money/api-reference/collect/payers/stored-payment-methods/delete-stored-payment-method/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.crisscross.money/_mcp/server. # Delete Stored Payment Method DELETE https://api.crisscross.money/v1/payers/{payerId}/paymentMethods/{paymentMethodToken} Deletes a stored payment method associated with a payer. This operation is useful for removing outdated or unused payment methods, ensuring that only valid and current payment options are available for transactions. Reference: https://docs.crisscross.money/api-reference/collect/payers/stored-payment-methods/delete-stored-payment-method ## Request ### Path parameters - `payerId` (string, required) — The unique identifier for the payer. See the [Payer ID guide](/payer-id). - `paymentMethodToken` (string, required) — The token representing the payment method to delete. ## Response ### 200 Payment method deleted successfully. - `analyticsId` (string, optional) — Unique analytics identifier corresponding to a payment method. - `createdAt` (datetime, optional) — Creation date & time of the object (UTC). - `customerId` (string, optional) — The ID representing the customer. - `default` (boolean, optional) — Whether or not this payment method is the default. - `deleted` (boolean, optional) — Whether or not this object has been revoked. - `deletedAt` (datetime, optional) — Date & time when this object was revoked (UTC). - `description` (string, optional) — A friendly description given by the user. - `isVerified` (boolean, optional) — Whether or not this payment method was verified. - `paymentMethodData` (PayersPayerIdPaymentMethodsPaymentMethodTokenDeleteResponsesContentApplicationJsonSchemaPaymentMethodData, optional) - `paymentMethodType` (string, optional) — Payment method type associated with a token. - `token` (string, optional) — The vaulted payment method token. - `tokenType` (string, optional) — Type of the token (e.g., MULTI_USE). ## Errors ### 400 Bad Request Error Bad Request - Invalid request parameters. - `message` (string, required) — Human-readable description of what went wrong. - `error` (string, required) — Error category, typically the HTTP reason phrase (e.g. "Bad Request", "Unauthorized", "Conflict", "Unprocessable Entity", "Internal Server Error"). - `statusCode` (integer, required) — HTTP status code, mirroring the response header. The response header is the source of truth. ### 404 Not Found Error Not Found - Payment method not found. - `message` (string, required) — Human-readable description of what went wrong. - `error` (string, required) — Error category, typically the HTTP reason phrase (e.g. "Bad Request", "Unauthorized", "Conflict", "Unprocessable Entity", "Internal Server Error"). - `statusCode` (integer, required) — HTTP status code, mirroring the response header. The response header is the source of truth. ## Types ### PayersPayerIdPaymentMethodsPaymentMethodTokenDeleteResponsesContentApplicationJsonSchemaPaymentMethodData - `last4Digits` (string, optional) — Last four digits of the card number. - `expirationMonth` (string, optional) — Expiration month of the card. - `expirationYear` (string, optional) — Expiration year of the card. - `binData` (PayersPayerIdPaymentMethodsPaymentMethodTokenDeleteResponsesContentApplicationJsonSchemaPaymentMethodDataBinData, optional) ### PayersPayerIdPaymentMethodsPaymentMethodTokenDeleteResponsesContentApplicationJsonSchemaPaymentMethodDataBinData - `network` (string, optional) — Network of the card (e.g., AMEX). - `issuerCountryCode` (string, optional) — Country code of the issuer. - `issuerCurrencyCode` (string, optional) — Currency code of the issuer. - `regionalRestriction` (string, optional) — Regional restriction of the card. - `accountNumberType` (string, optional) — Type of the account number. - `accountFundingType` (string, optional) — Funding type of the account. - `prepaidReloadableIndicator` (string, optional) — Indicator if the card is reloadable. - `productUsageType` (string, optional) — Usage type of the product. - `productCode` (string, optional) — Code of the product. - `productName` (string, optional) — Name of the product. ## Examples **Response** ```json { "analyticsId": "ANALYTICS_123456", "createdAt": "2024-03-20T09:00:00Z", "customerId": "CUSTOMER_123456", "default": false, "deleted": true, "deletedAt": "2024-03-21T10:00:00Z", "description": "User's primary card", "isVerified": true, "paymentMethodData": { "last4Digits": "1234", "expirationMonth": "12", "expirationYear": "2026", "binData": { "network": "AMEX", "issuerCountryCode": "AW", "issuerCurrencyCode": "AED", "regionalRestriction": "DOMESTIC_USE_ONLY", "accountNumberType": "PRIMARY_ACCOUNT_NUMBER", "accountFundingType": "CREDIT", "prepaidReloadableIndicator": "RELOADABLE", "productUsageType": "CONSUMER", "productCode": "PROD_001", "productName": "Standard Card" } }, "paymentMethodType": "PAYMENT_CARD", "token": "TOKEN_abcdef123456", "tokenType": "MULTI_USE" } ``` **SDK Code** ```python Stored Payment Methods_deleteStoredPaymentMethod_example import requests url = "https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken" response = requests.delete(url) print(response.json()) ``` ```javascript Stored Payment Methods_deleteStoredPaymentMethod_example const url = 'https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken'; const options = {method: 'DELETE'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Stored Payment Methods_deleteStoredPaymentMethod_example package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Stored Payment Methods_deleteStoredPaymentMethod_example require 'uri' require 'net/http' url = URI("https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Delete.new(url) response = http.request(request) puts response.read_body ``` ```java Stored Payment Methods_deleteStoredPaymentMethod_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.delete("https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken") .asString(); ``` ```php Stored Payment Methods_deleteStoredPaymentMethod_example request('DELETE', 'https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken'); echo $response->getBody(); ``` ```csharp Stored Payment Methods_deleteStoredPaymentMethod_example using RestSharp; var client = new RestClient("https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken"); var request = new RestRequest(Method.DELETE); IRestResponse response = client.Execute(request); ``` ```swift Stored Payment Methods_deleteStoredPaymentMethod_example import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://api.crisscross.money/v1/payers/payerId/paymentMethods/paymentMethodToken")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```