Skip to main content
POST
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. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

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: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Parâmetros de caminho

id
string<uuid>
obrigatório

The environment's id.

provider
enum<string>
obrigatório

The payment gateway. stripe today. A gateway UserKit has no adapter for is refused here rather than stored, because a connection nothing can charge is discovered at somebody's checkout.

Opções disponíveis:
stripe

Corpo

application/json
price_ids
string<uuid>[]

Which prices to publish. Omit it — or send no body at all — to publish every price in this environment that has no mapping on this connection's merchant account. A price named here is always reported, including when it is already mapped or archived.

Resposta

The report. Read not_attempted beside the tallies: it is what keeps a bounded or interrupted run from reading as “everything is mapped now”.

provider
string
Exemplo:

"stripe"

provider_account_id
string

The merchant account these prices were created in — half of what a gateway price id is unique inside.

Exemplo:

"acct_1234"

published
integer
Exemplo:

2

matched
integer

Already mapped: nothing was sent and nothing was written.

Exemplo:

1

failed
integer
Exemplo:

0

not_attempted
integer

Candidates left over the batch bound, or dropped because the gateway stopped answering. Run it again to continue.

Exemplo:

0

rows
object[]