Billing
Create a billing link
A link the owner opens to pay for a plan, change or cancel it, or update the card.
POST
Needs
billing:create. Only a workspace owner has a plan here; a teammate gets 403. See Permissions.stripe pages need no PostSyncer sign-in; app pages ask the person to sign in. expires_at is when a payment page stops working (24 hours); it is null for the others. A billing portal link is good for a short visit, so make it when the person is ready to open it.
plan is a key from plans in Get billing, like pro-v2. cycle is monthly or yearly.
One person makes 10 links an hour. The 11th makes nothing and answers 429 with error: rate_limited, a Retry-After header and the wait in the message. A link refused for another reason doesn’t count.
Errors
Related
- Billing from an agent: the pay link, step by step.
- Get billing: the plan and the plans on sale.
Authorizations
Body
application/json
Response
The link.
A link for the owner to open in the browser.