Requests removal of a stored payment method from a customer record.
If the payment method has no active mandates, it is permanently deleted and cannot be reattached.
If the payment method has active mandates, it is not deleted. Instead, its usage is set to
OFF_SESSION (if it was not already), so that it can continue to be used for mandate-driven
payments. The 200 response is returned in both cases; callers cannot distinguish between a
deletion and a mandate-retained outcome from the response alone.
Request processed. The payment method was either deleted (no active mandates) or retained with usage set to OFF_SESSION (active mandates present).
Your Toast API client does not have permission to detach the saved payment method.
The specified saved payment method was not found.
Internal server error.
{- "customerId": "string"
}{- "id": "string",
- "type": "string",
- "card": {
- "lastFour": "string",
- "expiry": {
- "month": "string",
- "year": "string"
}, - "type": "Visa"
}
}