Pay for a public plan through Stripe Checkout: its owner. Send the browser to the answer's url; the account changes once Stripe says it's paid, never on the browser's return
POST
/v1/buyer/billing/checkout
const url = 'https://example.com/v1/buyer/billing/checkout';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"plan":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/buyer/billing/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "plan": "example" }'Who: a workspace’s owner. Not for API keys.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
Made once per action and sent again on every retry of it, so the service acts once: the request_id of the create or money-moving call; a new one when left out
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
plan
required
string
Example generated
{ "plan": "example"}Responses
Section titled “Responses”Created
Media typeapplication/json
object
expires_at
required
string | null format: date-time
url
required
string
Example generated
{ "expires_at": "2026-04-15T12:00:00Z", "url": "example"}default
Section titled “default”An error, as go-commons apperr maps it
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
Example generated
{ "error": { "code": "example", "fields": { "additionalProperty": "example" }, "message": "example" }}