Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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.

Headers

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.

Path Parameters

id
string<uuid>
required

The environment's id.

provider
enum<string>
required

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.

Available options:
stripe

Body

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.

Response

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
Example:

"stripe"

provider_account_id
string

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

Example:

"acct_1234"

published
integer
Example:

2

matched
integer

Already mapped: nothing was sent and nothing was written.

Example:

1

failed
integer
Example:

0

not_attempted
integer

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

Example:

0

rows
object[]