DELETE
/v1/payment-methods/{id}Deletes the payment method for good. Only a signed-in person may call this.
Path parameters
- idstring (uuid)Required
Status codes
| Status | Meaning |
|---|---|
204 |
The payment method is gone. |
401 |
|
404 |
|
501 |
DELETE
/v1/payment-methods/{id}Example
curl -X DELETE https://api.certinvo.com/v1/payment-methods/$PAYMENT_METHOD_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY"const paymentMethodId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/payment-methods/${paymentMethodId}`, {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status)import os
import requests
payment_method_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.delete(
f"https://api.certinvo.com/v1/payment-methods/{payment_method_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)204
No response body.
Success response