GuideLab API

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.

POST
/clinic-payment-methods/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.

Authorization

__Secure-guidelab-prod.session_token<token>

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"}
Empty
Empty
Empty
Empty