Skip to main content
DELETE
/
api
/
v1
/
billing
/
payment-methods
/
{id}
Detach a saved Stripe payment method
curl --request DELETE \
  --url http://localhost:3051/api/v1/billing/payment-methods/{id} \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Detaches a card from your Stripe Customer and removes it from your account. If the detached card was your auto top-up default, auto top-up is automatically disabled with reason payment_method_detached. You can re-enable it after adding a new card. Requires the billing:write scope. Returns 204 No Content on success.

Errors

CodeWhen
404 NOT_FOUNDThe payment method id is unknown or belongs to a different client.

Authorizations

Authorization
string
header
required

API key from the Stars dashboard

Path Parameters

id
string
required
Maximum string length: 64

Response

200

Default Response