delete
/{tenantId}/v1/billing/payment-methods/{methodId}Detach a saved payment method
Requires Authentication
Billing
Payments
Removes the method on the provider side AND marks the local row as
detached. Refuses if the method is referenced by an auto-topup
configuration unless force=true (which also disables the config).
Path Parameters
| Name | Type | Description |
|---|---|---|
tenantIdrequired | string (uuid) | Tenant UUID |
methodIdrequired | string (uuid) | - |
Request Body
forceboolean
Responses
Detached
Response Bodyapplication/json
object
Code Examples
curl -X DELETE 'https://api-next.checkio.co.uk/{tenantId}/v1/billing/payment-methods/{methodId}' \
-H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json' \
-d '{
"force": false
}'