Skip to main content
POST
Bulk Set Prices

Headers

authorization
string | null
X-Organization-ID
string | null

Cookies

stytch_session
string | null

Body

application/json

Create several prices at once for a set of variants. Each line in lines becomes one price record per variant, batched by effective date (always 'auto' — same rule as mass-create). Lines may repeat a price type (e.g. two sale dates) and may share or differ in effective date.

source is optional and, when present, marks the submission as coming from the MAP-policy colorway flow — see BulkSetPricesSource. Absent source reproduces today's plain manual-entry behavior byte-for-byte.

lines
PriceLine · object[]
required
Minimum array length: 1
product_key
string
required
variant_keys
string[]
required
source
BulkSetPricesSource · object | null

Present only when the submission came from the MAP-policy colorway "Generate Price Changes" flow (the per-colorway view on the MAP Policy page). Stamps lineage onto every record the submission creates, drives per-variant previous_amount recompute, routes auto-batches to a policy-keyed + policy-named batch instead of the plain date batch, and supersedes any conflicting future records the user confirmed.

Response

Successful Response