AI GNT API
Properties for PaymentMethodInfo:​string · required​string · required​integer · required​integer · required
​string · required
billing
Billing Status
GET
https://api.gntai.dev
/v1/billing/status
Payment Method
GET
https://api.gntai.dev
/v1/billing/payment-method
Payment Method › Responses
200
Successful Response
anyOf
At least one variant must match. Multiple variants may match simultaneously.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: brand, last4, exp_month +1 more | |
| type = null |
brandlast4exp_monthexp_yearCancel
POST
https://api.gntai.dev
/v1/billing/cancel
In-app cancel -- the whole point is not sending the customer to Stripe's portal for this. Schedules cancellation at period end (see cancel_subscription's own docstring) and confirms by email right away, synchronously, rather than waiting on the webhook that also syncs this same state for cancellations started elsewhere.
Cancel › Responses
200
Successful Response
cancel_at