GuideLab API

Delete Clinic Payment Method

Detach and remove a saved payment method from the authenticated clinic's Stripe customer. Clinic-owner only. Requires labId query parameter.

DELETE
/clinic-payment-methods/{id}

Detach and remove a saved payment method from the authenticated clinic's Stripe customer. Clinic-owner only. Requires labId query parameter.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

Stripe payment method ID to detach

Query Parameters

labId*string

Lab ID the payment method belongs to

Length1 <= length

Response Body

application/json

application/json

curl -X DELETE "https://example.com/clinic-payment-methods/pm_1234567890abcdef?labId=550e8400-e29b-41d4-a716-446655440000"
{  "success": true}
{  "error": "string"}
Empty
Empty
Empty