Delete Payment Method
curl --request DELETE \
--url https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}import requests
url = "https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}")
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{
"message": "Unable to perform the request action with provided data."
}{
"message": "Attempted to perform an unauthorized operation."
}{
"message": "Unable to find an entity with the provided data."
}PaymentMethod
Delete Payment Method
Marks a stored payment method as inactive using its unique identifier. The method is no longer available for future charges, including subscriptions and one-time payments, but is not physically deleted from the system.
This approach allows for historical consistency in billing and audit logs, while preventing further use of the method. Typical use cases include expired cards, user-requested removal, or compliance-driven deactivation.
Before deactivating, ensure the payment method is not the primary one for any active subscriptions to avoid disruption.
DELETE
/
api
/
PaymentMethod
/
{paymentMethodId}
Delete Payment Method
curl --request DELETE \
--url https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}import requests
url = "https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.revolv3.com/api/PaymentMethod/{paymentMethodId}")
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{
"message": "Unable to perform the request action with provided data."
}{
"message": "Attempted to perform an unauthorized operation."
}{
"message": "Unable to find an entity with the provided data."
}Path Parameters
Required range:
1 <= x <= 1000000000Response
OK

