Skip to content

`POST /v1/orgs/{org}/billing/checkout`.

POST
/v1/orgs/{org}/billing/checkout
curl --request POST \
--url https://api.updawg.net/v1/orgs/example/billing/checkout \
--header 'Content-Type: application/json' \
--data '{ "plan": "example" }'
org
required
string

Organization slug.

Media typeapplication/json
object
plan
required

team or business.

string
Examplegenerated
{
"plan": "example"
}

Where to send the person to pay.

Media typeapplication/json
object
url
required

Stripe Checkout. Send the person here; they come back to the portal’s billing page either way.

string
Examplegenerated
{
"url": "example"
}

Not a plan sold through checkout: team, business or enterprise.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No session.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Only an owner, in person, manages billing.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No such organization, or not yours.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Already subscribed (already-subscribed), or on Enterprise by contract with no subscription (enterprise-contract).

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

This deployment takes no payments (billing-unavailable).

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}