Skip to content

Recover an existing checkout link

GET
/organizations/{organization_id}/subscriptions/checkout.json
curl --request GET \
--url 'https://secure.ethicsportal.eu/organizations/example/subscriptions/checkout.json?interval=month' \
--header 'Authorization: Bearer <token>'

Read Stripe to find an open, unexpired subscription checkout for this organisation and the selected current plan. This works after reconnecting or switching assistants, including sessions created before this tool existed. Does not create a session or charge anything. Requires billing:write because the returned link grants access to the checkout. A personal token also needs its user to be a current administrator. A null checkout means there is no reusable link; check billing status before creating one. Provider failures are errors, never treated as an absent checkout.

organization_id
required
string

Obfuscated organisation ID returned by identity.

interval
required
string
Allowed values: month year

The plan to resume.

The current checkout link, or null when no matching open unexpired session exists or the organisation is already subscribed.

Media typeapplication/json
object
checkout
required
Any of:
object
url
required

Stripe-hosted page. Give it to the person who pays or manages billing; it works for whoever holds it until it expires.

string format: uri
expires_at
required

When the link stops working. Null for billing portal links, which expire shortly after creation; create one just before use.

string | null format: date-time

Example

{
"checkout": {
"url": "https://checkout.stripe.com/c/pay/cs_live_example",
"expires_at": "2026-11-22T12:00:00Z"
}
}

Invalid body

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token forbidden insufficient_scope not_found invalid_request agreement_required rate_limited temporarily_unavailable idempotency_key_reused idempotency_key_in_progress not_retryable channel_inactive invitation_unavailable already_subscribed no_subscription
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "invalid_request",
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}

Missing, unknown, expired or revoked token

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token forbidden insufficient_scope not_found invalid_request agreement_required rate_limited temporarily_unavailable idempotency_key_reused idempotency_key_in_progress not_retryable channel_inactive invitation_unavailable already_subscribed no_subscription
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "invalid_token",
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}

The token lacks the required scope (WWW-Authenticate names it), the user’s role does not allow the action, or an agreement must be accepted in the web application

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token forbidden insufficient_scope not_found invalid_request agreement_required rate_limited temporarily_unavailable idempotency_key_reused idempotency_key_in_progress not_retryable channel_inactive invitation_unavailable already_subscribed no_subscription
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "insufficient_scope",
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}

Organisation missing or inaccessible, API access suspended, or billing not configured

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token forbidden insufficient_scope not_found invalid_request agreement_required rate_limited temporarily_unavailable idempotency_key_reused idempotency_key_in_progress not_retryable channel_inactive invitation_unavailable already_subscribed no_subscription
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "not_found",
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}

Unknown interval

Media typeapplication/json
object
error
required
object
code
required
Allowed value: validation_failed
fields
required
Array<string>
>= 1 items unique items
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "validation_failed",
"fields": [
"interval"
],
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}

Rate limited; retry after the Retry-After interval

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token forbidden insufficient_scope not_found invalid_request agreement_required rate_limited temporarily_unavailable idempotency_key_reused idempotency_key_in_progress not_retryable channel_inactive invitation_unavailable already_subscribed no_subscription
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "rate_limited",
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}

Stripe could not be reached. Retry the lookup; do not infer that no checkout exists.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_token forbidden insufficient_scope not_found invalid_request agreement_required rate_limited temporarily_unavailable idempotency_key_reused idempotency_key_in_progress not_retryable channel_inactive invitation_unavailable already_subscribed no_subscription
feedback_url
required

Where to tell EthicsPortal what went wrong: POST product feedback here with the same token.

string format: uri

Example

{
"error": {
"code": "temporarily_unavailable",
"feedback_url": "https://secure.ethicsportal.eu/me/feedback.json"
}
}