Enable clinic-owned saved-card autopay
Lets a clinic owner consent to off-session card charges for one active lab partnership. The selected card must already belong to that lab's connected Stripe customer.
Lets a clinic owner consent to off-session card charges for one active lab partnership. The selected card must already belong to that lab's connected Stripe customer.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/clinic-payment-methods/autopay" \ -H "Content-Type: application/json" \ -d '{ "partnershipId": "string", "paymentMethodId": "string" }'{ "enabled": true, "status": "active", "consentedAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "suspendedAt": "2019-08-24T14:15:22Z"}Delete Clinic Payment Method DELETE
Detach and remove a saved payment method from the authenticated clinic's Stripe customer. Clinic-owner only. Requires labId query parameter.
Get clinic autopay consent GET
Returns the clinic-owned saved-card autopay state for a partnership. Both partnership parties may read it; labs cannot mutate it.