Hanzo AI
OpenapiBilling

Delete methods

Removes one card or account the caller has saved.

DELETE /v1/billing/methods/{id}

Addresshttps://api.hanzo.ai/v1/billing/methods/{id}
MethodDELETE
Operationdelete_billing_methods_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Removes one card or account the caller has saved.

It detaches only the CALLER'S own — the wallet this request bills from, resolved server-side — so an id belonging to another customer of the same org is not something this operation can reach. A platform or service caller detaches on the subject's behalf, and that authority is decided HERE, where the credential is, and travels as a value: authority decided twice is authority that eventually disagrees with itself.

The card is vaulted at the processor, so what goes is our token for it.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the saved method to detach, from the path.

Response

StatusBodyMeaning
200Detachmentok

200 body — 2 fields.

FieldInTypeAlwaysDescription
deletedbodybooleanDeleted is whether the method was actually removed.
idbodystringID is the method that was detached, echoed so a caller batching several can tell the answers apart.

Failure carries the platform error shape — see Errors.

Examples

hanzo billing methods rm <id>

Billing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page