Skip to main content
PATCH
Error

Autorizações

Authorization
string
header
obrigatório

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange.

Cabeçalhos

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing. Absent, the session's default organization answers.

Parâmetros de caminho

id
string<uuid>
obrigatório

The plan.

Parâmetros de consulta

environment
enum<string>
padrão:live

Which environment to act in. A view parameter, valid only on the staff surface — a machine credential never chooses its environment, it is resolved from the key.

Opções disponíveis:
live,
test

Corpo

application/json
name
string
description
string
display_order
integer
archived
boolean

true withdraws the plan from sale, false puts it back.

Resposta

The plan as it now stands. prices and features are not included — re-read the catalogue for those.

A plan you sell. Its prices and the features it carries come with it, because a pricing table needs all of them at once.

id
string<uuid>
key
string

Your own stable handle for the plan — lowercase letters, digits, _, - and .. Unique within an environment, and what promoting a catalogue to live matches on.

Exemplo:

"pro"

name
string
description
string
display_order
integer

Where the plan sits on a pricing table.

archived
boolean

No longer sold. Archived rather than deleted, because subscriptions point at it.

prices
object[]
features
object[]
created_at
string<date-time>