Billing ›
Create billing portal
POST
/v1/billing/portalCreate billing portal.
Requestcurl
- curl -X POST https://agental.io/v1/billing/portal \
- -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK
- {
- "url": string,
- }
Where the account sees its invoices, changes its card, and cancels its plan.
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Where the account sees its invoices, changes its card, and cancels its plan.
JSON1 field
urlstring
Errors and other answers
| 409 | billing_not_configured, or |
| 409 | nothing_bought the account has not bought anything yet. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.