Skip to main content
PUT
Choose the billing cadence of an offering on your brand

Authorizations

Authorization
string
header
required

Per-client API key (M2M). Presented as Authorization: Bearer <key>.

Headers

Idempotency-Key
string
required

Required on every mutation. Replaying the same request with the same key returns the original result; reusing the key with a materially different request is rejected 409 with machine code IDEMPOTENCY_CONFLICT.

Minimum string length: 1
X-Brand-Id
string
required

Your brand id (brd_...). It must be one of the brands your API key's account owns; with a publishable key it must be the one brand the key was issued for. A missing or malformed value is refused with 400, and an unknown or foreign brand with 404.

Pattern: ^brd_[A-Za-z0-9][A-Za-z0-9_-]*$

Path Parameters

brand_id
string
required

The brand the offering is enabled on. Must be one of your account's own brands.

offering_ref
string
required

The offering code, as listed for your brand.

Body

application/json

The billing cadence you choose for the offering. Nothing else rides the body: the shipping cadence always follows the offering's supply, and the brand and offering come from the path.

billing
enum<string>
required

monthly charges every month of the medication's supply; upfront charges once for the whole term.

Available options:
monthly,
upfront

Response

the billing cadence you chose, with the shipping cadence it follows; or an idempotent replay of the original result

data
object

The billing cadence now set for the offering, and the shipping cadence it follows.