Skip to main content
DELETE
/
payment-methods
/
{id}
Disable a payment method
curl --request DELETE \
  --url https://api.billing.io/v1/payment-methods/{id} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "type": "authentication_error",
    "code": "api_key_invalid",
    "message": "The API key provided is invalid.",
    "param": null
  }
}
Permanently disable a payment method. This cannot be undone.
curl -X DELETE https://api.billing.io/v1/payment-methods/pm_a1b2c3d4e5f6 \
  -H "Authorization: Bearer $BILLING_API_KEY"

Authorizations

Authorization
string
header
required

Use your secret API key as a Bearer token. Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).

Path Parameters

id
string
required

The payment method identifier (prefixed pm_)

Response

Payment method disabled