You can include schedule in the same call, so a single request
creates a scheduled draft. A schedule.start_at is a promise to
launch unattended, so it is judged here the way
PUT /experiments/{id}/schedule
judges it. For a price test, that check includes your store’s theme
check: if it has not passed, the response is 422
theme_check_required and no test is created. Leave schedule out
and the draft is created as usual, whatever the theme check says.
What you can’t create here: a visual editor test’s DOM changes,
combined tests, checkout block customizations, and offer widgets.
You author those in the ABConvert admin, and they read back read-only.
A visual_editor test itself is creatable, carrying custom CSS and
JavaScript per test group.
Bearer tokens created in the ABConvert admin under
Settings → MCP & API Access. Scopes:
read_experiments and write_experiments (write implies read; the
default is read). See
Authentication for which scope each
request needs.
Headers
Idempotency-Key
string
Replaying a request with the same key returns the original response
instead of creating a second resource. Reusing a key with a different
body returns 409 idempotency_key_in_use, and a key outside 1-255
characters returns 400 invalid_idempotency_key rather than being
ignored. See Idempotency.
Required string length: 1 - 255
Body
application/json
type
enum<string>
required
The types you can create through the API. A combined test is authored in the ABConvert admin, with read and lifecycle access only.
Available options:
price,
shipping,
theme,
template,
url_redirect,
checkout,
offer,
subscription,
visual_editor
name
string
required
Maximum string length: 255
test_groups
object[]
required
Required array length: 2 - 5 elements
Show child attributes
hypothesis
string
What you expect this test to show, in your own words.
primary_metric
enum<string>
Available options:
revenue_per_visitor,
average_order_value,
conversion_rate,
profit_per_visitor,
add_to_cart_rate,
reached_checkout_rate
traffic_allocation
integer
default:100
The percentage of eligible visitors who enter the test.
Required range: 1 <= x <= 100
shared
object
Required on price, shipping, template, url_redirect, and subscription
tests, which each carry a mandatory key here. Optional on offer
and checkout. Not accepted on theme and visual_editor, which
run storewide with every setting on their test groups; sending it
returns 422. Omitting it where it is required returns 422 too.
Show child attributes
schedule
object
The window the scheduler runs the test in. Send at least one bound.
After launch, only end_at is editable.
A start_at is checked as a launch when you send it, so a test that
could not launch cannot book one. For a price test, that check
includes your store's theme check: if it has not passed, the request
returns 422 theme_check_required and no window is written. Request
the check in the ABConvert admin, then send the start_at again.
Sending end_at on its own is never refused for this reason.
Show child attributes
audience
object
Limits the test to visitors who match your filters. Without an
audience, every visitor is eligible. In PATCH, audience: null
turns targeting off.
Filter groups combine with AND: a visitor must match every filter
group to enter the test. Filters inside one filter group combine
with OR: one match is enough.
To require two filters at once, put each one in its own filter
group. The example below enters visitors who are on mobile and new.
Putting the same two filters in one filter group would enter
visitors who are on mobile or new instead.
A test whose targeting you turn off in the ABConvert admin reads
back with no audience.
The created draft. The response can carry non-blocking warnings.
object
string
required
Allowed value: "experiment"
id
string
required
The test's numeric ID as a string.
Example:
"3021"
type
enum<string>
required
What the test changes: product prices, shipping rates, the theme a
visitor sees, a page template, the URL a visitor lands on, checkout
delivery and payment methods, a cart offer, or a subscription plan. visual_editor is a
storefront edit: custom CSS and JavaScript, which you can write here,
alongside DOM changes authored in the ABConvert visual editor.
combined bundles more than one change type in one test. See
CreatableExperimentType for the ones you can create here.
Available options:
price,
shipping,
theme,
template,
url_redirect,
checkout,
offer,
subscription,
visual_editor,
combined
status
enum<string>
required
The test's current status. The ABConvert admin labels ended as
Closed; the wire value stays ended. Scheduling isn't a status: a
scheduled test is a draft or preview with a schedule.
Available options:
draft,
preview,
active,
paused,
ended,
failed,
archived
name
string
required
test_groups
object[]
required
Show child attributes
created_at
string<date-time>
required
updated_at
string<date-time>
required
hypothesis
string | null
primary_metric
enum<string>string
The metric the test is judged on; custom metrics are response-only.
Available options:
revenue_per_visitor,
average_order_value,
conversion_rate,
profit_per_visitor,
add_to_cart_rate,
reached_checkout_rate
Example:
"revenue_per_visitor"
traffic_allocation
integer
shared
object
Configuration shared by every test group in the test, keyed by
change type. Send exactly the key that matches the test's type. A
combined test carries one key per change type it bundles. A theme
or visual_editor test has no key here and takes no shared.
Show child attributes
schedule
object | null
The window the scheduler runs the test in. Send at least one bound.
After launch, only end_at is editable.
A start_at is checked as a launch when you send it, so a test that
could not launch cannot book one. For a price test, that check
includes your store's theme check: if it has not passed, the request
returns 422 theme_check_required and no window is written. Request
the check in the ABConvert admin, then send the start_at again.
Sending end_at on its own is never refused for this reason.
Show child attributes
audience
object | null
Limits the test to visitors who match your filters. Without an
audience, every visitor is eligible. In PATCH, audience: null
turns targeting off.
Filter groups combine with AND: a visitor must match every filter
group to enter the test. Filters inside one filter group combine
with OR: one match is enough.
To require two filters at once, put each one in its own filter
group. The example below enters visitors who are on mobile and new.
Putting the same two filters in one filter group would enter
visitors who are on mobile or new instead.
A test whose targeting you turn off in the ABConvert admin reads
back with no audience.
True when the test has force-assign rules, which you author in
the ABConvert admin. ABConvert evaluates them only for visitors
who already match audience, and applies the first rule whose
filters all match: that rule either puts the visitor in the test
group it names or keeps them out of the test, in place of the
random split.
assignment_version
integer
read-only
Increments whenever visitors are reassigned to test groups, for example after a split change.
product_group
object | null
read-only
The product group attached to this test, or null. Its id is what
product_group_id takes on a custom result query. No
product-group endpoint exists, so read it here.
Show child attributes
results_summary
object | null
Present only with ?include=results_summary. Null when no
snapshot has been computed for the test yet.
Show child attributes
started_at
string<date-time> | null
ended_at
string<date-time> | null
warnings
object[]
Non-blocking findings. Absent when the request raised none.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"ABConvert","colors":{"primary":"#82C621","light":"#ACFF17","dark":"#217BD1"},"logo":{"light":"https://mintcdn.com/abconvert/4yA52tsrkGprYEUg/images/ABConvert_docs_lightmode.svg?fit=max\u0026auto=format\u0026n=4yA52tsrkGprYEUg\u0026q=85\u0026s=4d993486a7a067b38b467aeffa07de01","dark":"https://mintcdn.com/abconvert/TfodKqLthDlOcMjW/images/ABConvert_docs_darkmode.svg?fit=max\u0026auto=format\u0026n=TfodKqLthDlOcMjW\u0026q=85\u0026s=40441b20987188f17066bbe227d4f4ca"},"favicon":"https://mintcdn.com/abconvert/f09IwWgWVmHpcZJi/images/favicon.svg?fit=max\u0026auto=format\u0026n=f09IwWgWVmHpcZJi\u0026q=85\u0026s=167ae8c0ca36d4d2c9a730a7f16c1fd4","navbar":{"primary":{"type":"github","href":"https://github.com/ABConvert"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"abconvert","hasAudioNarration":false,"actualSubdomain":"abconvert","customDomains":["docs.abconvert.io"],"gitSource":{"type":"github","owner":"abconvert","repo":"ab-test-app","deployBranch":"main","contentDirectory":"external-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0ec4dbb3aa18a1a9a6b612","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Documentation","count":75},{"language":"default","tag":"REST API","count":21},{"language":"default","tag":"Experiments","count":19},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Headless SDK","count":16},{"language":"default","tag":"Analytics","count":12},{"language":"default","tag":"AI integration (MCP)","count":9},{"language":"default","tag":"Lifecycle","count":7},{"language":"default","tag":"JavaScript API","count":6},{"language":"default","tag":"Get Started","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".nav-logo,.nav-logo img{height:40px!important;max-height:40px!important}html:not(.dark) svg[aria-roledescription=\"sequence\"] .note{fill:#eef8dc!important;stroke:#82c621!important}html:not(.dark) svg[aria-roledescription=\"sequence\"] .noteText,html:not(.dark) svg[aria-roledescription=\"sequence\"] .noteText>tspan{fill:#0f1a05!important}svg[aria-roledescription^=\"flowchart\"] .node.done :is(rect,path,polygon,circle){fill:#acff17!important}html:not(.dark) svg[aria-roledescription^=\"flowchart\"] .node.done :is(rect,path,polygon,circle){fill:#eef8dc!important}svg[aria-roledescription^=\"flowchart\"] .node.done :is(.nodeLabel,.nodeLabel p,span){color:#0f1a05!important}html:not(.dark) svg[aria-roledescription^=\"flowchart\"] :is(.edgeLabel,.labelBkg,.edgeLabel p){background-color:#ffffff!important}html.dark svg[aria-roledescription^=\"flowchart\"] :is(.edgeLabel,.labelBkg,.edgeLabel p){background-color:#0c0e0b!important}"}]}
{"page":{"pagePath":"api-reference/experiments/create-a-test","slug":"/api-reference/experiments/create-a-test","pageMetadata":{"title":"Create a test","description":"Creates a test in `draft`. Launching is a separate step: call\n[`POST /experiments/{id}/start`](/api-reference/lifecycle/launch-a-test).\n\nYou can include `schedule` in the same call, so a single request\ncreates a scheduled draft. A `schedule.start_at` is a promise to\nlaunch unattended, so it is judged here the way\n[`PUT /experiments/{id}/schedule`](/api-reference/experiments/set-the-schedule-window)\njudges it. For a price test, that check includes your store's theme\ncheck: if it has not passed, the response is 422\n`theme_check_required` and no test is created. Leave `schedule` out\nand the draft is created as usual, whatever the theme check says.\n\nWhat you can't create here: a visual editor test's DOM changes,\n`combined` tests, checkout block customizations, and offer widgets.\nYou author those in the ABConvert admin, and they read back read-only.\nA `visual_editor` test itself is creatable, carrying custom CSS and\nJavaScript per test group.\n\nFor the plan each test type needs, see\n[Feature availability](/api-reference/overview#feature-availability).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments","href":"/api-reference/experiments/create-a-test","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Creates a test in \", _jsx(_components.code, {\n children: \"draft\"\n }), \". Launching is a separate step: call\\n\", _jsx(_components.a, {\n href: \"/api-reference/lifecycle/launch-a-test\",\n children: _jsx(_components.code, {\n children: \"POST /experiments/{id}/start\"\n })\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"You can include \", _jsx(_components.code, {\n children: \"schedule\"\n }), \" in the same call, so a single request\\ncreates a scheduled draft. A \", _jsx(_components.code, {\n children: \"schedule.start_at\"\n }), \" is a promise to\\nlaunch unattended, so it is judged here the way\\n\", _jsx(_components.a, {\n href: \"/api-reference/experiments/set-the-schedule-window\",\n children: _jsx(_components.code, {\n children: \"PUT /experiments/{id}/schedule\"\n })\n }), \"\\njudges it. For a price test, that check includes your store’s theme\\ncheck: if it has not passed, the response is 422\\n\", _jsx(_components.code, {\n children: \"theme_check_required\"\n }), \" and no test is created. Leave \", _jsx(_components.code, {\n children: \"schedule\"\n }), \" out\\nand the draft is created as usual, whatever the theme check says.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"What you can’t create here: a visual editor test’s DOM changes,\\n\", _jsx(_components.code, {\n children: \"combined\"\n }), \" tests, checkout block customizations, and offer widgets.\\nYou author those in the ABConvert admin, and they read back read-only.\\nA \", _jsx(_components.code, {\n children: \"visual_editor\"\n }), \" test itself is creatable, carrying custom CSS and\\nJavaScript per test group.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"For the plan each test type needs, see\\n\", _jsx(_components.a, {\n href: \"/api-reference/overview#feature-availability\",\n children: \"Feature availability\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a test","description":"Creates a test in `draft`. Launching is a separate step: call\n[`POST /experiments/{id}/start`](/api-reference/lifecycle/launch-a-test).\n\nYou can include `schedule` in the same call, so a single request\ncreates a scheduled draft. A `schedule.start_at` is a promise to\nlaunch unattended, so it is judged here the way\n[`PUT /experiments/{id}/schedule`](/api-reference/experiments/set-the-schedule-window)\njudges it. For a price test, that check includes your store's theme\ncheck: if it has not passed, the response is 422\n`theme_check_required` and no test is created. Leave `schedule` out\nand the draft is created as usual, whatever the theme check says.\n\nWhat you can't create here: a visual editor test's DOM changes,\n`combined` tests, checkout block customizations, and offer widgets.\nYou author those in the ABConvert admin, and they read back read-only.\nA `visual_editor` test itself is creatable, carrying custom CSS and\nJavaScript per test group.\n\nFor the plan each test type needs, see\n[Feature availability](/api-reference/overview#feature-availability).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments","href":"/api-reference/experiments/create-a-test","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Experiments"],"operationId":"createExperiment","summary":"Create a test","description":"Creates a test in `draft`. Launching is a separate step: call\n[`POST /experiments/{id}/start`](/api-reference/lifecycle/launch-a-test).\n\nYou can include `schedule` in the same call, so a single request\ncreates a scheduled draft. A `schedule.start_at` is a promise to\nlaunch unattended, so it is judged here the way\n[`PUT /experiments/{id}/schedule`](/api-reference/experiments/set-the-schedule-window)\njudges it. For a price test, that check includes your store's theme\ncheck: if it has not passed, the response is 422\n`theme_check_required` and no test is created. Leave `schedule` out\nand the draft is created as usual, whatever the theme check says.\n\nWhat you can't create here: a visual editor test's DOM changes,\n`combined` tests, checkout block customizations, and offer widgets.\nYou author those in the ABConvert admin, and they read back read-only.\nA `visual_editor` test itself is creatable, carrying custom CSS and\nJavaScript per test group.\n\nFor the plan each test type needs, see\n[Feature availability](/api-reference/overview#feature-availability).\n","security":["ce7d83d0-67ff-4843-9b10-62a9b5050f4d"],"parameters":["eb44d923-e344-49bb-8f3d-2504b6705b4e"],"requestBody":"92f0d21f-bbe7-4f69-b0b3-365ab586e23d","responses":{"201":"11e8b3cb-694d-46dd-9dc9-8b84ac1a747f","400":"07ab4024-c79b-458b-bdb7-a0543f112f6d","401":"8407a7ef-a911-404c-acfd-514b59849483","403":"fda6acdb-1333-4d62-bc4d-946034f6e22d","409":"2dd8e0e9-acd2-4a08-a7b9-175bd69f5ee4","422":"3edcf99c-7673-42c2-8949-95949d34cf83","429":"653e17ec-12f4-47c3-a2eb-1e00ad52ec25","default":"09bb1a69-1636-4448-92c8-13f3c098573a"},"method":"post","type":"path","servers":["cc7458c0-ed26-4cb1-b0b9-54a4560c7080"],"path":"/experiments","baseUrlOptions":["https://api.abconvert.io/v1"],"title":"Create a test","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"eb44d923-e344-49bb-8f3d-2504b6705b4e":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"Replaying a request with the same key returns the original response\ninstead of creating a second resource. Reusing a key with a different\nbody returns 409 `idempotency_key_in_use`, and a key outside 1-255\ncharacters returns 400 `invalid_idempotency_key` rather than being\nignored. See [Idempotency](/api-reference/overview#idempotency).\n","uniqueKey":"","typeLabel":"string"},"description":"Replaying a request with the same key returns the original response\ninstead of creating a second resource. Reusing a key with a different\nbody returns 409 `idempotency_key_in_use`, and a key outside 1-255\ncharacters returns 400 `invalid_idempotency_key` rather than being\nignored. See [Idempotency](/api-reference/overview#idempotency).\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["type","name","test_groups"],"properties":{"type":{"type":"string","enum":["price","shipping","theme","template","url_redirect","checkout","offer","subscription","visual_editor"],"description":"The types you can create through the API. A `combined` test is authored in the ABConvert admin, with read and lifecycle access only.","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","maxLength":255,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"test_groups":{"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","description":"A test group's identity is its position in `test_groups`. The first\nentry is index 0. Results, preview URLs, and keyed merges in PATCH\nall reference that index, so `name` is free to change at any time.\n","required":["split","changes"],"properties":{"split":{"type":"integer","minimum":0,"maximum":100,"description":"Splits across test groups must sum to 100, or the request\nreturns 422 `split_sum_invalid`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].split","typeLabel":"integer"},"changes":{"type":"array","items":{"oneOf":[{"type":"object","title":"Price change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","adjustment"],"properties":{"type":{"type":"string","const":"price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.type","typeLabel":"string"},"adjustment":{"oneOf":[{"type":"object","title":"Percentage","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","minimum":-100,"maximum":100,"description":"Signed percent. `-10` decreases prices by 10%. Writes accept\nintegers. Tests authored in the ABConvert admin can read\nback decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.0.value","typeLabel":"number"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","description":"A signed money delta. `{\"amount\": \"-5.00\", \"currency\": \"USD\"}`\ntakes 5.00 off each price.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment","typeLabel":"Percentage · object | Fixed amount · object"},"prices":{"type":"array","description":"Exact prices, one entry per product variant.\n\n`price` is the base price. Omit it to let `adjustment` set the\nbase. `country_prices` holds per-country overrides.\n\nPATCH merges entries by `product_variant_id`, and merges\n`country_prices` entries by `country`. The exception is a change\ncarrying `adjustment`, which replaces the whole list instead.\n","example":[{"product_variant_id":"gid://shopify/ProductVariant/45678","price":{"amount":"17.99","currency":"USD"},"compare_at_price":{"amount":"24.99","currency":"USD"},"country_prices":[{"country":"AU","price":{"amount":"27.99","currency":"AUD"}}]}],"items":{"type":"object","required":["product_variant_id"],"properties":{"product_variant_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/ProductVariant/45678","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].product_variant_id","typeLabel":"string"},"price":{"type":"object","description":"The base price. Omitted = derived from the adjustment.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].compare_at_price","typeLabel":"object"},"remove":{"type":"boolean","writeOnly":true,"description":"Deletes this entry. PATCH only. Sending it on create returns 400 `unknown_parameter`.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].remove","typeLabel":"boolean"},"country_prices":{"type":"array","description":"Per-country overrides. Every country here must be covered\nby `shared.price.markets`, or the request returns 422\n`market_pricing_incomplete`.\n","items":{"oneOf":[{"type":"object","title":"Set price","required":["country","price"],"properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price","typeLabel":"object"},"remove":{"type":"boolean","writeOnly":true,"description":"Deletes this entry. PATCH only. Sending it on create returns 400 `unknown_parameter`.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.remove","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0","typeLabel":"Set price · object"},{"type":"object","title":"Remove entry","required":["country","remove"],"properties":{"remove":{"type":"boolean","description":"Deletes this entry. PATCH only. Sending it on create returns 400 `unknown_parameter`.","const":true,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.remove","typeLabel":"boolean"},"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1","typeLabel":"Remove entry · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX]","typeLabel":"Set price · object | Remove entry · object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices","typeLabel":"(Set price · object | Remove entry · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0","typeLabel":"Price change · object"},{"type":"object","title":"Price change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","prices"],"properties":{"type":{"type":"string","const":"price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.type","typeLabel":"string"},"prices":{"type":"array","description":"Exact prices, one entry per product variant.\n\n`price` is the base price. Omit it to let `adjustment` set the\nbase. `country_prices` holds per-country overrides.\n\nPATCH merges entries by `product_variant_id`, and merges\n`country_prices` entries by `country`. The exception is a change\ncarrying `adjustment`, which replaces the whole list instead.\n","example":[{"product_variant_id":"gid://shopify/ProductVariant/45678","price":{"amount":"17.99","currency":"USD"},"compare_at_price":{"amount":"24.99","currency":"USD"},"country_prices":[{"country":"AU","price":{"amount":"27.99","currency":"AUD"}}]}],"items":{"type":"object","required":["product_variant_id"],"properties":{"product_variant_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/ProductVariant/45678","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].product_variant_id","typeLabel":"string"},"price":{"type":"object","description":"The base price. Omitted = derived from the adjustment.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].compare_at_price","typeLabel":"object"},"remove":{"type":"boolean","writeOnly":true,"description":"Deletes this entry. PATCH only. Sending it on create returns 400 `unknown_parameter`.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].remove","typeLabel":"boolean"},"country_prices":{"type":"array","description":"Per-country overrides. Every country here must be covered\nby `shared.price.markets`, or the request returns 422\n`market_pricing_incomplete`.\n","items":{"oneOf":[{"type":"object","title":"Set price","required":["country","price"],"properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price","typeLabel":"object"},"remove":{"type":"boolean","writeOnly":true,"description":"Deletes this entry. PATCH only. Sending it on create returns 400 `unknown_parameter`.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.remove","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0","typeLabel":"Set price · object"},{"type":"object","title":"Remove entry","required":["country","remove"],"properties":{"remove":{"type":"boolean","description":"Deletes this entry. PATCH only. Sending it on create returns 400 `unknown_parameter`.","const":true,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.remove","typeLabel":"boolean"},"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1","typeLabel":"Remove entry · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX]","typeLabel":"Set price · object | Remove entry · object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices","typeLabel":"(Set price · object | Remove entry · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices","typeLabel":"object[]"},"adjustment":{"oneOf":[{"type":"object","title":"Percentage","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","minimum":-100,"maximum":100,"description":"Signed percent. `-10` decreases prices by 10%. Writes accept\nintegers. Tests authored in the ABConvert admin can read\nback decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.0.value","typeLabel":"number"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","description":"A signed money delta. `{\"amount\": \"-5.00\", \"currency\": \"USD\"}`\ntakes 5.00 off each price.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.amount","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1","typeLabel":"Fixed amount · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment","typeLabel":"Percentage · object | Fixed amount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1","typeLabel":"Price change · object"},{"type":"object","title":"Shipping change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","offered_rates"],"properties":{"type":{"type":"string","const":"shipping","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.type","typeLabel":"string"},"offered_rates":{"type":"array","minItems":1,"items":{"type":"object","required":["zone_id","rates"],"properties":{"zone_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/DeliveryZone/282141261","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].zone_id","typeLabel":"string"},"rates":{"type":"array","items":{"oneOf":[{"type":"object","title":"Shopify rate","description":"Keeps an existing Shopify rate as-is. Add any other field to change it.","required":["shopify_rate_id"],"properties":{"shopify_rate_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/DeliveryMethodDefinition/789","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.shopify_rate_id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.name","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.price","typeLabel":"object"},"condition":{"oneOf":[{"type":"object","title":"Order price","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.maximum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.maximum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Order weight","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_weight","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.minimum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.minimum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.maximum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.maximum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1","typeLabel":"Order weight · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition","typeLabel":"Order price · object | Order weight · object"},"transit_time":{"type":"object","description":"The delivery estimate shown with the rate. `max_days` must be greater than or equal to `min_days`.","properties":{"min_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.transit_time.min_days","typeLabel":"integer"},"max_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.transit_time.max_days","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.transit_time","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0","typeLabel":"Shopify rate · object"},{"type":"object","title":"New rate","required":["name","price"],"properties":{"name":{"type":"string","minLength":1,"example":"Express","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.name","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.price.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.price","typeLabel":"object"},"condition":{"oneOf":[{"type":"object","title":"Order price","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.maximum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.maximum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Order weight","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_weight","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.minimum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.minimum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.maximum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.maximum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1","typeLabel":"Order weight · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition","typeLabel":"Order price · object | Order weight · object"},"transit_time":{"type":"object","description":"The delivery estimate shown with the rate. `max_days` must be greater than or equal to `min_days`.","properties":{"min_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.transit_time.min_days","typeLabel":"integer"},"max_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.transit_time.max_days","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.transit_time","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1","typeLabel":"New rate · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX]","typeLabel":"Shopify rate · object | New rate · object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates","typeLabel":"(Shopify rate · object | New rate · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2","typeLabel":"Shipping change · object"},{"type":"object","title":"Theme change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","theme_id"],"properties":{"type":{"type":"string","const":"theme","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.3.type","typeLabel":"string"},"theme_id":{"type":"string","description":"The theme this test group shows. On the control, sending\n`changes: []` means the main theme; it is resolved at create\ntime and reads back as an explicit `theme_id`, which is the\ntheme a visitor will actually be shown. An explicit value pins a\nspecific theme.\n","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/OnlineStoreTheme/987654321","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.3.theme_id","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.3","typeLabel":"Theme change · object"},{"type":"object","title":"Template change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","template_key"],"properties":{"type":{"type":"string","const":"template","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.4.type","typeLabel":"string"},"template_key":{"type":"string","minLength":1,"description":"The template file key, for example `product.summer.json`. ABConvert builds the `template_preview_url` for this test group from it.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.4.template_key","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.4","typeLabel":"Template change · object"},{"type":"object","title":"URL redirect change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","destinations"],"properties":{"type":{"type":"string","const":"url_redirect","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.type","typeLabel":"string"},"destinations":{"type":"array","minItems":1,"description":"One destination per rule key in `shared.url_redirect.rules`.","items":{"type":"object","required":["rule_key","url"],"properties":{"rule_key":{"type":"string","minLength":1,"description":"The `key` of the rule in `shared.url_redirect.rules` this destination answers.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations.items.[INDEX].rule_key","typeLabel":"string"},"url":{"type":"string","minLength":1,"description":"Where a matching visitor is sent: a path on this store,\nstarting with `/`. A full URL, anything containing `//` or\n`:`, or any whitespace returns 422 `path_invalid`. A\ndestination identical to an `exact` trigger's `match_value`\nreturns 422 `destination_matches_trigger`.\n","example":"/products/new-pdp","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5","typeLabel":"URL redirect change · object"},{"type":"object","title":"Checkout: hide methods","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","target","action","method_names"],"properties":{"type":{"type":"string","const":"checkout","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.type","typeLabel":"string"},"target":{"type":"string","enum":["delivery","payment"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.target","typeLabel":"enum\u003cstring>"},"action":{"type":"string","const":"hide","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.action","typeLabel":"string"},"method_names":{"type":"array","minItems":1,"items":{"type":"string","minLength":1,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.method_names.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.method_names","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6","typeLabel":"Checkout: hide methods · object"},{"type":"object","title":"Checkout: reorder methods","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","target","action","pin_rules"],"properties":{"type":{"type":"string","const":"checkout","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.type","typeLabel":"string"},"target":{"type":"string","enum":["delivery","payment"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.target","typeLabel":"enum\u003cstring>"},"action":{"type":"string","const":"reorder","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.action","typeLabel":"string"},"pin_rules":{"type":"array","minItems":1,"description":"Pins matching methods to the top of the list, in rule order.","items":{"type":"object","required":["match_type","value"],"properties":{"match_type":{"type":"string","enum":["exact","contains"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","example":"Shop Pay","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7","typeLabel":"Checkout: reorder methods · object"},{"type":"object","title":"Checkout: rename methods","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","target","action","rename_rules"],"properties":{"type":{"type":"string","const":"checkout","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.type","typeLabel":"string"},"target":{"type":"string","enum":["delivery","payment"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.target","typeLabel":"enum\u003cstring>"},"action":{"type":"string","const":"rename","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.action","typeLabel":"string"},"rename_rules":{"type":"array","minItems":1,"description":"Each rule matches a method name and rewrites it.","items":{"type":"object","required":["match_type","value","mode","to"],"properties":{"match_type":{"type":"string","enum":["exact","contains"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The method-name pattern to match.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].value","typeLabel":"string"},"mode":{"type":"string","enum":["replace","append","prepend"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"to":{"type":"string","description":"The new text. `mode` decides whether it replaces the matched name, appends to it, or prepends to it.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].to","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8","typeLabel":"Checkout: rename methods · object"},{"type":"object","title":"Offer change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","title","discounts"],"properties":{"type":{"type":"string","const":"offer","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.type","typeLabel":"string"},"title":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.title","typeLabel":"string"},"discounts":{"type":"array","minItems":1,"maxItems":1,"description":"Exactly one discount per test group in v1. It is an array so\nthat multi-discount offers can be added later without a\nbreaking change.\n","items":{"oneOf":[{"type":"object","title":"Product discount","required":["type","value"],"properties":{"type":{"type":"string","const":"product_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.type","typeLabel":"string"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value","typeLabel":"Percentage · object | Fixed amount · object"},"scope":{"oneOf":[{"type":"object","title":"All products","description":"Which products the discount applies to. Omitted = all products.","required":["type"],"properties":{"type":{"type":"string","const":"all_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.0","typeLabel":"All products · object"},{"type":"object","title":"Specific products","description":"Which products the discount applies to. Omitted = all products.","required":["type","product_ids"],"properties":{"type":{"type":"string","const":"specific_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1.type","typeLabel":"string"},"product_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1","typeLabel":"Specific products · object"},{"type":"object","title":"Specific collections","description":"Which products the discount applies to. Omitted = all products.","required":["type","collection_ids"],"properties":{"type":{"type":"string","const":"specific_collections","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2.type","typeLabel":"string"},"collection_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Collection/308896989","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2.collection_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2.collection_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2","typeLabel":"Specific collections · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope","typeLabel":"All products · object | Specific products · object | Specific collections · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0","typeLabel":"Product discount · object"},{"type":"object","title":"Order discount","required":["type","value"],"properties":{"type":{"type":"string","const":"order_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.type","typeLabel":"string"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value","typeLabel":"Percentage · object | Fixed amount · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1","typeLabel":"Order discount · object"},{"type":"object","title":"Shipping discount","required":["type","value"],"properties":{"type":{"type":"string","const":"shipping_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.type","typeLabel":"string"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value","typeLabel":"Percentage · object | Fixed amount · object"},"scope":{"oneOf":[{"type":"object","title":"All rates","description":"Which shipping rates the discount applies to. Omitted = all rates.","required":["type"],"properties":{"type":{"type":"string","const":"all_rates","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.0","typeLabel":"All rates · object"},{"type":"object","title":"Specific rates","description":"Which shipping rates the discount applies to. Omitted = all rates.","required":["type","rate_names"],"properties":{"type":{"type":"string","const":"specific_rates","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1.type","typeLabel":"string"},"rate_names":{"type":"array","minItems":1,"description":"The discount matches rates by name. Scoped rates have no\nstable GID, so the name is the only thing to match on.\n","items":{"type":"string","minLength":1,"example":"Express","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1.rate_names.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1.rate_names","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1","typeLabel":"Specific rates · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope","typeLabel":"All rates · object | Specific rates · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2","typeLabel":"Shipping discount · object"},{"type":"object","title":"Volume discount","description":"Authored in the ABConvert admin. Read-only. Tier\nthresholds are item counts.\n","required":["type","tiers"],"properties":{"type":{"type":"string","const":"volume_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.type","typeLabel":"string"},"tiers":{"type":"array","minItems":1,"items":{"type":"object","required":["threshold","value"],"properties":{"threshold":{"type":"integer","minimum":1,"description":"Minimum item count for this tier.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].threshold","typeLabel":"integer"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value","typeLabel":"Percentage · object | Fixed amount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers","typeLabel":"object[]"},"scope":{"oneOf":[{"type":"object","title":"All products","description":"Which products the discount applies to. Omitted = all products.","required":["type"],"properties":{"type":{"type":"string","const":"all_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.0","typeLabel":"All products · object"},{"type":"object","title":"Specific products","description":"Which products the discount applies to. Omitted = all products.","required":["type","product_ids"],"properties":{"type":{"type":"string","const":"specific_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1.type","typeLabel":"string"},"product_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1","typeLabel":"Specific products · object"},{"type":"object","title":"Specific collections","description":"Which products the discount applies to. Omitted = all products.","required":["type","collection_ids"],"properties":{"type":{"type":"string","const":"specific_collections","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2.type","typeLabel":"string"},"collection_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Collection/308896989","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2.collection_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2.collection_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2","typeLabel":"Specific collections · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope","typeLabel":"All products · object | Specific products · object | Specific collections · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3","typeLabel":"Volume discount · object"},{"type":"object","title":"Threshold discount","description":"Authored in the ABConvert admin. Read-only. Tier\nthresholds are order subtotals.\n","required":["type","tiers"],"properties":{"type":{"type":"string","const":"threshold_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.type","typeLabel":"string"},"tiers":{"type":"array","minItems":1,"items":{"type":"object","required":["threshold","value"],"properties":{"threshold":{"type":"object","description":"Minimum order subtotal for this tier.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].threshold.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].threshold.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].threshold","typeLabel":"object"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value","typeLabel":"Percentage · object | Fixed amount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers","typeLabel":"object[]"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4","typeLabel":"Threshold discount · object"},{"type":"object","title":"Free gift","description":"Adds one product variant to the cart at no charge once the\ncart meets `condition`. `scope` is what counts toward the\ncondition, and the gift itself never counts. When the cart no\nlonger meets the condition the gift is removed, and a gift the\nshopper removes stays out until they change the cart again.\n","required":["type","gift","condition"],"properties":{"type":{"type":"string","const":"free_gift","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.type","typeLabel":"string"},"gift":{"type":"object","required":["product_id","variant_id"],"properties":{"product_id":{"type":"string","example":"gid://shopify/Product/8072112521451","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift.product_id","typeLabel":"string"},"variant_id":{"type":"string","example":"gid://shopify/ProductVariant/44271372484843","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift.variant_id","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Units given free. A shopper who raises the gift's quantity pays for the extra units.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift.quantity","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift","typeLabel":"object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.minimum","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.1.minimum","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.1","typeLabel":"Item quantity · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition","typeLabel":"Order price · object | Item quantity · object"},"scope":{"oneOf":[{"type":"object","title":"All products","description":"Which products the discount applies to. Omitted = all products.","required":["type"],"properties":{"type":{"type":"string","const":"all_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.0","typeLabel":"All products · object"},{"type":"object","title":"Specific products","description":"Which products the discount applies to. Omitted = all products.","required":["type","product_ids"],"properties":{"type":{"type":"string","const":"specific_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1.type","typeLabel":"string"},"product_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1","typeLabel":"Specific products · object"},{"type":"object","title":"Specific collections","description":"Which products the discount applies to. Omitted = all products.","required":["type","collection_ids"],"properties":{"type":{"type":"string","const":"specific_collections","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2.type","typeLabel":"string"},"collection_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Collection/308896989","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2.collection_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2.collection_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2","typeLabel":"Specific collections · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope","typeLabel":"All products · object | Specific products · object | Specific collections · object"},"auto_add":{"type":"boolean","default":true,"description":"When false, the gift is free only if the shopper adds that product variant themselves.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.auto_add","typeLabel":"boolean"},"remove_when_unqualified":{"type":"boolean","const":true,"default":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.remove_when_unqualified","typeLabel":"boolean"},"allow_removal":{"type":"boolean","const":true,"default":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.allow_removal","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5","typeLabel":"Free gift · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX]","typeLabel":"Product discount · object | Order discount · object | Shipping discount · object | Volume discount · object | Threshold discount · object | Free gift · object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts","typeLabel":"(Product discount · object | Order discount · object | Shipping discount · object | Volume discount · object | Threshold discount · object | Free gift · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9","typeLabel":"Offer change · object"},{"type":"object","title":"Subscription purchase change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","product_id"],"properties":{"type":{"type":"string","const":"subscription","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.type","typeLabel":"string"},"product_id":{"type":"string","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.product_id","typeLabel":"string"},"purchase_type":{"type":"string","enum":["one-time","subscription"],"description":"Defaults to subscription when omitted.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.purchase_type","typeLabel":"enum\u003cstring>"},"provider_plan_id":{"type":"string","minLength":1,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.provider_plan_id","typeLabel":"string"},"shopify_selling_plan_id":{"type":"string","minLength":1,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.shopify_selling_plan_id","typeLabel":"string"},"product_path":{"type":"string","pattern":"^/products/","description":"Optional product page path for a duplicate-product treatment.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.product_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10","typeLabel":"Subscription purchase change · object"},{"type":"object","title":"Checkout block change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","properties":{"type":{"type":"string","const":"checkout_block","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11.type","typeLabel":"string"},"placement":{"type":"string","description":"Where the block renders: a Checkout page placement, a Thank\nyou page placement (`THANKYOU_MAIN1` to `THANKYOU_MAIN3` in\nMain, `THANKYOU_ORDERSUMMARY1` to `THANKYOU_ORDERSUMMARY3` in\nOrder summary), or an Order status page placement\n(`ORDERSTATUS_PAGETITLE` and `ORDERSTATUS_MAIN1` to\n`ORDERSTATUS_MAIN3` in Main, `ORDERSTATUS_ORDERSUMMARY1` to\n`ORDERSTATUS_ORDERSUMMARY3` in Order summary).\n","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11.placement","typeLabel":"string"},"block_type":{"type":"string","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11.block_type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11","typeLabel":"Checkout block change · object"},{"type":"object","title":"Post-purchase offer change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","properties":{"type":{"type":"string","const":"post_purchase_offer","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.type","typeLabel":"string"},"variant_id":{"type":"string","example":"gid://shopify/ProductVariant/44271372484843","description":"The product variant offered.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.variant_id","typeLabel":"string"},"pricing":{"oneOf":[{"type":"object","title":"Single discount","description":"How the offer is priced.","properties":{"type":{"type":"string","const":"single_discount","description":"One unit of the product variant at a discount.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0","typeLabel":"Single discount · object"},{"type":"object","title":"Quantity break","description":"How the offer is priced.","properties":{"type":{"type":"string","const":"volume_discount","description":"The buyer picks one of 2 or 3 quantities of the product variant, each with its own discount.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.type","typeLabel":"string"},"tiers":{"type":"array","minItems":2,"maxItems":3,"description":"Quantities go up from tier to tier, and the discount stays the same or goes up.","items":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":10,"example":2,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers","typeLabel":"object[]"},"preselected_quantity":{"type":"integer","example":2,"description":"The quantity selected when the page opens.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.preselected_quantity","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1","typeLabel":"Quantity break · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing","typeLabel":"Single discount · object | Quantity break · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12","typeLabel":"Post-purchase offer change · object"},{"type":"object","title":"Visual editor change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type"],"properties":{"type":{"type":"string","const":"visual_editor","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.type","typeLabel":"string"},"custom_css":{"type":"string","maxLength":50000,"deprecated":true,"example":".hero__title { font-size: 2.5rem; }","description":"Deprecated: send `custom_code.css` on the test group instead. Still\naccepted, and written to `custom_code.css` when the test group\nsends no `custom_code`; still read back beside it.\n","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.custom_css","typeLabel":"string"},"custom_js":{"type":"string","maxLength":50000,"deprecated":true,"example":"document.querySelector(\".hero__title\").textContent = \"Free shipping over $50\";","description":"Deprecated: send `custom_code.js` on the test group instead. Still\naccepted, and written to `custom_code.js` when the test group\nsends no `custom_code`; still read back beside it. It has to\nparse, or the request returns 422 `custom_js_invalid`.\n","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.custom_js","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13","typeLabel":"Visual editor change · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX]","typeLabel":"Price change · object · Price change · object · Shipping change · object · Theme change · object · Template change · object · URL redirect change · object · Checkout: hide methods · object · Checkout: reorder methods · object · Checkout: rename methods · object · Offer change · object · Subscription purchase change · object · Checkout block change · object · Post-purchase offer change · object · Visual editor change · object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes","typeLabel":"Price change · object · Price change · object · Shipping change · object · Theme change · object · Template change · object · URL redirect change · object · Checkout: hide methods · object · Checkout: reorder methods · object · Checkout: rename methods · object · Offer change · object · Subscription purchase change · object · Checkout block change · object · Post-purchase offer change · object · Visual editor change · object[]"},"name":{"type":"string","example":"Variant A","description":"The name shown for this test group in the ABConvert admin.\nDefaults from the index (`Control`, `Variant A`, `Variant B`) and\nstays editable after\nlaunch. Unique within the test; a duplicate returns 422\n`duplicate_group_name`. Uniqueness is checked against the name\neach test group ends up with, so sending `Variant A` for one\ntest group collides with the default another would be given.\n","uniqueKey":"test_groups.items.[INDEX].name","typeLabel":"string"},"control":{"type":"boolean","default":false,"description":"Exactly one test group must set this and it must be the first\n(`test_groups[0]`). None or more than one returns 422\n`control_group_invalid`; a later control returns 422\n`control_group_must_be_first`.\n","uniqueKey":"test_groups.items.[INDEX].control","typeLabel":"boolean"},"custom_code":{"type":"object","description":"CSS and JavaScript that run for this test group. Absent on read\nwhen the test group runs none.\n","properties":{"css":{"type":"string","maxLength":50000,"default":"","example":".hero__title { font-size: 2.5rem; }","description":"A stylesheet, injected as a `\u003cstyle>` block the moment the test\ngroup is assigned. Not validated: a rule the browser can't parse\nis dropped on its own, without taking the rest of the block with\nit.\n","uniqueKey":"test_groups.items.[INDEX].custom_code.css","typeLabel":"string"},"scripts":{"type":"array","default":[],"description":"Scripts for this test group, injected in the order given. Each one\ncarries its own timing, so one script can change the page before it\nshows while another waits for the page's elements.\n","items":{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"string","maxLength":50000,"example":"document.querySelector(\".hero__title\").textContent = \"Free shipping over $50\";","description":"A script, injected as an inline script tag. It has to parse:\na syntax error means the browser runs none of it, so one is\nrefused at write time with 422 `invalid_request` naming the\nline. Nothing beyond parsing is checked.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].custom_code.scripts.items.[INDEX].code","typeLabel":"string"},"run_at":{"type":"string","enum":["assigned","page-load"],"default":"assigned","description":"When this script runs. `assigned` runs it before the page\nshows, so visitors only see the changed page; slow code\ndelays the page, and parts of the page may not be there yet.\n`page-load` runs it once the whole page is there: the page\nshows without waiting, and visitors may see the page change.\n\n`assigned` is only available on price, theme, template,\nurl_redirect and visual_editor tests, whose script loads in\nthe page head. An offer, checkout, shipping, or subscription test resolves\nits test group after the page is on screen, so it runs every\nscript then; sending `assigned` on one is refused with 422\n`invalid_request` rather than quietly changed, so what you\nread back is what you sent. A combined test follows its\nchanges: one of the five is enough.\n","uniqueKey":"test_groups.items.[INDEX].custom_code.scripts.items.[INDEX].run_at","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].custom_code.scripts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"test_groups.items.[INDEX].custom_code.scripts","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"test_groups.items.[INDEX].custom_code","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups","typeLabel":"object[]"},"hypothesis":{"type":"string","description":"What you expect this test to show, in your own words.","uniqueKey":"hypothesis","typeLabel":"string"},"primary_metric":{"type":"string","enum":["revenue_per_visitor","average_order_value","conversion_rate","profit_per_visitor","add_to_cart_rate","reached_checkout_rate"],"uniqueKey":"primary_metric","typeLabel":"enum\u003cstring>"},"traffic_allocation":{"type":"integer","minimum":1,"maximum":100,"default":100,"description":"The percentage of eligible visitors who enter the test.","uniqueKey":"traffic_allocation","typeLabel":"integer"},"shared":{"type":"object","description":"Required on `price`, `shipping`, `template`, `url_redirect`, and `subscription`\ntests, which each carry a mandatory key here. Optional on `offer`\nand `checkout`. Not accepted on `theme` and `visual_editor`, which\nrun storewide with every setting on their test groups; sending it\nreturns 422. Omitting it where it is required returns 422 too.\n","properties":{"price":{"type":"object","required":["product_ids"],"properties":{"product_ids":{"type":"array","minItems":1,"maxItems":500,"description":"One test can carry 100 products, or 500 on shops with the\nraised limit. Going over returns 422\n`product_limit_exceeded`, and the message names your cap and\nhow many you sent.\n","items":{"type":"string","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","uniqueKey":"shared.price.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"shared.price.product_ids","typeLabel":"string[]"},"markets":{"type":"array","description":"The markets you can set per-country prices in. Omitted =\nbase price only. Listing a market makes the countries in\nits `countries` array priceable. Any country you price must\nbe covered by a listed market, or the request returns 422\n`market_pricing_incomplete`. Countries are never dropped\nsilently.\n","items":{"type":"object","description":"A Shopify market and the countries you price in it.\n\n`countries` is optional on write and always present on read. Omit it and\nthe server resolves the countries this market owns and pins that list on\nthe test, so a later change to your Shopify markets can't move what the\ntest prices. Send it to narrow that set; anything you send that the\nmarket doesn't own returns 422 `market_pricing_incomplete` rather than\nbeing dropped.\n\nShopify serves a buyer from the most specific market containing their\ncountry, so a country covered by a narrower market belongs to that one.\nABConvert reports countries it leaves out with these warnings:\n\n- `country_served_by_other_market`: a narrower market already serves it.\n- `country_ownership_ambiguous`: more than one market claims it.\n\n`market_not_contextual` means the market uses your shop's own currency.\nIts owned countries stay in the test and use prices in that currency.\n\nA market that ends up owning nothing returns 422 `market_empty`.\n\nOnly markets that serve your online store count. A retail (POS), B2B,\nor sales channel market never serves an online buyer, so naming one\nreturns 422 `market_not_found`, and one that covers the same countries\nas your online market does not affect what the test prices.\n","required":["id"],"properties":{"id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Market/13762560","isRequired":true,"uniqueKey":"shared.price.markets.items.[INDEX].id","typeLabel":"string"},"countries":{"type":"array","minItems":1,"description":"ISO 3166-1 alpha-2 codes for the countries this market covers.\nOptional on write; always present on read, where it is the pinned\nlist the test actually prices.\n","items":{"type":"string","pattern":"^[A-Z]{2}$","uniqueKey":"shared.price.markets.items.[INDEX].countries.items.[INDEX]","typeLabel":"string"},"uniqueKey":"shared.price.markets.items.[INDEX].countries","typeLabel":"string[]"}},"uniqueKey":"shared.price.markets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shared.price.markets","typeLabel":"object[]"}},"uniqueKey":"shared.price","typeLabel":"object"},"shipping":{"type":"object","required":["zone_ids"],"properties":{"zone_ids":{"type":"array","minItems":1,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/DeliveryZone/282141261","uniqueKey":"shared.shipping.zone_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"shared.shipping.zone_ids","typeLabel":"string[]"}},"uniqueKey":"shared.shipping","typeLabel":"object"},"template":{"type":"object","required":["theme_id","template_type"],"properties":{"theme_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/OnlineStoreTheme/123456789","isRequired":true,"uniqueKey":"shared.template.theme_id","typeLabel":"string"},"template_type":{"type":"string","enum":["index","collection","product","page","blog","article","cart","search"],"example":"product","isRequired":true,"uniqueKey":"shared.template.template_type","typeLabel":"enum\u003cstring>"},"path_rules":{"type":"object","required":["mode","rules"],"description":"Limits the test to certain storefront URLs. Omitted = storewide.\nRules combine with OR: a page matches when any one rule matches.\n","properties":{"mode":{"type":"string","enum":["include","exclude"],"description":"`include` applies the test on matching pages only. `exclude`\napplies it everywhere except matching pages.\n","isRequired":true,"uniqueKey":"shared.template.path_rules.mode","typeLabel":"enum\u003cstring>"},"rules":{"type":"array","minItems":1,"items":{"type":"object","required":["match_type","match_value"],"properties":{"match_type":{"type":"string","enum":["exact","starts_with","contains","ends_with","regex","not_exact","not_starts_with","not_ends_with","not_contains","not_regex"],"description":"Every value is writable here, unlike in `shared.url_redirect.rules`.","isRequired":true,"uniqueKey":"shared.template.path_rules.rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"match_value":{"type":"string","minLength":1,"example":"/collections/sale","isRequired":true,"uniqueKey":"shared.template.path_rules.rules.items.[INDEX].match_value","typeLabel":"string"},"subject":{"type":"string","enum":["path","path_and_query_string","query_string"],"default":"path","description":"Which part of the URL the rule matches against. The origin is never\npart of the match.\n\n- `path`: the page path relative to the store root, starting with `/`.\n- `path_and_query_string`: the path with the query string appended.\n- `query_string`: the query string alone, including the leading `?`.\n\n`query_string` changes how some match types behave. `exact` and\n`contains`, and their negations, compare parameter pairs instead of\nraw text: `exact` requires the same parameter set with no extras,\nand `contains` requires every listed pair to be present. Write\n`match_value` as one or more parameter pairs, such as\n`utm_source=spring`.\n\n`starts_with`, `ends_with`, and `regex` still compare the raw query\nstring. Avoid them with this subject.\n","uniqueKey":"shared.template.path_rules.rules.items.[INDEX].subject","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shared.template.path_rules.rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"shared.template.path_rules.rules","typeLabel":"object[]"}},"uniqueKey":"shared.template.path_rules","typeLabel":"object"}},"uniqueKey":"shared.template","typeLabel":"object"},"url_redirect":{"type":"object","required":["rules"],"properties":{"rules":{"type":"array","minItems":1,"maxItems":50,"description":"Trigger rules, shared by every test group. Each test group\nmaps a destination to a rule by the rule's `key`. At most 50\nrules per test; more returns 422 `rule_limit_exceeded`.\n\nv1 reads and writes single-condition rules only. A test\nwhose triggers use compound conditions, authored in the\nABConvert admin, doesn't read back in full.\n","items":{"type":"object","required":["key","match_type","match_value"],"properties":{"key":{"type":"string","minLength":1,"description":"Identifies this rule within the request: each test group's\n`destinations` entry points at it by `rule_key`.\n\nThe key you send is not stored. The server publishes its own\nkeys on read (`rule_1`, `rule_2`, and so on, in the order the\nrules appear) and every response carries them, so read the keys off\nthe create response before addressing destinations in a PATCH.\nLike test-group indexes, they can renumber when the rule list\nchanges; re-read the test before further key-addressed edits.\n","isRequired":true,"uniqueKey":"shared.url_redirect.rules.items.[INDEX].key","typeLabel":"string"},"match_type":{"type":"string","enum":["exact","starts_with","contains","ends_with","regex","not_exact","not_starts_with","not_ends_with","not_contains","not_regex"],"description":"How `match_value` is compared. You can write `exact`,\n`starts_with`, and `contains`. Any other value returns 422\n`match_type_unsupported`.\n\nTests authored in the ABConvert admin can use the full list, and\nthose values read back read-only. Analytics for them may fall\nback to storewide matching.\n","isRequired":true,"uniqueKey":"shared.url_redirect.rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"match_value":{"type":"string","minLength":1,"description":"The pattern to match. `match_type` decides how it is compared,\nand `subject` decides what it is compared against. The match\nnever includes the origin.\n","example":"/products/old-pdp","isRequired":true,"uniqueKey":"shared.url_redirect.rules.items.[INDEX].match_value","typeLabel":"string"},"subject":{"type":"string","description":"Writes accept `path` only. A redirect trigger is stored without\na subject, so any other value could only be dropped silently and\nis refused instead. Tests authored in the ABConvert admin can\nmatch on the other subjects, and those read back.\n","default":"path","enum":["path","path_and_query_string","query_string"],"uniqueKey":"shared.url_redirect.rules.items.[INDEX].subject","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shared.url_redirect.rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"shared.url_redirect.rules","typeLabel":"object[]"},"redirect":{"type":"object","properties":{"mode":{"type":"string","enum":["always","once"],"default":"always","description":"How often the redirect fires. `always` redirects every matching visit. `once` redirects only the first one.","uniqueKey":"shared.url_redirect.redirect.mode","typeLabel":"enum\u003cstring>"},"preserve_query_string":{"type":"boolean","default":true,"description":"Carries the incoming query string over to the destination URL.","uniqueKey":"shared.url_redirect.redirect.preserve_query_string","typeLabel":"boolean"}},"uniqueKey":"shared.url_redirect.redirect","typeLabel":"object"}},"uniqueKey":"shared.url_redirect","typeLabel":"object"},"offer":{"type":"object","properties":{"combines_with":{"type":"object","description":"Which other discount classes the offer combines with. All\nthree flags default to true.\n\nOne restriction applies. An offer whose discount is a\n`shipping_discount` can't combine with other shipping\ndiscounts. ABConvert forces `shipping_discounts` to false\nfor those offers, and sending true returns 422\n`discount_combination_invalid`.\n","properties":{"product_discounts":{"type":"boolean","default":true,"uniqueKey":"shared.offer.combines_with.product_discounts","typeLabel":"boolean"},"order_discounts":{"type":"boolean","default":true,"uniqueKey":"shared.offer.combines_with.order_discounts","typeLabel":"boolean"},"shipping_discounts":{"type":"boolean","default":true,"uniqueKey":"shared.offer.combines_with.shipping_discounts","typeLabel":"boolean"}},"uniqueKey":"shared.offer.combines_with","typeLabel":"object"}},"uniqueKey":"shared.offer","typeLabel":"object"},"subscription":{"type":"object","required":["provider","semantics"],"description":"Subscription provider and plan selection policy. Each test group\nsupplies one `subscription` change per product. One-time rows have\nno plan. Launch checks verify provider connection, plan ownership,\nand storefront support.\n","properties":{"provider":{"type":"string","enum":["recharge","stay","skio"],"isRequired":true,"uniqueKey":"shared.subscription.provider","typeLabel":"enum\u003cstring>"},"semantics":{"type":"string","enum":["acquisition-only","new-recurring-price"],"description":"Only `new-recurring-price` can be created; older acquisition-only drafts can be read.","isRequired":true,"uniqueKey":"shared.subscription.semantics","typeLabel":"enum\u003cstring>"},"hide_other_plans":{"type":"boolean","default":true,"description":"Show only the visitor's assigned plan on the product page.","uniqueKey":"shared.subscription.hide_other_plans","typeLabel":"boolean"}},"uniqueKey":"shared.subscription","typeLabel":"object"}},"uniqueKey":"shared","typeLabel":"object"},"schedule":{"type":"object","additionalProperties":false,"minProperties":1,"description":"The window the scheduler runs the test in. Send at least one bound.\nAfter launch, only `end_at` is editable.\n\nA `start_at` is checked as a launch when you send it, so a test that\ncould not launch cannot book one. For a price test, that check\nincludes your store's theme check: if it has not passed, the request\nreturns 422 `theme_check_required` and no window is written. Request\nthe check in the ABConvert admin, then send the `start_at` again.\nSending `end_at` on its own is never refused for this reason.\n","properties":{"start_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"schedule.start_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"schedule.start_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"schedule.start_at","typeLabel":"string\u003cdate-time> | null"},"end_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"schedule.end_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"schedule.end_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"schedule.end_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"schedule","typeLabel":"object"},"audience":{"type":"object","required":["filter_groups"],"description":"Limits the test to visitors who match your filters. Without an\n`audience`, every visitor is eligible. In PATCH, `audience: null`\nturns targeting off.\n\nFilter groups combine with AND: a visitor must match every filter\ngroup to enter the test. Filters inside one filter group combine\nwith OR: one match is enough.\n\nTo require two filters at once, put each one in its own filter\ngroup. The example below enters visitors who are on mobile and new.\nPutting the same two filters in one filter group would enter\nvisitors who are on mobile or new instead.\n\nA test whose targeting you turn off in the ABConvert admin reads\nback with no `audience`.\n","example":{"filter_groups":[{"filters":[{"type":"device","operator":"equals","value":"mobile"}]},{"filters":[{"type":"visitor_type","operator":"equals","value":"new"}]}]},"properties":{"filter_groups":{"type":"array","minItems":1,"items":{"type":"object","required":["filters"],"properties":{"filters":{"type":"array","minItems":1,"items":{"type":"object","required":["type","operator"],"properties":{"type":{"type":"string","enum":["country","market","customer","device","visitor_type","traffic_source","referral_domain","landing_page","query_param","cookie","js","klaviyo_segment"],"description":"What the filter inspects. Every value is writable\nexcept `js`, which runs storefront code you author in\nthe ABConvert admin. Sending `js` returns 422\n`filter_type_unsupported`. On tests that already use\nit, `js` reads back read-only.\n\n`klaviyo_segment` reads whether the visitor's Klaviyo\nprofile is in the segment whose id is the value.\nVisitors Klaviyo has not identified count as outside\nevery segment. A test carrying this filter launches\nonly while the store has a connected Klaviyo API key\nunder Integrations.\n\n`market` reads the Shopify market the visitor is\nbrowsing. `customer` reads customer identity:\n`logged_in` follows the live session, while `tags`,\n`orders_count` and `total_spent` come from the last\ncustomer logged in on that device. Both are in beta\nand need the ABConvert app embed enabled on your\ntheme. When the storefront can't\nread the visitor's market or customer, ABConvert makes\nno assignment on that page load rather than guessing,\nand stores nothing, so the visitor can still enter on a\nlater load where the value reads.\n","isRequired":true,"uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","description":"How `value` is compared. Which operators a filter\naccepts depends on its `type`, and for `customer` on\nits `key`. A pairing the storefront can't act on\nreturns 422 `filter_operator_invalid`, naming the\nfilter that carries it:\n\n- `market` and `traffic_source`: `equals`,\n `not_equals`, `in`, `not_in`.\n- `customer` `logged_in`: `equals`.\n- `customer` `tags`: `contains`, `not_contains`. To\n match any of several tags, send one filter per tag\n in the same filter group; filters in one filter\n group are OR'd.\n- `customer` `orders_count` and `total_spent`:\n `greater_than`, `less_than`. The numeric readings\n are the only ones the numeric operators apply to.\n- `klaviyo_segment`: `equals` (is in the segment) and\n `not_equals` (is not). To match any of several\n segments, send one filter per segment in the same\n filter group.\n- Every other type: the ten operators from `equals`\n through `regex`.\n\n`exists` and `not_exists` apply only to\n`query_param`, `cookie`, `referral_domain`, and\n`customer` `tags`, the readings that can genuinely\nbe absent.\n","enum":["equals","not_equals","contains","not_contains","in","not_in","exists","not_exists","starts_with","regex","greater_than","less_than","greater_or_equal","less_or_equal"],"isRequired":true,"uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"What the filter reads inside its `type`.\n\n- `query_param` and `cookie`: the parameter or cookie\n name, which you choose. Omitting it returns 422\n `filter_key_required`.\n- `customer`: one of `logged_in`, `tags`,\n `orders_count`, `total_spent`. Omitting it, or\n sending anything else, returns 422.\n\nOther types don't read this field. PATCH doesn't\nmerge on it.\n","uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","title":"Single value","description":"What the filter compares against. The shape follows\nthe operator:\n\n- Most operators: a string.\n- `in` and `not_in`: an array of strings, or a single\n string when you mean one.\n- `exists` and `not_exists`: omit the field.\n\nSending an array to any other operator returns 422;\nuse `in` or `not_in` to match several values.\n\nValues can't be empty, and `regex` patterns must\ncompile. Either violation returns 422\n`filter_value_invalid`.\n\n`equals`, `not_equals`, `in`, and `not_in` compare the\nwhole reading, so the value must be one the storefront\ncan report:\n\n| Filter type | Accepted value |\n|---|---|\n| `country` | An uppercase ISO-3166 alpha-2 code |\n| `device` | `desktop` or `mobile` |\n| `visitor_type` | `new` or `returning` |\n| `referral_domain` | A bare hostname |\n| `market` | The market handle from Settings > Markets |\n| `klaviyo_segment` | A Klaviyo segment id, the value in the segment's URL in Klaviyo |\n\nUnder `contains`, `starts_with`, and `regex` the value\nis a fragment of the reading, so only the emptiness and\ncompile rules apply.\n\nA `customer` filter's value follows its `key`, and is\nalways sent as a string:\n\n- `logged_in`: `\"true\"` or `\"false\"`.\n- `orders_count` and `total_spent`: a number, such as\n `\"3\"` or `\"99.50\"`. `total_spent` is in your store's\n currency.\n- `tags`: one Shopify customer tag. Matching is exact\n and case-insensitive, so `wholesale` doesn't match\n `wholesale-pending`.\n\nAnything the storefront couldn't read as that shape\nreturns 422 `filter_value_invalid`.\n\nA `traffic_source` outside the channels and platforms\nABConvert classifies is accepted with a\n`filter_value_unrecognized` warning: a raw\n`utm_source` reaches the storefront verbatim, so it\ncan still match.\n","uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].value.oneOf.1.items.[INDEX]","typeLabel":"string"},"title":"Value list","description":"What the filter compares against. The shape follows\nthe operator:\n\n- Most operators: a string.\n- `in` and `not_in`: an array of strings, or a single\n string when you mean one.\n- `exists` and `not_exists`: omit the field.\n\nSending an array to any other operator returns 422;\nuse `in` or `not_in` to match several values.\n\nValues can't be empty, and `regex` patterns must\ncompile. Either violation returns 422\n`filter_value_invalid`.\n\n`equals`, `not_equals`, `in`, and `not_in` compare the\nwhole reading, so the value must be one the storefront\ncan report:\n\n| Filter type | Accepted value |\n|---|---|\n| `country` | An uppercase ISO-3166 alpha-2 code |\n| `device` | `desktop` or `mobile` |\n| `visitor_type` | `new` or `returning` |\n| `referral_domain` | A bare hostname |\n| `market` | The market handle from Settings > Markets |\n| `klaviyo_segment` | A Klaviyo segment id, the value in the segment's URL in Klaviyo |\n\nUnder `contains`, `starts_with`, and `regex` the value\nis a fragment of the reading, so only the emptiness and\ncompile rules apply.\n\nA `customer` filter's value follows its `key`, and is\nalways sent as a string:\n\n- `logged_in`: `\"true\"` or `\"false\"`.\n- `orders_count` and `total_spent`: a number, such as\n `\"3\"` or `\"99.50\"`. `total_spent` is in your store's\n currency.\n- `tags`: one Shopify customer tag. Matching is exact\n and case-insensitive, so `wholesale` doesn't match\n `wholesale-pending`.\n\nAnything the storefront couldn't read as that shape\nreturns 422 `filter_value_invalid`.\n\nA `traffic_source` outside the channels and platforms\nABConvert classifies is accepted with a\n`filter_value_unrecognized` warning: a raw\n`utm_source` reaches the storefront verbatim, so it\ncan still match.\n","uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].value.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX].value","typeLabel":"string | string[]"}},"uniqueKey":"audience.filter_groups.items.[INDEX].filters.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"audience.filter_groups.items.[INDEX].filters","typeLabel":"object[]"}},"uniqueKey":"audience.filter_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"audience.filter_groups","typeLabel":"object[]"}},"uniqueKey":"audience","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","test_groups":[{"split":50,"changes":[{"type":"price","adjustment":{"unit":"percentage","value":0},"prices":[{"product_variant_id":"gid://shopify/ProductVariant/45678","price":{"amount":"17.99","currency":"USD"},"compare_at_price":{"amount":"24.99","currency":"USD"},"country_prices":[{"country":"AU","price":{"amount":"27.99","currency":"AUD"}}]}]}],"name":"Variant A","control":false,"custom_code":{"css":".hero__title { font-size: 2.5rem; }","scripts":[]}}],"hypothesis":"\u003cstring>","traffic_allocation":100,"shared":{"offer":{"combines_with":{"product_discounts":true,"order_discounts":true,"shipping_discounts":true}}},"schedule":{"start_at":"2023-11-07T05:31:56Z","end_at":"2023-11-07T05:31:56Z"},"audience":{"filter_groups":[{"filters":[{"type":"device","operator":"equals","value":"mobile"}]},{"filters":[{"type":"visitor_type","operator":"equals","value":"new"}]}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"11e8b3cb-694d-46dd-9dc9-8b84ac1a747f":{"description":"The created draft. The response can carry non-blocking `warnings`.","headers":{"Idempotency-Replayed":{"description":"`true` when this response is a replay of an earlier request carrying\nthe same `Idempotency-Key`. Absent otherwise, and never sent by\n[`POST /experiments/{id}/exports`](/api-reference/exports/create-an-export-job),\nwhich re-reads the export job on a\nreplay instead of repeating the original response.\n","schema":{"type":"string","const":"true"}},"X-RateLimit-Limit":{"description":"How many requests this token may make in the current 60-second window.\nReads, writes, and result queries each have a separate budget, so this\nis the budget for the class this request falls in.\n","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["object","id","type","status","name","test_groups","created_at","updated_at"],"properties":{"object":{"type":"string","const":"experiment","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"id":{"type":"string","example":"3021","description":"The test's numeric ID as a string.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","enum":["price","shipping","theme","template","url_redirect","checkout","offer","subscription","visual_editor","combined"],"description":"What the test changes: product prices, shipping rates, the theme a\nvisitor sees, a page template, the URL a visitor lands on, checkout\ndelivery and payment methods, a cart offer, or a subscription plan. `visual_editor` is a\nstorefront edit: custom CSS and JavaScript, which you can write here,\nalongside DOM changes authored in the ABConvert visual editor.\n`combined` bundles more than one change type in one test. See\n`CreatableExperimentType` for the ones you can create here.\n","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["draft","preview","active","paused","ended","failed","archived"],"description":"The test's current status. The ABConvert admin labels `ended` as\n**Closed**; the wire value stays `ended`. Scheduling isn't a status: a\nscheduled test is a `draft` or `preview` with a `schedule`.\n","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"test_groups":{"type":"array","items":{"type":"object","description":"`changes` is present on every single-test read and absent from\n[`GET /experiments`](/api-reference/experiments/list-tests), which\nreturns test group identity only. Fetch\na test by id to read its changes.\n","required":["name","control","split"],"properties":{"name":{"type":"string","example":"Variant A","description":"The name shown for this test group in the ABConvert admin.\nDefaults from the index (`Control`, `Variant A`, `Variant B`) and\nstays editable after\nlaunch. Unique within the test; a duplicate returns 422\n`duplicate_group_name`. Uniqueness is checked against the name\neach test group ends up with, so sending `Variant A` for one\ntest group collides with the default another would be given.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].name","typeLabel":"string"},"control":{"type":"boolean","default":false,"description":"Exactly one test group must set this and it must be the first\n(`test_groups[0]`). None or more than one returns 422\n`control_group_invalid`; a later control returns 422\n`control_group_must_be_first`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].control","typeLabel":"boolean"},"split":{"type":"integer","minimum":0,"maximum":100,"description":"Splits across test groups must sum to 100, or the request\nreturns 422 `split_sum_invalid`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].split","typeLabel":"integer"},"changes":{"type":"array","items":{"oneOf":[{"type":"object","title":"Price change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","adjustment"],"properties":{"type":{"type":"string","const":"price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.type","typeLabel":"string"},"adjustment":{"oneOf":[{"type":"object","title":"Percentage","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","minimum":-100,"maximum":100,"description":"Signed percent. `-10` decreases prices by 10%. Writes accept\nintegers. Tests authored in the ABConvert admin can read\nback decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.0.value","typeLabel":"number"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","description":"A signed money delta. `{\"amount\": \"-5.00\", \"currency\": \"USD\"}`\ntakes 5.00 off each price.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1.amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.adjustment","typeLabel":"Percentage · object | Fixed amount · object"},"prices":{"type":"array","description":"Exact prices, one entry per product variant.\n\n`price` is the base price. Omit it to let `adjustment` set the\nbase. `country_prices` holds per-country overrides.\n\nPATCH merges entries by `product_variant_id`, and merges\n`country_prices` entries by `country`. The exception is a change\ncarrying `adjustment`, which replaces the whole list instead.\n","example":[{"product_variant_id":"gid://shopify/ProductVariant/45678","price":{"amount":"17.99","currency":"USD"},"compare_at_price":{"amount":"24.99","currency":"USD"},"country_prices":[{"country":"AU","price":{"amount":"27.99","currency":"AUD"}}]}],"items":{"type":"object","required":["product_variant_id"],"properties":{"product_variant_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/ProductVariant/45678","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].product_variant_id","typeLabel":"string"},"price":{"type":"object","description":"The base price. Omitted = derived from the adjustment.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].compare_at_price","typeLabel":"object"},"country_prices":{"type":"array","description":"Per-country overrides. Every country here must be covered\nby `shared.price.markets`, or the request returns 422\n`market_pricing_incomplete`.\n","items":{"oneOf":[{"type":"object","title":"Set price","required":["country","price"],"properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0","typeLabel":"Set price · object"},{"type":"object","title":"Remove entry","required":["country","remove"],"properties":{"remove":{"const":true,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.remove","typeLabel":"any"},"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1","typeLabel":"Remove entry · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices.items.[INDEX]","typeLabel":"Set price · object | Remove entry · object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX].country_prices","typeLabel":"(Set price · object | Remove entry · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0.prices","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.0","typeLabel":"Price change · object"},{"type":"object","title":"Price change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","prices"],"properties":{"type":{"type":"string","const":"price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.type","typeLabel":"string"},"prices":{"type":"array","description":"Exact prices, one entry per product variant.\n\n`price` is the base price. Omit it to let `adjustment` set the\nbase. `country_prices` holds per-country overrides.\n\nPATCH merges entries by `product_variant_id`, and merges\n`country_prices` entries by `country`. The exception is a change\ncarrying `adjustment`, which replaces the whole list instead.\n","example":[{"product_variant_id":"gid://shopify/ProductVariant/45678","price":{"amount":"17.99","currency":"USD"},"compare_at_price":{"amount":"24.99","currency":"USD"},"country_prices":[{"country":"AU","price":{"amount":"27.99","currency":"AUD"}}]}],"items":{"type":"object","required":["product_variant_id"],"properties":{"product_variant_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/ProductVariant/45678","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].product_variant_id","typeLabel":"string"},"price":{"type":"object","description":"The base price. Omitted = derived from the adjustment.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].compare_at_price","typeLabel":"object"},"country_prices":{"type":"array","description":"Per-country overrides. Every country here must be covered\nby `shared.price.markets`, or the request returns 422\n`market_pricing_incomplete`.\n","items":{"oneOf":[{"type":"object","title":"Set price","required":["country","price"],"properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0.compare_at_price","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.0","typeLabel":"Set price · object"},{"type":"object","title":"Remove entry","required":["country","remove"],"properties":{"remove":{"const":true,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.remove","typeLabel":"any"},"country":{"type":"string","pattern":"^[A-Z]{2}$","example":"AU","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.country","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.price","typeLabel":"object"},"compare_at_price":{"type":"object","description":"Omitted = untouched.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1.compare_at_price","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX].oneOf.1","typeLabel":"Remove entry · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices.items.[INDEX]","typeLabel":"Set price · object | Remove entry · object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX].country_prices","typeLabel":"(Set price · object | Remove entry · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.prices","typeLabel":"object[]"},"adjustment":{"oneOf":[{"type":"object","title":"Percentage","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","minimum":-100,"maximum":100,"description":"Signed percent. `-10` decreases prices by 10%. Writes accept\nintegers. Tests authored in the ABConvert admin can read\nback decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.0.value","typeLabel":"number"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"Applies one change to every price in the test's scope, for example\n\"decrease all prices by 10%\". The sign sets the direction. An exact\nprice on a product variant overrides the adjustment for that variant.\n","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","description":"A signed money delta. `{\"amount\": \"-5.00\", \"currency\": \"USD\"}`\ntakes 5.00 off each price.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1.amount","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment.oneOf.1","typeLabel":"Fixed amount · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1.adjustment","typeLabel":"Percentage · object | Fixed amount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.1","typeLabel":"Price change · object"},{"type":"object","title":"Shipping change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","offered_rates"],"properties":{"type":{"type":"string","const":"shipping","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.type","typeLabel":"string"},"offered_rates":{"type":"array","minItems":1,"items":{"type":"object","required":["zone_id","rates"],"properties":{"zone_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/DeliveryZone/282141261","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].zone_id","typeLabel":"string"},"rates":{"type":"array","items":{"oneOf":[{"type":"object","title":"Shopify rate","description":"Keeps an existing Shopify rate as-is. Add any other field to change it.","required":["shopify_rate_id"],"properties":{"shopify_rate_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/DeliveryMethodDefinition/789","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.shopify_rate_id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.name","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.price.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.price","typeLabel":"object"},"condition":{"oneOf":[{"type":"object","title":"Order price","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.maximum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.maximum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Order weight","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_weight","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.minimum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.minimum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.maximum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.maximum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition.oneOf.1","typeLabel":"Order weight · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.condition","typeLabel":"Order price · object | Order weight · object"},"transit_time":{"type":"object","description":"The delivery estimate shown with the rate. `max_days` must be greater than or equal to `min_days`.","properties":{"min_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.transit_time.min_days","typeLabel":"integer"},"max_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.transit_time.max_days","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0.transit_time","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.0","typeLabel":"Shopify rate · object"},{"type":"object","title":"New rate","required":["name","price"],"properties":{"name":{"type":"string","minLength":1,"example":"Express","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.name","typeLabel":"string"},"price":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.price.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.price.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.price","typeLabel":"object"},"condition":{"oneOf":[{"type":"object","title":"Order price","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.maximum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.maximum.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Order weight","description":"Limits when the rate is offered, by order price or order weight.\nBoth bounds are optional. When you send both, `minimum` must not\nexceed `maximum` and the two must share one currency, or the\nrequest returns 422 `condition_range_invalid`. The same code covers\na `transit_time` whose `max_days` is less than its `min_days`.\n","required":["type"],"properties":{"type":{"type":"string","const":"order_weight","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.minimum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.minimum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.minimum","typeLabel":"object"},"maximum":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number","minimum":0,"example":2.5,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.maximum.value","typeLabel":"number"},"unit":{"type":"string","enum":["g","kg","oz","lb"],"example":"kg","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.maximum.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1.maximum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition.oneOf.1","typeLabel":"Order weight · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.condition","typeLabel":"Order price · object | Order weight · object"},"transit_time":{"type":"object","description":"The delivery estimate shown with the rate. `max_days` must be greater than or equal to `min_days`.","properties":{"min_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.transit_time.min_days","typeLabel":"integer"},"max_days":{"type":"integer","minimum":0,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.transit_time.max_days","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1.transit_time","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX].oneOf.1","typeLabel":"New rate · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates.items.[INDEX]","typeLabel":"Shopify rate · object | New rate · object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX].rates","typeLabel":"(Shopify rate · object | New rate · object)[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2.offered_rates","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.2","typeLabel":"Shipping change · object"},{"type":"object","title":"Theme change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","theme_id"],"properties":{"type":{"type":"string","const":"theme","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.3.type","typeLabel":"string"},"theme_id":{"type":"string","description":"The theme this test group shows. On the control, sending\n`changes: []` means the main theme; it is resolved at create\ntime and reads back as an explicit `theme_id`, which is the\ntheme a visitor will actually be shown. An explicit value pins a\nspecific theme.\n","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/OnlineStoreTheme/987654321","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.3.theme_id","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.3","typeLabel":"Theme change · object"},{"type":"object","title":"Template change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","template_key"],"properties":{"type":{"type":"string","const":"template","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.4.type","typeLabel":"string"},"template_key":{"type":"string","minLength":1,"description":"The template file key, for example `product.summer.json`. ABConvert builds the `template_preview_url` for this test group from it.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.4.template_key","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.4","typeLabel":"Template change · object"},{"type":"object","title":"URL redirect change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","destinations"],"properties":{"type":{"type":"string","const":"url_redirect","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.type","typeLabel":"string"},"destinations":{"type":"array","minItems":1,"description":"One destination per rule key in `shared.url_redirect.rules`.","items":{"type":"object","required":["rule_key","url"],"properties":{"rule_key":{"type":"string","minLength":1,"description":"The `key` of the rule in `shared.url_redirect.rules` this destination answers.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations.items.[INDEX].rule_key","typeLabel":"string"},"url":{"type":"string","minLength":1,"description":"Where a matching visitor is sent: a path on this store,\nstarting with `/`. A full URL, anything containing `//` or\n`:`, or any whitespace returns 422 `path_invalid`. A\ndestination identical to an `exact` trigger's `match_value`\nreturns 422 `destination_matches_trigger`.\n","example":"/products/new-pdp","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5.destinations","typeLabel":"object[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.5","typeLabel":"URL redirect change · object"},{"type":"object","title":"Checkout: hide methods","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","target","action","method_names"],"properties":{"type":{"type":"string","const":"checkout","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.type","typeLabel":"string"},"target":{"type":"string","enum":["delivery","payment"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.target","typeLabel":"enum\u003cstring>"},"action":{"type":"string","const":"hide","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.action","typeLabel":"string"},"method_names":{"type":"array","minItems":1,"items":{"type":"string","minLength":1,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.method_names.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.method_names","typeLabel":"string[]"},"has_conditions":{"type":"boolean","readOnly":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6.has_conditions","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.6","typeLabel":"Checkout: hide methods · object"},{"type":"object","title":"Checkout: reorder methods","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","target","action","pin_rules"],"properties":{"type":{"type":"string","const":"checkout","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.type","typeLabel":"string"},"target":{"type":"string","enum":["delivery","payment"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.target","typeLabel":"enum\u003cstring>"},"action":{"type":"string","const":"reorder","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.action","typeLabel":"string"},"pin_rules":{"type":"array","minItems":1,"description":"Pins matching methods to the top of the list, in rule order.","items":{"type":"object","required":["match_type","value"],"properties":{"match_type":{"type":"string","enum":["exact","contains"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","example":"Shop Pay","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.pin_rules","typeLabel":"object[]"},"has_conditions":{"type":"boolean","readOnly":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7.has_conditions","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.7","typeLabel":"Checkout: reorder methods · object"},{"type":"object","title":"Checkout: rename methods","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","target","action","rename_rules"],"properties":{"type":{"type":"string","const":"checkout","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.type","typeLabel":"string"},"target":{"type":"string","enum":["delivery","payment"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.target","typeLabel":"enum\u003cstring>"},"action":{"type":"string","const":"rename","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.action","typeLabel":"string"},"rename_rules":{"type":"array","minItems":1,"description":"Each rule matches a method name and rewrites it.","items":{"type":"object","required":["match_type","value","mode","to"],"properties":{"match_type":{"type":"string","enum":["exact","contains"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The method-name pattern to match.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].value","typeLabel":"string"},"mode":{"type":"string","enum":["replace","append","prepend"],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"to":{"type":"string","description":"The new text. `mode` decides whether it replaces the matched name, appends to it, or prepends to it.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX].to","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.rename_rules","typeLabel":"object[]"},"has_conditions":{"type":"boolean","readOnly":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8.has_conditions","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.8","typeLabel":"Checkout: rename methods · object"},{"type":"object","title":"Offer change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","title","discounts"],"properties":{"type":{"type":"string","const":"offer","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.type","typeLabel":"string"},"title":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.title","typeLabel":"string"},"discounts":{"type":"array","minItems":1,"maxItems":1,"description":"Exactly one discount per test group in v1. It is an array so\nthat multi-discount offers can be added later without a\nbreaking change.\n","items":{"oneOf":[{"type":"object","title":"Product discount","required":["type","value"],"properties":{"type":{"type":"string","const":"product_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.type","typeLabel":"string"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.value","typeLabel":"Percentage · object | Fixed amount · object"},"scope":{"oneOf":[{"type":"object","title":"All products","description":"Which products the discount applies to. Omitted = all products.","required":["type"],"properties":{"type":{"type":"string","const":"all_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.0","typeLabel":"All products · object"},{"type":"object","title":"Specific products","description":"Which products the discount applies to. Omitted = all products.","required":["type","product_ids"],"properties":{"type":{"type":"string","const":"specific_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1.type","typeLabel":"string"},"product_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.1","typeLabel":"Specific products · object"},{"type":"object","title":"Specific collections","description":"Which products the discount applies to. Omitted = all products.","required":["type","collection_ids"],"properties":{"type":{"type":"string","const":"specific_collections","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2.type","typeLabel":"string"},"collection_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Collection/308896989","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2.collection_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2.collection_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope.oneOf.2","typeLabel":"Specific collections · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.scope","typeLabel":"All products · object | Specific products · object | Specific collections · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.0","typeLabel":"Product discount · object"},{"type":"object","title":"Order discount","required":["type","value"],"properties":{"type":{"type":"string","const":"order_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.type","typeLabel":"string"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.value","typeLabel":"Percentage · object | Fixed amount · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.1","typeLabel":"Order discount · object"},{"type":"object","title":"Shipping discount","required":["type","value"],"properties":{"type":{"type":"string","const":"shipping_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.type","typeLabel":"string"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.value","typeLabel":"Percentage · object | Fixed amount · object"},"scope":{"oneOf":[{"type":"object","title":"All rates","description":"Which shipping rates the discount applies to. Omitted = all rates.","required":["type"],"properties":{"type":{"type":"string","const":"all_rates","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.0","typeLabel":"All rates · object"},{"type":"object","title":"Specific rates","description":"Which shipping rates the discount applies to. Omitted = all rates.","required":["type","rate_names"],"properties":{"type":{"type":"string","const":"specific_rates","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1.type","typeLabel":"string"},"rate_names":{"type":"array","minItems":1,"description":"The discount matches rates by name. Scoped rates have no\nstable GID, so the name is the only thing to match on.\n","items":{"type":"string","minLength":1,"example":"Express","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1.rate_names.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1.rate_names","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope.oneOf.1","typeLabel":"Specific rates · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.scope","typeLabel":"All rates · object | Specific rates · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.2","typeLabel":"Shipping discount · object"},{"type":"object","title":"Volume discount","description":"Authored in the ABConvert admin. Read-only. Tier\nthresholds are item counts.\n","required":["type","tiers"],"properties":{"type":{"type":"string","const":"volume_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.type","typeLabel":"string"},"tiers":{"type":"array","minItems":1,"items":{"type":"object","required":["threshold","value"],"properties":{"threshold":{"type":"integer","minimum":1,"description":"Minimum item count for this tier.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].threshold","typeLabel":"integer"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX].value","typeLabel":"Percentage · object | Fixed amount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.tiers","typeLabel":"object[]"},"scope":{"oneOf":[{"type":"object","title":"All products","description":"Which products the discount applies to. Omitted = all products.","required":["type"],"properties":{"type":{"type":"string","const":"all_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.0","typeLabel":"All products · object"},{"type":"object","title":"Specific products","description":"Which products the discount applies to. Omitted = all products.","required":["type","product_ids"],"properties":{"type":{"type":"string","const":"specific_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1.type","typeLabel":"string"},"product_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.1","typeLabel":"Specific products · object"},{"type":"object","title":"Specific collections","description":"Which products the discount applies to. Omitted = all products.","required":["type","collection_ids"],"properties":{"type":{"type":"string","const":"specific_collections","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2.type","typeLabel":"string"},"collection_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Collection/308896989","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2.collection_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2.collection_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope.oneOf.2","typeLabel":"Specific collections · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.scope","typeLabel":"All products · object | Specific products · object | Specific collections · object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.3","typeLabel":"Volume discount · object"},{"type":"object","title":"Threshold discount","description":"Authored in the ABConvert admin. Read-only. Tier\nthresholds are order subtotals.\n","required":["type","tiers"],"properties":{"type":{"type":"string","const":"threshold_discount","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.type","typeLabel":"string"},"tiers":{"type":"array","minItems":1,"items":{"type":"object","required":["threshold","value"],"properties":{"threshold":{"type":"object","description":"Minimum order subtotal for this tier.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].threshold.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].threshold.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].threshold","typeLabel":"object"},"value":{"oneOf":[{"type":"object","title":"Percentage","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","value"],"properties":{"unit":{"type":"string","const":"percentage","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.unit","typeLabel":"string"},"value":{"type":"number","exclusiveMinimum":0,"maximum":100,"description":"Percent off. Writes accept integers. Offers authored in the\nABConvert admin can read back decimals.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.value","typeLabel":"number"},"max_discount_amount":{"type":"object","description":"The most this discount can take off the order. Percentage\ndiscounts only. A fixed amount is already absolute, so\nsending a cap with one returns 422\n`max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.0","typeLabel":"Percentage · object"},{"type":"object","title":"Fixed amount","description":"How much the discount takes off. Always unsigned, because a discount only ever reduces the price.","required":["unit","amount"],"properties":{"unit":{"type":"string","const":"fixed","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.unit","typeLabel":"string"},"amount":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.amount","typeLabel":"object"},"max_discount_amount":{"type":"object","description":"Refused here. A fixed amount is already absolute, so sending\na cap with one returns 422 `max_discount_amount_not_allowed`.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.max_discount_amount.currency","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1.max_discount_amount","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value.oneOf.1","typeLabel":"Fixed amount · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX].value","typeLabel":"Percentage · object | Fixed amount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.tiers","typeLabel":"object[]"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0.minimum","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.1.minimum","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition.oneOf.1","typeLabel":"Item quantity · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4.condition","typeLabel":"Order price · object | Item quantity · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.4","typeLabel":"Threshold discount · object"},{"type":"object","title":"Free gift","description":"Adds one product variant to the cart at no charge once the\ncart meets `condition`. `scope` is what counts toward the\ncondition, and the gift itself never counts. When the cart no\nlonger meets the condition the gift is removed, and a gift the\nshopper removes stays out until they change the cart again.\n","required":["type","gift","condition"],"properties":{"type":{"type":"string","const":"free_gift","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.type","typeLabel":"string"},"gift":{"type":"object","required":["product_id","variant_id"],"properties":{"product_id":{"type":"string","example":"gid://shopify/Product/8072112521451","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift.product_id","typeLabel":"string"},"variant_id":{"type":"string","example":"gid://shopify/ProductVariant/44271372484843","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift.variant_id","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Units given free. A shopper who raises the gift's quantity pays for the extra units.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift.quantity","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.gift","typeLabel":"object"},"condition":{"oneOf":[{"type":"object","title":"Order price","required":["type","minimum"],"properties":{"type":{"type":"string","const":"order_price","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.type","typeLabel":"string"},"minimum":{"type":"object","description":"Minimum order subtotal to qualify.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.minimum.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.minimum.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0.minimum","typeLabel":"object"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.0","typeLabel":"Order price · object"},{"type":"object","title":"Item quantity","required":["type","minimum"],"properties":{"type":{"type":"string","const":"quantity","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.1.type","typeLabel":"string"},"minimum":{"type":"integer","minimum":1,"description":"Minimum item quantity to qualify.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.1.minimum","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition.oneOf.1","typeLabel":"Item quantity · object"}],"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.condition","typeLabel":"Order price · object | Item quantity · object"},"scope":{"oneOf":[{"type":"object","title":"All products","description":"Which products the discount applies to. Omitted = all products.","required":["type"],"properties":{"type":{"type":"string","const":"all_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.0","typeLabel":"All products · object"},{"type":"object","title":"Specific products","description":"Which products the discount applies to. Omitted = all products.","required":["type","product_ids"],"properties":{"type":{"type":"string","const":"specific_products","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1.type","typeLabel":"string"},"product_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.1","typeLabel":"Specific products · object"},{"type":"object","title":"Specific collections","description":"Which products the discount applies to. Omitted = all products.","required":["type","collection_ids"],"properties":{"type":{"type":"string","const":"specific_collections","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2.type","typeLabel":"string"},"collection_ids":{"type":"array","minItems":1,"maxItems":250,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Collection/308896989","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2.collection_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2.collection_ids","typeLabel":"string[]"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope.oneOf.2","typeLabel":"Specific collections · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.scope","typeLabel":"All products · object | Specific products · object | Specific collections · object"},"auto_add":{"type":"boolean","default":true,"description":"When false, the gift is free only if the shopper adds that product variant themselves.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.auto_add","typeLabel":"boolean"},"remove_when_unqualified":{"type":"boolean","const":true,"default":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.remove_when_unqualified","typeLabel":"boolean"},"allow_removal":{"type":"boolean","const":true,"default":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5.allow_removal","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX].oneOf.5","typeLabel":"Free gift · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts.items.[INDEX]","typeLabel":"Product discount · object | Order discount · object | Shipping discount · object | Volume discount · object | Threshold discount · object | Free gift · object"},"isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.discounts","typeLabel":"(Product discount · object | Order discount · object | Shipping discount · object | Volume discount · object | Threshold discount · object | Free gift · object)[]"},"has_widgets":{"type":"boolean","readOnly":true,"description":"True when the offer carries storefront widgets authored in the ABConvert admin.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9.has_widgets","typeLabel":"boolean"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.9","typeLabel":"Offer change · object"},{"type":"object","title":"Subscription purchase change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type","product_id"],"properties":{"type":{"type":"string","const":"subscription","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.type","typeLabel":"string"},"product_id":{"type":"string","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.product_id","typeLabel":"string"},"purchase_type":{"type":"string","enum":["one-time","subscription"],"description":"Defaults to subscription when omitted.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.purchase_type","typeLabel":"enum\u003cstring>"},"provider_plan_id":{"type":"string","minLength":1,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.provider_plan_id","typeLabel":"string"},"shopify_selling_plan_id":{"type":"string","minLength":1,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.shopify_selling_plan_id","typeLabel":"string"},"product_path":{"type":"string","pattern":"^/products/","description":"Optional product page path for a duplicate-product treatment.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10.product_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.10","typeLabel":"Subscription purchase change · object"},{"type":"object","title":"Checkout block change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","properties":{"type":{"type":"string","const":"checkout_block","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11.type","typeLabel":"string"},"placement":{"type":"string","description":"Where the block renders: a Checkout page placement, a Thank\nyou page placement (`THANKYOU_MAIN1` to `THANKYOU_MAIN3` in\nMain, `THANKYOU_ORDERSUMMARY1` to `THANKYOU_ORDERSUMMARY3` in\nOrder summary), or an Order status page placement\n(`ORDERSTATUS_PAGETITLE` and `ORDERSTATUS_MAIN1` to\n`ORDERSTATUS_MAIN3` in Main, `ORDERSTATUS_ORDERSUMMARY1` to\n`ORDERSTATUS_ORDERSUMMARY3` in Order summary).\n","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11.placement","typeLabel":"string"},"block_type":{"type":"string","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11.block_type","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.11","typeLabel":"Checkout block change · object"},{"type":"object","title":"Post-purchase offer change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","properties":{"type":{"type":"string","const":"post_purchase_offer","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.type","typeLabel":"string"},"variant_id":{"type":"string","example":"gid://shopify/ProductVariant/44271372484843","description":"The product variant offered.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.variant_id","typeLabel":"string"},"pricing":{"oneOf":[{"type":"object","title":"Single discount","description":"How the offer is priced.","properties":{"type":{"type":"string","const":"single_discount","description":"One unit of the product variant at a discount.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0.type","typeLabel":"string"},"value":{"title":"Post-purchase offer discount","type":"object","readOnly":true,"properties":{"unit":{"type":"string","const":"percentage","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0.value.unit","typeLabel":"string"},"value":{"type":"number","minimum":0,"maximum":100,"example":15,"description":"Percent off the offered product. 0 means no discount.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0.value.value","typeLabel":"number"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0.value","typeLabel":"Post-purchase offer discount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.0","typeLabel":"Single discount · object"},{"type":"object","title":"Quantity break","description":"How the offer is priced.","properties":{"type":{"type":"string","const":"volume_discount","description":"The buyer picks one of 2 or 3 quantities of the product variant, each with its own discount.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.type","typeLabel":"string"},"tiers":{"type":"array","minItems":2,"maxItems":3,"description":"Quantities go up from tier to tier, and the discount stays the same or goes up.","items":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":10,"example":2,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX].quantity","typeLabel":"integer"},"value":{"title":"Post-purchase offer discount","type":"object","readOnly":true,"properties":{"unit":{"type":"string","const":"percentage","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX].value.unit","typeLabel":"string"},"value":{"type":"number","minimum":0,"maximum":100,"example":15,"description":"Percent off the offered product. 0 means no discount.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX].value.value","typeLabel":"number"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX].value","typeLabel":"Post-purchase offer discount · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.tiers","typeLabel":"object[]"},"preselected_quantity":{"type":"integer","example":2,"description":"The quantity selected when the page opens.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1.preselected_quantity","typeLabel":"integer"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing.oneOf.1","typeLabel":"Quantity break · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12.pricing","typeLabel":"Single discount · object | Quantity break · object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.12","typeLabel":"Post-purchase offer change · object"},{"type":"object","title":"Visual editor change","description":"One change applied by a test group. `changes: []` means \"change\nnothing\", which is the usual control. Subscription tests are an\nexception: every test group, including Control, needs a row for each\nproduct. A one-time row does not select a plan.\n\nAny test group can carry changes, including the control, where the\ntest type supports it. Per-type validation decides whether a given\ncontrol change is meaningful.\n","required":["type"],"properties":{"type":{"type":"string","const":"visual_editor","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.type","typeLabel":"string"},"custom_css":{"type":"string","maxLength":50000,"deprecated":true,"example":".hero__title { font-size: 2.5rem; }","description":"Deprecated: send `custom_code.css` on the test group instead. Still\naccepted, and written to `custom_code.css` when the test group\nsends no `custom_code`; still read back beside it.\n","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.custom_css","typeLabel":"string"},"custom_js":{"type":"string","maxLength":50000,"deprecated":true,"example":"document.querySelector(\".hero__title\").textContent = \"Free shipping over $50\";","description":"Deprecated: send `custom_code.js` on the test group instead. Still\naccepted, and written to `custom_code.js` when the test group\nsends no `custom_code`; still read back beside it. It has to\nparse, or the request returns 422 `custom_js_invalid`.\n","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.custom_js","typeLabel":"string"},"summary":{"type":"object","readOnly":true,"description":"The DOM changes this test group makes, which are authored in the ABConvert admin.","properties":{"change_count":{"type":"integer","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.change_count","typeLabel":"integer"},"changes_by_action":{"type":"object","description":"Count of changes by visual editor edit type: `set`, `insert`, `move`, `remove`.","additionalProperties":{"type":"integer","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.changes_by_action.additionalProperties","typeLabel":"integer"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.changes_by_action","typeLabel":"object"},"changed_attributes":{"type":"array","items":{"type":"string","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.changed_attributes.items.[INDEX]","typeLabel":"string"},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.changed_attributes","typeLabel":"string[]"},"has_custom_css":{"type":"boolean","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.has_custom_css","typeLabel":"boolean"},"has_custom_js":{"type":"boolean","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.has_custom_js","typeLabel":"boolean"},"custom_js_sha256":{"type":"string","description":"Digest of `custom_code.js`, for clients that only need to notice that it changed.","uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary.custom_js_sha256","typeLabel":"string"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13.summary","typeLabel":"object"}},"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX].oneOf.13","typeLabel":"Visual editor change · object"}],"uniqueKey":"test_groups.items.[INDEX].changes.items.[INDEX]","typeLabel":"Price change · object · Price change · object · Shipping change · object · Theme change · object · Template change · object · URL redirect change · object · Checkout: hide methods · object · Checkout: reorder methods · object · Checkout: rename methods · object · Offer change · object · Subscription purchase change · object · Checkout block change · object · Post-purchase offer change · object · Visual editor change · object"},"uniqueKey":"test_groups.items.[INDEX].changes","typeLabel":"Price change · object · Price change · object · Shipping change · object · Theme change · object · Template change · object · URL redirect change · object · Checkout: hide methods · object · Checkout: reorder methods · object · Checkout: rename methods · object · Offer change · object · Subscription purchase change · object · Checkout block change · object · Post-purchase offer change · object · Visual editor change · object[]"},"custom_code":{"type":"object","description":"CSS and JavaScript that run for this test group. Absent on read\nwhen the test group runs none.\n","properties":{"css":{"type":"string","maxLength":50000,"default":"","example":".hero__title { font-size: 2.5rem; }","description":"A stylesheet, injected as a `\u003cstyle>` block the moment the test\ngroup is assigned. Not validated: a rule the browser can't parse\nis dropped on its own, without taking the rest of the block with\nit.\n","uniqueKey":"test_groups.items.[INDEX].custom_code.css","typeLabel":"string"},"scripts":{"type":"array","default":[],"description":"Scripts for this test group, injected in the order given. Each one\ncarries its own timing, so one script can change the page before it\nshows while another waits for the page's elements.\n","items":{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"string","maxLength":50000,"example":"document.querySelector(\".hero__title\").textContent = \"Free shipping over $50\";","description":"A script, injected as an inline script tag. It has to parse:\na syntax error means the browser runs none of it, so one is\nrefused at write time with 422 `invalid_request` naming the\nline. Nothing beyond parsing is checked.\n","isRequired":true,"uniqueKey":"test_groups.items.[INDEX].custom_code.scripts.items.[INDEX].code","typeLabel":"string"},"run_at":{"type":"string","enum":["assigned","page-load"],"default":"assigned","description":"When this script runs. `assigned` runs it before the page\nshows, so visitors only see the changed page; slow code\ndelays the page, and parts of the page may not be there yet.\n`page-load` runs it once the whole page is there: the page\nshows without waiting, and visitors may see the page change.\n\n`assigned` is only available on price, theme, template,\nurl_redirect and visual_editor tests, whose script loads in\nthe page head. An offer, checkout, shipping, or subscription test resolves\nits test group after the page is on screen, so it runs every\nscript then; sending `assigned` on one is refused with 422\n`invalid_request` rather than quietly changed, so what you\nread back is what you sent. A combined test follows its\nchanges: one of the five is enough.\n","uniqueKey":"test_groups.items.[INDEX].custom_code.scripts.items.[INDEX].run_at","typeLabel":"enum\u003cstring>"}},"uniqueKey":"test_groups.items.[INDEX].custom_code.scripts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"test_groups.items.[INDEX].custom_code.scripts","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"test_groups.items.[INDEX].custom_code","typeLabel":"object"},"template_preview_url":{"oneOf":[{"type":"string","readOnly":true,"description":"Plain storefront link, no test assignment. Template tests only.","uniqueKey":"test_groups.items.[INDEX].template_preview_url.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Plain storefront link, no test assignment. Template tests only.","uniqueKey":"test_groups.items.[INDEX].template_preview_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"test_groups.items.[INDEX].template_preview_url","typeLabel":"string | null"}},"uniqueKey":"test_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"test_groups","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"hypothesis":{"oneOf":[{"type":"string","uniqueKey":"hypothesis.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"hypothesis.oneOf.1","typeLabel":"null"}],"uniqueKey":"hypothesis","typeLabel":"string | null"},"primary_metric":{"oneOf":[{"type":"string","description":"The metric the test is judged on; custom metrics are response-only.","enum":["revenue_per_visitor","average_order_value","conversion_rate","profit_per_visitor","add_to_cart_rate","reached_checkout_rate"],"example":"revenue_per_visitor","uniqueKey":"primary_metric.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"The metric the test is judged on; custom metrics are response-only.","pattern":"^custom_[a-z0-9_][a-z0-9_-]{0,49}$","example":"revenue_per_visitor","uniqueKey":"primary_metric.oneOf.1","typeLabel":"string"},{"type":"null","uniqueKey":"primary_metric.oneOf.2","typeLabel":"null"}],"uniqueKey":"primary_metric","typeLabel":"enum\u003cstring> | string | null"},"traffic_allocation":{"type":"integer","uniqueKey":"traffic_allocation","typeLabel":"integer"},"shared":{"type":"object","description":"Configuration shared by every test group in the test, keyed by\nchange type. Send exactly the key that matches the test's `type`. A\n`combined` test carries one key per change type it bundles. A `theme`\nor `visual_editor` test has no key here and takes no `shared`.\n","properties":{"price":{"type":"object","required":["product_ids"],"properties":{"product_ids":{"type":"array","minItems":1,"maxItems":500,"description":"One test can carry 100 products, or 500 on shops with the\nraised limit. Going over returns 422\n`product_limit_exceeded`, and the message names your cap and\nhow many you sent.\n","items":{"type":"string","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Product/8123456789","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","uniqueKey":"shared.price.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"shared.price.product_ids","typeLabel":"string[]"},"markets":{"type":"array","description":"The markets you can set per-country prices in. Omitted =\nbase price only. Listing a market makes the countries in\nits `countries` array priceable. Any country you price must\nbe covered by a listed market, or the request returns 422\n`market_pricing_incomplete`. Countries are never dropped\nsilently.\n","items":{"type":"object","description":"A Shopify market and the countries you price in it.\n\n`countries` is optional on write and always present on read. Omit it and\nthe server resolves the countries this market owns and pins that list on\nthe test, so a later change to your Shopify markets can't move what the\ntest prices. Send it to narrow that set; anything you send that the\nmarket doesn't own returns 422 `market_pricing_incomplete` rather than\nbeing dropped.\n\nShopify serves a buyer from the most specific market containing their\ncountry, so a country covered by a narrower market belongs to that one.\nABConvert reports countries it leaves out with these warnings:\n\n- `country_served_by_other_market`: a narrower market already serves it.\n- `country_ownership_ambiguous`: more than one market claims it.\n\n`market_not_contextual` means the market uses your shop's own currency.\nIts owned countries stay in the test and use prices in that currency.\n\nA market that ends up owning nothing returns 422 `market_empty`.\n\nOnly markets that serve your online store count. A retail (POS), B2B,\nor sales channel market never serves an online buyer, so naming one\nreturns 422 `market_not_found`, and one that covers the same countries\nas your online market does not affect what the test prices.\n","required":["id"],"properties":{"id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/Market/13762560","isRequired":true,"uniqueKey":"shared.price.markets.items.[INDEX].id","typeLabel":"string"},"countries":{"type":"array","minItems":1,"description":"ISO 3166-1 alpha-2 codes for the countries this market covers.\nOptional on write; always present on read, where it is the pinned\nlist the test actually prices.\n","items":{"type":"string","pattern":"^[A-Z]{2}$","uniqueKey":"shared.price.markets.items.[INDEX].countries.items.[INDEX]","typeLabel":"string"},"uniqueKey":"shared.price.markets.items.[INDEX].countries","typeLabel":"string[]"}},"uniqueKey":"shared.price.markets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shared.price.markets","typeLabel":"object[]"}},"uniqueKey":"shared.price","typeLabel":"object"},"shipping":{"type":"object","required":["zone_ids"],"properties":{"zone_ids":{"type":"array","minItems":1,"items":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/DeliveryZone/282141261","uniqueKey":"shared.shipping.zone_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"shared.shipping.zone_ids","typeLabel":"string[]"}},"uniqueKey":"shared.shipping","typeLabel":"object"},"template":{"type":"object","required":["theme_id","template_type"],"properties":{"theme_id":{"type":"string","description":"A Shopify global ID (GID). It is the only accepted form for Shopify resources.","pattern":"^gid://shopify/[A-Za-z]+/\\d+$","example":"gid://shopify/OnlineStoreTheme/123456789","isRequired":true,"uniqueKey":"shared.template.theme_id","typeLabel":"string"},"template_type":{"type":"string","enum":["index","collection","product","page","blog","article","cart","search"],"example":"product","isRequired":true,"uniqueKey":"shared.template.template_type","typeLabel":"enum\u003cstring>"},"path_rules":{"type":"object","required":["mode","rules"],"description":"Limits the test to certain storefront URLs. Omitted = storewide.\nRules combine with OR: a page matches when any one rule matches.\n","properties":{"mode":{"type":"string","enum":["include","exclude"],"description":"`include` applies the test on matching pages only. `exclude`\napplies it everywhere except matching pages.\n","isRequired":true,"uniqueKey":"shared.template.path_rules.mode","typeLabel":"enum\u003cstring>"},"rules":{"type":"array","minItems":1,"items":{"type":"object","required":["match_type","match_value"],"properties":{"match_type":{"type":"string","enum":["exact","starts_with","contains","ends_with","regex","not_exact","not_starts_with","not_ends_with","not_contains","not_regex"],"description":"Every value is writable here, unlike in `shared.url_redirect.rules`.","isRequired":true,"uniqueKey":"shared.template.path_rules.rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"match_value":{"type":"string","minLength":1,"example":"/collections/sale","isRequired":true,"uniqueKey":"shared.template.path_rules.rules.items.[INDEX].match_value","typeLabel":"string"},"subject":{"type":"string","enum":["path","path_and_query_string","query_string"],"default":"path","description":"Which part of the URL the rule matches against. The origin is never\npart of the match.\n\n- `path`: the page path relative to the store root, starting with `/`.\n- `path_and_query_string`: the path with the query string appended.\n- `query_string`: the query string alone, including the leading `?`.\n\n`query_string` changes how some match types behave. `exact` and\n`contains`, and their negations, compare parameter pairs instead of\nraw text: `exact` requires the same parameter set with no extras,\nand `contains` requires every listed pair to be present. Write\n`match_value` as one or more parameter pairs, such as\n`utm_source=spring`.\n\n`starts_with`, `ends_with`, and `regex` still compare the raw query\nstring. Avoid them with this subject.\n","uniqueKey":"shared.template.path_rules.rules.items.[INDEX].subject","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shared.template.path_rules.rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"shared.template.path_rules.rules","typeLabel":"object[]"}},"uniqueKey":"shared.template.path_rules","typeLabel":"object"}},"uniqueKey":"shared.template","typeLabel":"object"},"url_redirect":{"type":"object","required":["rules"],"properties":{"rules":{"type":"array","minItems":1,"maxItems":50,"description":"Trigger rules, shared by every test group. Each test group\nmaps a destination to a rule by the rule's `key`. At most 50\nrules per test; more returns 422 `rule_limit_exceeded`.\n\nv1 reads and writes single-condition rules only. A test\nwhose triggers use compound conditions, authored in the\nABConvert admin, doesn't read back in full.\n","items":{"type":"object","required":["key","match_type","match_value"],"properties":{"key":{"type":"string","minLength":1,"description":"Identifies this rule within the request: each test group's\n`destinations` entry points at it by `rule_key`.\n\nThe key you send is not stored. The server publishes its own\nkeys on read (`rule_1`, `rule_2`, and so on, in the order the\nrules appear) and every response carries them, so read the keys off\nthe create response before addressing destinations in a PATCH.\nLike test-group indexes, they can renumber when the rule list\nchanges; re-read the test before further key-addressed edits.\n","isRequired":true,"uniqueKey":"shared.url_redirect.rules.items.[INDEX].key","typeLabel":"string"},"match_type":{"type":"string","enum":["exact","starts_with","contains","ends_with","regex","not_exact","not_starts_with","not_ends_with","not_contains","not_regex"],"description":"How `match_value` is compared. You can write `exact`,\n`starts_with`, and `contains`. Any other value returns 422\n`match_type_unsupported`.\n\nTests authored in the ABConvert admin can use the full list, and\nthose values read back read-only. Analytics for them may fall\nback to storewide matching.\n","isRequired":true,"uniqueKey":"shared.url_redirect.rules.items.[INDEX].match_type","typeLabel":"enum\u003cstring>"},"match_value":{"type":"string","minLength":1,"description":"The pattern to match. `match_type` decides how it is compared,\nand `subject` decides what it is compared against. The match\nnever includes the origin.\n","example":"/products/old-pdp","isRequired":true,"uniqueKey":"shared.url_redirect.rules.items.[INDEX].match_value","typeLabel":"string"},"subject":{"type":"string","description":"Writes accept `path` only. A redirect trigger is stored without\na subject, so any other value could only be dropped silently and\nis refused instead. Tests authored in the ABConvert admin can\nmatch on the other subjects, and those read back.\n","default":"path","enum":["path","path_and_query_string","query_string"],"uniqueKey":"shared.url_redirect.rules.items.[INDEX].subject","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shared.url_redirect.rules.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"shared.url_redirect.rules","typeLabel":"object[]"},"redirect":{"type":"object","properties":{"mode":{"type":"string","enum":["always","once"],"default":"always","description":"How often the redirect fires. `always` redirects every matching visit. `once` redirects only the first one.","uniqueKey":"shared.url_redirect.redirect.mode","typeLabel":"enum\u003cstring>"},"preserve_query_string":{"type":"boolean","default":true,"description":"Carries the incoming query string over to the destination URL.","uniqueKey":"shared.url_redirect.redirect.preserve_query_string","typeLabel":"boolean"}},"uniqueKey":"shared.url_redirect.redirect","typeLabel":"object"}},"uniqueKey":"shared.url_redirect","typeLabel":"object"},"offer":{"type":"object","properties":{"combines_with":{"type":"object","description":"Which other discount classes the offer combines with. All\nthree flags default to true.\n\nOne restriction applies. An offer whose discount is a\n`shipping_discount` can't combine with other shipping\ndiscounts. ABConvert forces `shipping_discounts` to false\nfor those offers, and sending true returns 422\n`discount_combination_invalid`.\n","properties":{"product_discounts":{"type":"boolean","default":true,"uniqueKey":"shared.offer.combines_with.product_discounts","typeLabel":"boolean"},"order_discounts":{"type":"boolean","default":true,"uniqueKey":"shared.offer.combines_with.order_discounts","typeLabel":"boolean"},"shipping_discounts":{"type":"boolean","default":true,"uniqueKey":"shared.offer.combines_with.shipping_discounts","typeLabel":"boolean"}},"uniqueKey":"shared.offer.combines_with","typeLabel":"object"}},"uniqueKey":"shared.offer","typeLabel":"object"},"subscription":{"type":"object","required":["provider","semantics"],"description":"Subscription provider and plan selection policy. Each test group\nsupplies one `subscription` change per product. One-time rows have\nno plan. Launch checks verify provider connection, plan ownership,\nand storefront support.\n","properties":{"provider":{"type":"string","enum":["recharge","stay","skio"],"isRequired":true,"uniqueKey":"shared.subscription.provider","typeLabel":"enum\u003cstring>"},"semantics":{"type":"string","enum":["acquisition-only","new-recurring-price"],"description":"Only `new-recurring-price` can be created; older acquisition-only drafts can be read.","isRequired":true,"uniqueKey":"shared.subscription.semantics","typeLabel":"enum\u003cstring>"},"hide_other_plans":{"type":"boolean","default":true,"description":"Show only the visitor's assigned plan on the product page.","uniqueKey":"shared.subscription.hide_other_plans","typeLabel":"boolean"}},"uniqueKey":"shared.subscription","typeLabel":"object"}},"uniqueKey":"shared","typeLabel":"object"},"schedule":{"oneOf":[{"type":"object","description":"The window the scheduler runs the test in. Send at least one bound.\nAfter launch, only `end_at` is editable.\n\nA `start_at` is checked as a launch when you send it, so a test that\ncould not launch cannot book one. For a price test, that check\nincludes your store's theme check: if it has not passed, the request\nreturns 422 `theme_check_required` and no window is written. Request\nthe check in the ABConvert admin, then send the `start_at` again.\nSending `end_at` on its own is never refused for this reason.\n","minProperties":1,"properties":{"start_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"schedule.oneOf.0.start_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"schedule.oneOf.0.start_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"schedule.oneOf.0.start_at","typeLabel":"string\u003cdate-time> | null"},"end_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"schedule.oneOf.0.end_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"schedule.oneOf.0.end_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"schedule.oneOf.0.end_at","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"schedule.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"schedule.oneOf.1","typeLabel":"null"}],"uniqueKey":"schedule","typeLabel":"object | null"},"audience":{"oneOf":[{"type":"object","description":"Limits the test to visitors who match your filters. Without an\n`audience`, every visitor is eligible. In PATCH, `audience: null`\nturns targeting off.\n\nFilter groups combine with AND: a visitor must match every filter\ngroup to enter the test. Filters inside one filter group combine\nwith OR: one match is enough.\n\nTo require two filters at once, put each one in its own filter\ngroup. The example below enters visitors who are on mobile and new.\nPutting the same two filters in one filter group would enter\nvisitors who are on mobile or new instead.\n\nA test whose targeting you turn off in the ABConvert admin reads\nback with no `audience`.\n","required":["filter_groups"],"example":{"filter_groups":[{"filters":[{"type":"device","operator":"equals","value":"mobile"}]},{"filters":[{"type":"visitor_type","operator":"equals","value":"new"}]}]},"properties":{"filter_groups":{"type":"array","minItems":1,"items":{"type":"object","required":["filters"],"properties":{"filters":{"type":"array","minItems":1,"items":{"type":"object","required":["type","operator"],"properties":{"type":{"type":"string","enum":["country","market","customer","device","visitor_type","traffic_source","referral_domain","landing_page","query_param","cookie","js","klaviyo_segment"],"description":"What the filter inspects. Every value is writable\nexcept `js`, which runs storefront code you author in\nthe ABConvert admin. Sending `js` returns 422\n`filter_type_unsupported`. On tests that already use\nit, `js` reads back read-only.\n\n`klaviyo_segment` reads whether the visitor's Klaviyo\nprofile is in the segment whose id is the value.\nVisitors Klaviyo has not identified count as outside\nevery segment. A test carrying this filter launches\nonly while the store has a connected Klaviyo API key\nunder Integrations.\n\n`market` reads the Shopify market the visitor is\nbrowsing. `customer` reads customer identity:\n`logged_in` follows the live session, while `tags`,\n`orders_count` and `total_spent` come from the last\ncustomer logged in on that device. Both are in beta\nand need the ABConvert app embed enabled on your\ntheme. When the storefront can't\nread the visitor's market or customer, ABConvert makes\nno assignment on that page load rather than guessing,\nand stores nothing, so the visitor can still enter on a\nlater load where the value reads.\n","isRequired":true,"uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"operator":{"type":"string","description":"How `value` is compared. Which operators a filter\naccepts depends on its `type`, and for `customer` on\nits `key`. A pairing the storefront can't act on\nreturns 422 `filter_operator_invalid`, naming the\nfilter that carries it:\n\n- `market` and `traffic_source`: `equals`,\n `not_equals`, `in`, `not_in`.\n- `customer` `logged_in`: `equals`.\n- `customer` `tags`: `contains`, `not_contains`. To\n match any of several tags, send one filter per tag\n in the same filter group; filters in one filter\n group are OR'd.\n- `customer` `orders_count` and `total_spent`:\n `greater_than`, `less_than`. The numeric readings\n are the only ones the numeric operators apply to.\n- `klaviyo_segment`: `equals` (is in the segment) and\n `not_equals` (is not). To match any of several\n segments, send one filter per segment in the same\n filter group.\n- Every other type: the ten operators from `equals`\n through `regex`.\n\n`exists` and `not_exists` apply only to\n`query_param`, `cookie`, `referral_domain`, and\n`customer` `tags`, the readings that can genuinely\nbe absent.\n","enum":["equals","not_equals","contains","not_contains","in","not_in","exists","not_exists","starts_with","regex","greater_than","less_than","greater_or_equal","less_or_equal"],"isRequired":true,"uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"What the filter reads inside its `type`.\n\n- `query_param` and `cookie`: the parameter or cookie\n name, which you choose. Omitting it returns 422\n `filter_key_required`.\n- `customer`: one of `logged_in`, `tags`,\n `orders_count`, `total_spent`. Omitting it, or\n sending anything else, returns 422.\n\nOther types don't read this field. PATCH doesn't\nmerge on it.\n","uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","title":"Single value","description":"What the filter compares against. The shape follows\nthe operator:\n\n- Most operators: a string.\n- `in` and `not_in`: an array of strings, or a single\n string when you mean one.\n- `exists` and `not_exists`: omit the field.\n\nSending an array to any other operator returns 422;\nuse `in` or `not_in` to match several values.\n\nValues can't be empty, and `regex` patterns must\ncompile. Either violation returns 422\n`filter_value_invalid`.\n\n`equals`, `not_equals`, `in`, and `not_in` compare the\nwhole reading, so the value must be one the storefront\ncan report:\n\n| Filter type | Accepted value |\n|---|---|\n| `country` | An uppercase ISO-3166 alpha-2 code |\n| `device` | `desktop` or `mobile` |\n| `visitor_type` | `new` or `returning` |\n| `referral_domain` | A bare hostname |\n| `market` | The market handle from Settings > Markets |\n| `klaviyo_segment` | A Klaviyo segment id, the value in the segment's URL in Klaviyo |\n\nUnder `contains`, `starts_with`, and `regex` the value\nis a fragment of the reading, so only the emptiness and\ncompile rules apply.\n\nA `customer` filter's value follows its `key`, and is\nalways sent as a string:\n\n- `logged_in`: `\"true\"` or `\"false\"`.\n- `orders_count` and `total_spent`: a number, such as\n `\"3\"` or `\"99.50\"`. `total_spent` is in your store's\n currency.\n- `tags`: one Shopify customer tag. Matching is exact\n and case-insensitive, so `wholesale` doesn't match\n `wholesale-pending`.\n\nAnything the storefront couldn't read as that shape\nreturns 422 `filter_value_invalid`.\n\nA `traffic_source` outside the channels and platforms\nABConvert classifies is accepted with a\n`filter_value_unrecognized` warning: a raw\n`utm_source` reaches the storefront verbatim, so it\ncan still match.\n","uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].value.oneOf.1.items.[INDEX]","typeLabel":"string"},"title":"Value list","description":"What the filter compares against. The shape follows\nthe operator:\n\n- Most operators: a string.\n- `in` and `not_in`: an array of strings, or a single\n string when you mean one.\n- `exists` and `not_exists`: omit the field.\n\nSending an array to any other operator returns 422;\nuse `in` or `not_in` to match several values.\n\nValues can't be empty, and `regex` patterns must\ncompile. Either violation returns 422\n`filter_value_invalid`.\n\n`equals`, `not_equals`, `in`, and `not_in` compare the\nwhole reading, so the value must be one the storefront\ncan report:\n\n| Filter type | Accepted value |\n|---|---|\n| `country` | An uppercase ISO-3166 alpha-2 code |\n| `device` | `desktop` or `mobile` |\n| `visitor_type` | `new` or `returning` |\n| `referral_domain` | A bare hostname |\n| `market` | The market handle from Settings > Markets |\n| `klaviyo_segment` | A Klaviyo segment id, the value in the segment's URL in Klaviyo |\n\nUnder `contains`, `starts_with`, and `regex` the value\nis a fragment of the reading, so only the emptiness and\ncompile rules apply.\n\nA `customer` filter's value follows its `key`, and is\nalways sent as a string:\n\n- `logged_in`: `\"true\"` or `\"false\"`.\n- `orders_count` and `total_spent`: a number, such as\n `\"3\"` or `\"99.50\"`. `total_spent` is in your store's\n currency.\n- `tags`: one Shopify customer tag. Matching is exact\n and case-insensitive, so `wholesale` doesn't match\n `wholesale-pending`.\n\nAnything the storefront couldn't read as that shape\nreturns 422 `filter_value_invalid`.\n\nA `traffic_source` outside the channels and platforms\nABConvert classifies is accepted with a\n`filter_value_unrecognized` warning: a raw\n`utm_source` reaches the storefront verbatim, so it\ncan still match.\n","uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].value.oneOf.1","typeLabel":"string[]"}],"uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX].value","typeLabel":"string | string[]"}},"uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX].filters","typeLabel":"object[]"}},"uniqueKey":"audience.oneOf.0.filter_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"audience.oneOf.0.filter_groups","typeLabel":"object[]"}},"uniqueKey":"audience.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"audience.oneOf.1","typeLabel":"null"}],"uniqueKey":"audience","typeLabel":"object | null"},"has_force_assign_rules":{"type":"boolean","readOnly":true,"description":"True when the test has force-assign rules, which you author in\nthe ABConvert admin. ABConvert evaluates them only for visitors\nwho already match `audience`, and applies the first rule whose\nfilters all match: that rule either puts the visitor in the test\ngroup it names or keeps them out of the test, in place of the\nrandom split.\n","uniqueKey":"has_force_assign_rules","typeLabel":"boolean"},"assignment_version":{"type":"integer","readOnly":true,"description":"Increments whenever visitors are reassigned to test groups, for example after a split change.","uniqueKey":"assignment_version","typeLabel":"integer"},"product_group":{"oneOf":[{"type":"object","readOnly":true,"description":"The product group attached to this test, or null. Its `id` is what\n`product_group_id` takes on a custom result query. No\nproduct-group endpoint exists, so read it here.\n","properties":{"id":{"type":"string","example":"66c1f0a2e4b0a1d2c3e4f5a6","uniqueKey":"product_group.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","example":"Bestsellers","uniqueKey":"product_group.oneOf.0.name","typeLabel":"string"}},"uniqueKey":"product_group.oneOf.0","typeLabel":"object"},{"type":"null","readOnly":true,"description":"The product group attached to this test, or null. Its `id` is what\n`product_group_id` takes on a custom result query. No\nproduct-group endpoint exists, so read it here.\n","properties":{"id":{"type":"string","example":"66c1f0a2e4b0a1d2c3e4f5a6"},"name":{"type":"string","example":"Bestsellers"}},"uniqueKey":"product_group.oneOf.1","typeLabel":"null"}],"uniqueKey":"product_group","typeLabel":"object | null"},"results_summary":{"oneOf":[{"type":"object","description":"Present only with `?include=results_summary`. Null when no\nsnapshot has been computed for the test yet.\n","required":["computed_at","test_groups"],"properties":{"computed_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"results_summary.oneOf.0.computed_at","typeLabel":"string\u003cdate-time>"},"test_groups":{"type":"array","description":"Sample size and the six primary metrics, per test group.","items":{"type":"object","required":["test_group_index","sample_size"],"properties":{"test_group_index":{"type":"integer","example":1,"isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].test_group_index","typeLabel":"integer"},"sample_size":{"type":"integer","example":5231,"description":"Visitors in the test group, or exposures for exposure-measured\ntypes. This is the denominator for `conversion_rate`,\n`revenue_per_visitor`, and `profit_per_visitor`.\n","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].sample_size","typeLabel":"integer"},"session_count":{"oneOf":[{"type":"integer","example":6816,"description":"Sessions from the test group's traffic. This is the denominator\nfor `add_to_cart_rate` and `reached_checkout_rate`.\n","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].session_count.oneOf.0","typeLabel":"integer"},{"type":"null","example":6816,"description":"Sessions from the test group's traffic. This is the denominator\nfor `add_to_cart_rate` and `reached_checkout_rate`.\n","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].session_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].session_count","typeLabel":"integer | null"},"conversion_rate":{"oneOf":[{"type":"number","example":0.034,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].conversion_rate.oneOf.0","typeLabel":"number"},{"type":"null","example":0.034,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].conversion_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].conversion_rate","typeLabel":"number | null"},"revenue_per_visitor":{"oneOf":[{"type":"object","description":"Money, in the shop's own currency.\n","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].revenue_per_visitor.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].revenue_per_visitor.oneOf.0.currency","typeLabel":"string"}},"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].revenue_per_visitor.oneOf.0","typeLabel":"object"},{"type":"null","description":"Money, in the shop's own currency.\n","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].revenue_per_visitor.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].revenue_per_visitor","typeLabel":"object | null"},"average_order_value":{"oneOf":[{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].average_order_value.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].average_order_value.oneOf.0.currency","typeLabel":"string"}},"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].average_order_value.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].average_order_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].average_order_value","typeLabel":"object | null"},"profit_per_visitor":{"oneOf":[{"type":"object","description":"Null until COGS settings are configured.","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","example":"17.99","description":"A decimal string. Only fields that express a delta accept a leading minus sign.","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].profit_per_visitor.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","example":"USD","description":"ISO 4217 code. On write it must be the shop's own currency;\nanything else returns 422 `currency_mismatch`.\n","isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].profit_per_visitor.oneOf.0.currency","typeLabel":"string"}},"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].profit_per_visitor.oneOf.0","typeLabel":"object"},{"type":"null","description":"Null until COGS settings are configured.","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].profit_per_visitor.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].profit_per_visitor","typeLabel":"object | null"},"add_to_cart_rate":{"oneOf":[{"type":"number","example":0.081,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].add_to_cart_rate.oneOf.0","typeLabel":"number"},{"type":"null","example":0.081,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].add_to_cart_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].add_to_cart_rate","typeLabel":"number | null"},"reached_checkout_rate":{"oneOf":[{"type":"number","example":0.052,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].reached_checkout_rate.oneOf.0","typeLabel":"number"},{"type":"null","example":0.052,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].reached_checkout_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].reached_checkout_rate","typeLabel":"number | null"},"page_view_count":{"oneOf":[{"type":"integer","example":120,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].page_view_count.oneOf.0","typeLabel":"integer"},{"type":"null","example":120,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].page_view_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].page_view_count","typeLabel":"integer | null"},"click_through_count":{"oneOf":[{"type":"integer","example":30,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].click_through_count.oneOf.0","typeLabel":"integer"},{"type":"null","example":30,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].click_through_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].click_through_count","typeLabel":"integer | null"},"click_through_rate":{"oneOf":[{"type":"number","example":0.25,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].click_through_rate.oneOf.0","typeLabel":"number"},{"type":"null","example":0.25,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].click_through_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].click_through_rate","typeLabel":"number | null"},"bounce_rate":{"oneOf":[{"type":"number","example":0.4,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].bounce_rate.oneOf.0","typeLabel":"number"},{"type":"null","example":0.4,"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].bounce_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].bounce_rate","typeLabel":"number | null"},"avg_staying_time":{"oneOf":[{"type":"number","example":50,"description":"Average time on page in seconds.","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].avg_staying_time.oneOf.0","typeLabel":"number"},{"type":"null","example":50,"description":"Average time on page in seconds.","uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].avg_staying_time.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX].avg_staying_time","typeLabel":"number | null"}},"uniqueKey":"results_summary.oneOf.0.test_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results_summary.oneOf.0.test_groups","typeLabel":"object[]"},"outcome":{"oneOf":[{"type":"string","enum":["winner","loser","inconclusive","insufficient_data",null],"uniqueKey":"results_summary.oneOf.0.outcome.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["winner","loser","inconclusive","insufficient_data",null],"uniqueKey":"results_summary.oneOf.0.outcome.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.outcome","typeLabel":"enum\u003cstring> | null"},"winning_test_group_index":{"oneOf":[{"type":"integer","uniqueKey":"results_summary.oneOf.0.winning_test_group_index.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"results_summary.oneOf.0.winning_test_group_index.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.winning_test_group_index","typeLabel":"integer | null"},"verdictState":{"type":"string","enum":["winner","loser","inconclusive","insufficient_data","low_risk","your_call","keep_control"],"description":"Merchant decision from the shared verdict ladder. Present only while the low-traffic verdict release is enabled.","uniqueKey":"results_summary.oneOf.0.verdictState","typeLabel":"enum\u003cstring>"},"worstCasePct":{"oneOf":[{"type":"number","description":"Low end of the primary metric's relative 95% interval, expressed as a percent, for checkpoint states.","uniqueKey":"results_summary.oneOf.0.worstCasePct.oneOf.0","typeLabel":"number"},{"type":"null","description":"Low end of the primary metric's relative 95% interval, expressed as a percent, for checkpoint states.","uniqueKey":"results_summary.oneOf.0.worstCasePct.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.worstCasePct","typeLabel":"number | null"},"checkpointDay":{"type":"integer","minimum":14,"description":"Integer days since the test started at the checkpoint that produced this guidance. Planned checkpoints are bounded to days 14-28; a manual end uses its actual day, including after day 28.","uniqueKey":"results_summary.oneOf.0.checkpointDay","typeLabel":"integer"},"keepControlReason":{"type":"string","enum":["points_down","drop_not_ruled_out"],"uniqueKey":"results_summary.oneOf.0.keepControlReason","typeLabel":"enum\u003cstring>"},"secondary":{"type":"object","description":"The first secondary metric whose 95% uplift range allows a drop of more than 5%, present for `your_call`.","required":["metric","deltaPct"],"properties":{"metric":{"type":"string","enum":["revenue_per_visitor","conversion_rate","average_order_value","profit_per_visitor","add_to_cart_rate","reached_checkout_rate"],"isRequired":true,"uniqueKey":"results_summary.oneOf.0.secondary.metric","typeLabel":"enum\u003cstring>"},"deltaPct":{"type":"number","isRequired":true,"uniqueKey":"results_summary.oneOf.0.secondary.deltaPct","typeLabel":"number"},"worstCasePct":{"type":"number","description":"Lower bound of the relative 95% interval, expressed as a percent.","uniqueKey":"results_summary.oneOf.0.secondary.worstCasePct","typeLabel":"number"}},"uniqueKey":"results_summary.oneOf.0.secondary","typeLabel":"object"},"declinedSecondaries":{"type":"array","description":"Evaluated secondary metrics whose 95% range allows a drop of more than 5% or whose point estimate is below control, in saved card order. Present for `your_call`.","items":{"type":"object","required":["metric","control","variant","deltaPct"],"properties":{"metric":{"type":"string","enum":["revenue_per_visitor","conversion_rate","average_order_value","profit_per_visitor","add_to_cart_rate","reached_checkout_rate"],"isRequired":true,"uniqueKey":"results_summary.oneOf.0.declinedSecondaries.items.[INDEX].metric","typeLabel":"enum\u003cstring>"},"control":{"type":"number","isRequired":true,"uniqueKey":"results_summary.oneOf.0.declinedSecondaries.items.[INDEX].control","typeLabel":"number"},"variant":{"type":"number","isRequired":true,"uniqueKey":"results_summary.oneOf.0.declinedSecondaries.items.[INDEX].variant","typeLabel":"number"},"deltaPct":{"type":"number","isRequired":true,"uniqueKey":"results_summary.oneOf.0.declinedSecondaries.items.[INDEX].deltaPct","typeLabel":"number"},"worstCasePct":{"type":"number","description":"Lower bound of the relative 95% interval, expressed as a percent.","uniqueKey":"results_summary.oneOf.0.declinedSecondaries.items.[INDEX].worstCasePct","typeLabel":"number"}},"uniqueKey":"results_summary.oneOf.0.declinedSecondaries.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results_summary.oneOf.0.declinedSecondaries","typeLabel":"object[]"},"srm_status":{"oneOf":[{"type":"string","enum":["ok","mismatch","insufficient_data",null],"uniqueKey":"results_summary.oneOf.0.srm_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["ok","mismatch","insufficient_data",null],"uniqueKey":"results_summary.oneOf.0.srm_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary.oneOf.0.srm_status","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"results_summary.oneOf.0","typeLabel":"object"},{"type":"null","description":"Present only with `?include=results_summary`. Null when no\nsnapshot has been computed for the test yet.\n","uniqueKey":"results_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"results_summary","typeLabel":"object | null"},"started_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"started_at","typeLabel":"string\u003cdate-time> | null"},"ended_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"ended_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"ended_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"ended_at","typeLabel":"string\u003cdate-time> | null"},"warnings":{"type":"array","description":"Non-blocking findings. Absent when the request raised none.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"const":"warning","isRequired":true,"uniqueKey":"warnings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"warnings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"warnings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"warnings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"experiment","id":"3021","type":"price","status":"draft","name":"\u003cstring>","test_groups":[{"name":"Variant A","control":false,"split":50,"changes":[{"type":"price","adjustment":{"unit":"percentage","value":0},"prices":[{"product_variant_id":"gid://shopify/ProductVariant/45678","price":{"amount":"17.99","currency":"USD"},"compare_at_price":{"amount":"24.99","currency":"USD"},"country_prices":[{"country":"AU","price":{"amount":"27.99","currency":"AUD"}}]}]}],"custom_code":{"css":".hero__title { font-size: 2.5rem; }","scripts":[]},"template_preview_url":"\u003cstring>"}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","hypothesis":"\u003cstring>","primary_metric":"revenue_per_visitor","traffic_allocation":123,"shared":{"price":{"product_ids":["gid://shopify/Product/8123456789"],"markets":[{"id":"gid://shopify/Market/13762560","countries":["\u003cstring>"]}]},"shipping":{"zone_ids":["gid://shopify/DeliveryZone/282141261"]},"template":{"theme_id":"gid://shopify/OnlineStoreTheme/123456789","template_type":"product","path_rules":{"mode":"include","rules":[{"match_type":"exact","match_value":"/collections/sale","subject":"path"}]}},"url_redirect":{"rules":[{"key":"\u003cstring>","match_type":"exact","match_value":"/products/old-pdp","subject":"path"}],"redirect":{"mode":"always","preserve_query_string":true}},"offer":{"combines_with":{"product_discounts":true,"order_discounts":true,"shipping_discounts":true}},"subscription":{"provider":"recharge","semantics":"acquisition-only","hide_other_plans":true}},"schedule":{"start_at":"2023-11-07T05:31:56Z","end_at":"2023-11-07T05:31:56Z"},"audience":{"filter_groups":[{"filters":[{"type":"device","operator":"equals","value":"mobile"}]},{"filters":[{"type":"visitor_type","operator":"equals","value":"new"}]}]},"has_force_assign_rules":true,"assignment_version":123,"product_group":{"id":"66c1f0a2e4b0a1d2c3e4f5a6","name":"Bestsellers"},"results_summary":{"computed_at":"2023-11-07T05:31:56Z","test_groups":[{"test_group_index":1,"sample_size":5231,"session_count":6816,"conversion_rate":0.034,"revenue_per_visitor":{"amount":"17.99","currency":"USD"},"average_order_value":{"amount":"17.99","currency":"USD"},"profit_per_visitor":{"amount":"17.99","currency":"USD"},"add_to_cart_rate":0.081,"reached_checkout_rate":0.052,"page_view_count":120,"click_through_count":30,"click_through_rate":0.25,"bounce_rate":0.4,"avg_staying_time":50}],"outcome":"winner","winning_test_group_index":123,"verdictState":"winner","worstCasePct":123,"checkpointDay":15,"keepControlReason":"points_down","secondary":{"metric":"revenue_per_visitor","deltaPct":123,"worstCasePct":123},"declinedSecondaries":[{"metric":"revenue_per_visitor","control":123,"variant":123,"deltaPct":123,"worstCasePct":123}],"srm_status":"ok"},"started_at":"2023-11-07T05:31:56Z","ended_at":"2023-11-07T05:31:56Z","warnings":[{"severity":"warning","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"07ab4024-c79b-458b-bdb7-a0543f112f6d":{"description":"`invalid_request_error`. The request never reached the test, so nothing\nchanged. Fix the request and send it again.\n\n- `malformed_json`: the body isn't valid JSON.\n- `unknown_parameter`: `param` names a field this endpoint doesn't\n accept. Remove it.\n- `invalid_cursor`: the cursor is stale or invalid. Start the list\n again from the first page.\n- `invalid_include`: `include` accepts `results_summary` only.\n- `invalid_idempotency_key`: send a key of 1 to 255 characters, or omit\n the header.\n- `invalid_request`: `param` names the query parameter to fix.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"8407a7ef-a911-404c-acfd-514b59849483":{"description":"`authentication_error`. Send a valid token as\n`Authorization: Bearer \u003ctoken>`.\n\n- `missing_token`: no bearer token on the request.\n- `invalid_token`: the token is malformed, does not exist, or names a\n shop ABConvert can no longer act for.\n- `token_revoked`: someone revoked this token in the ABConvert admin.\n Create a new one.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"fda6acdb-1333-4d62-bc4d-946034f6e22d":{"description":"`permission_error`. The shop or the token isn't allowed to do this, so\nnothing changed.\n\n| Code | What to do | Where it applies |\n|---|---|---|\n| `insufficient_scope` | Use a token with the scope named in `details.required_scope`. | Any request |\n| `api_access_disabled` | API access is turned off for this shop. Contact support. | Any request |\n| `storefront_code_write_forbidden` | Have the shop owner review this caller's permission to change or activate storefront JavaScript. | Executable-code changes and activation |\n| `storefront_code_bulk_not_supported` | Submit executable-code changes one test at a time for review. | Executable-code writes |\n| `subscription_inactive` | Renew the shop's ABConvert subscription, then retry. | `start` and `resume` |\n| `billing_cap_reached` | Raise the shop's usage cap for the period, then retry. | `start` and `resume` |\n| `allowance_exhausted` | The shop used this month's included, banked and purchased orders on its annual plan. Add usage or upgrade in the app, then retry. | `start` and `resume` |\n| `pause_plan_active` | Open Account in ABConvert and choose **Resume plan** to schedule or launch a test. Draft saves and private previews are available during active Pause. | Scheduling, `start`, and `resume`. Preview can also return this code while the plan change is pending. |\n| `feature_not_in_plan` | Upgrade to the plan named in `message`. `param` names the feature: `price`, `offer`, `shipping`, `combined`, `advanced_targeting`, `market_targeting`, `page_targeting`, `subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks` (a block on the Checkout page needs Shopify Plus), `thank_you_blocks` (a block on the Thank you page is not available on Shopify Starter), or `order_status_blocks` (the same for a block on the Order status page). | Create, update, `preview`, `start`, `resume` |\n| `carrier_service_required` | Give the shop carrier-calculated shipping. A Shopify plan with the feature, an existing carrier service, or annual ABConvert billing each satisfy it. | Shipping tests |\n\n`pause`, `end`, and `archive` never return entitlement errors. See\n[Feature availability](/api-reference/overview#feature-availability).\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"2dd8e0e9-acd2-4a08-a7b9-175bd69f5ee4":{"description":"`conflict_error`. One of these codes:\n\n- `invalid_status_transition`: `message` names the current status and\n the actions it allows, and `details` carries the same facts as\n data: `current_status` and `allowed_actions`.\n- `locked_field`: you tried to change a field that locks when a test\n launches. After launch you can still change `name`, `hypothesis`,\n `primary_metric`, a test group's `name` and `split`, and\n `schedule.end_at`; to change anything else, create a new test.\n- `idempotency_key_in_use`: another request already claimed this key.\n Use a new key for a new request, or retry with the same key in 90\n seconds if the first one might still be running. See\n [Idempotency](/api-reference/overview#idempotency).\n- `checks_pending`: ABConvert is still validating this test. Retry in\n about a minute. `archive` stays available meanwhile.\n- `editor_owned_content`: edit this test group in the ABConvert admin.\n It holds content the API can read but not rewrite, such as a checkout\n customization's display conditions or a checkout block, so the API\n refuses the change rather than erasing it.\n- `storefront_code_conflict`: the saved storefront code changed while\n you were editing. Reload the test and review the current code before\n submitting another change.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"3edcf99c-7673-42c2-8949-95949d34cf83":{"description":"`validation_error`. On a request body, the `findings` array lists\nevery blocking finding. On a query string, the error carries `param`\nnaming the parameter, and no `findings`.\n\n`preview_unsupported` is the one code here that judges the test rather\nthan the request: see\n[`POST /experiments/{id}/preview`](/api-reference/lifecycle/preview-a-test). It carries\nneither `findings` nor `param`, because nothing about the request is\nwrong.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"653e17ec-12f4-47c3-a2eb-1e00ad52ec25":{"description":"`rate_limit_error`, code `rate_limited`. You sent more requests than\nyour budget allows. Wait the number of seconds in `Retry-After`, then\nretry.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until the window resets."},"X-RateLimit-Limit":{"description":"How many requests this token may make in the current 60-second window.\nReads, writes, and result queries each have a separate budget, so this\nis the budget for the class this request falls in.\n","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp when the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"09bb1a69-1636-4448-92c8-13f3c098573a":{"description":"A status this operation doesn't enumerate. The body is the standard\nerror shape.\n\n- 413 `request_too_large`: the body is over 10 MB. Send less.\n- 500 `internal_error`: something went wrong on our side. Review the\n saved test before retrying. If it keeps failing, send support the\n `request_id`.\n- 503 `rate_limit_unavailable`, `audit_unavailable`,\n `idempotency_unavailable`, `post_test_unavailable`, or\n `internal_error`: the request was refused before it ran, so nothing\n on the shop changed. Retry it, with the same `Idempotency-Key` if you\n sent one.\n- 503 `storefront_code_write_uncertain`: the write outcome could not\n be confirmed. Review the saved configuration and storefront delivery\n before submitting another change. Do not assume the write failed.\n- 504 `internal_error`: the write timed out and nothing changed. Retry.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","validation_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"The code set is fixed for each error type.\n\n- 400: `malformed_json`, `unknown_parameter`,\n `invalid_cursor`, `invalid_include`,\n `invalid_idempotency_key` (an `Idempotency-Key` header that\n is empty or over 255 characters), `invalid_request`\n (a query parameter sent more than once, or `limit` not\n a whole number between 1 and 100),\n `invalid_custom_event_segment` (the custom-event selector\n pair is malformed), `invalid_custom_event_metric` (the rule\n does not exist, is unsupported, or was not active for the\n test's full run)\n- 401: `missing_token`, `invalid_token`, `token_revoked`\n- 403: `insufficient_scope`, `api_access_disabled`,\n `subscription_inactive`, `billing_cap_reached`,\n `allowance_exhausted`, `pause_plan_active`, `feature_not_in_plan`,\n `carrier_service_required`, `storefront_code_write_forbidden`\n (this caller lacks permission to change or activate storefront\n JavaScript), `storefront_code_bulk_not_supported` (submit\n executable-code changes individually for review)\n- 404: `experiment_not_found`, `export_not_found`,\n `results_query_not_found`, `invalid_custom_event_metric`\n (custom-event analytics are unavailable for this shop)\n- 409: `invalid_status_transition`, `locked_field`,\n `idempotency_key_in_use`, `checks_pending`,\n `editor_owned_content`, `post_test_not_ready`,\n `storefront_code_conflict` (reload\n and review the current storefront code before submitting\n another change)\n- 413: `request_too_large` (the body is over 10 MB)\n- 422: read the `findings` array. Each entry's `param` names\n the field and its `message` names what to fix; the top-level\n `code` repeats the first blocking finding. Some codes aren't\n finding rules:\n `invalid_request` (a body or parameter the schema refuses),\n `invalid_type` (a `type` this API can't create),\n `invalid_configuration` (the test as stored isn't valid to\n act on; `message` names what to fix),\n `launch_blocked` (a launch check failed with no finding to\n name), `preview_unsupported` (this test can't show a single\n test group through a preview link; preview it in the\n ABConvert admin), and\n `export_not_available` (the test hasn't run yet, so there is\n nothing to export), and `sample_basis_unsupported` (the test\n cannot serve the requested exposure denominator; `param` is\n `sample_basis`).\n A custom result query refuses its own parameters\n with `invalid_breakdown_dimension`,\n `breakdown_too_many_dimensions`,\n `duplicate_breakdown_dimension`, `invalid_date_range`,\n `date_range_out_of_bounds` (the window ends before the test\n started, or begins after today), `sample_basis_unsupported`,\n `invalid_metric_set` (the requested analytics registry is not\n available),\n `product_group_not_found`,\n `product_id_requires_product_group`, or\n `results_not_available` (the test hasn't run yet).\n\n A query parameter value outside the published vocabulary\n (`status`, `type`, `scheduled`, a `created_at` bound) returns\n `invalid_request` with `param` naming the parameter.\n\n On create, the codes fall into four families:\n - a resource this shop doesn't have:\n `product_not_found`, `collection_not_found`,\n `theme_not_found`, `template_not_found`,\n `zone_not_found`, `rate_not_found`\n - a test group with nothing to test, so add a change:\n `template_required`,\n `destination_required`, `change_required`,\n `rate_required`, `offer_required`,\n `subscription_plan_required`. A visual editor test\n where no test group changes anything is not refused: it\n is written as an A/A test with the warning\n `test_groups_identical`.\n - two parts of the request disagree, and the code names\n which:\n `duplicate_change`, `duplicate_group_name`,\n `duplicate_rule_key`, `rule_key_not_found`,\n `zone_not_declared`, `control_group_invalid`,\n `control_group_must_be_first`, `split_sum_invalid`\n - a value this API won't write, so author it in the\n ABConvert admin instead:\n `currency_mismatch`, `control_offers_rates`,\n `match_type_unsupported`,\n `max_discount_amount_not_allowed`,\n `discount_combination_invalid`,\n `condition_range_invalid`, `product_limit_exceeded`,\n `market_pricing_incomplete`,\n `shopify_selling_plan_required`,\n `subscription_semantics_unsupported`\n- 429: `rate_limited`\n- 500: `internal_error`\n- 501: `not_implemented` (a test type this API can't create\n yet, or a test whose stored form this API can't read back;\n use the ABConvert admin instead)\n- 503: `rate_limit_unavailable` (the limiter could not be\n reached, so the write was refused rather than let through\n uncounted; reads are served in this case),\n `audit_unavailable` (the write could not be recorded in the\n audit log, so it was not performed),\n `idempotency_unavailable` (ABConvert could not check your\n `Idempotency-Key`, so the request was refused rather than run\n without replay protection; retry with the same key),\n `post_test_unavailable` (the post-test snapshot could not be\n read; retry the request),\n `storefront_code_write_uncertain` (the write outcome could\n not be confirmed; review the saved configuration and\n storefront delivery before another write),\n `internal_error` (the request could not be run alongside\n other changes to this shop, so nothing was attempted; retry)\n- 504: `internal_error` (the write took too long and was rolled\n back, so nothing changed)\n\nEvery 5xx carries a `request_id`. Quote it when you contact\nsupport.\n","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the offending request field. On\n`feature_not_in_plan` it carries the feature slug instead:\n`price`, `offer`, `shipping`, `combined`,\n`advanced_targeting`, `market_targeting`, `page_targeting`,\n`subscription_test`, `multi_market`, `holdouts`, `post_purchase`, `checkout_blocks`,\n`thank_you_blocks`, or `order_status_blocks`.\n","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"Correlation id for one refused request. Present on every 5xx\nand on nothing else: a 4xx is about the request, and there is\nnothing on our side to look up. Send an `x-correlation-id`\nheader and that value is the id you get back.\n","uniqueKey":"error.request_id","typeLabel":"string"},"trace_id":{"type":"string","description":"Identifies this request in ABConvert's traces. Include it when\nyou report an error to support, whatever its status.\n","uniqueKey":"error.trace_id","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Machine-readable context, present where a code defines it.\n`invalid_status_transition` carries\n`{\"current_status\": \"...\", \"allowed_actions\": [...]}` so a\nclient can branch without parsing `message`.\n","uniqueKey":"error.details","typeLabel":"object"},"findings":{"type":"array","description":"Present on `validation_error`.","items":{"type":"object","required":["severity","code","message"],"properties":{"severity":{"type":"string","enum":["error","warning"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A snake_case identifier for the finding. Published codes never\nchange, and new ones are only added.\n","enum":["product_not_found","collection_not_found","theme_not_found","template_not_found","zone_not_found","rate_not_found","market_not_found","rule_key_not_found","template_required","destination_required","change_required","rate_required","offer_required","subscription_plan_required","subscription_product_duplicate","subscription_product_missing","subscription_purchase_type_mixed","subscription_subscription_group_required","subscription_one_time_plan_present","shopify_selling_plan_required","subscription_semantics_unsupported","theme_required","market_empty","product_not_testable","theme_not_testable","duplicate_change","duplicate_group_name","duplicate_rule_key","duplicate_trigger_url","duplicate_theme","duplicate_template","control_group_invalid","control_group_must_be_first","control_offers_rates","control_redirects","split_sum_invalid","test_groups_too_many","zone_not_declared","discount_combination_invalid","currency_mismatch","match_type_unsupported","max_discount_amount_not_allowed","condition_range_invalid","condition_unit_invalid","product_limit_exceeded","country_limit_exceeded","rule_limit_exceeded","market_pricing_incomplete","path_invalid","rate_name_required","rate_price_invalid","offer_title_required","filter_value_invalid","filter_operator_invalid","filter_key_required","filter_type_unsupported","custom_js_invalid","split_changed","country_served_by_other_market","country_ownership_ambiguous","market_not_contextual","trigger_overlaps","destination_matches_trigger","test_groups_identical","zone_not_configured","theme_not_published","filter_value_unrecognized","test_groups_missing","split_invalid","theme_test_running","visual_editor_conflict","app_embed_disabled","resource_claimed","test_overrides_personalization","audience_empty","force_assign_group_invalid","block_placement_invalid","block_page_not_allowed","modification_invalid","modification_kind_unknown","modification_duplicate_singleton","klaviyo_not_connected","custom_code_too_large","theme_check_required","launch_check_failed"],"isRequired":true,"uniqueKey":"error.findings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.findings.items.[INDEX].message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.0","typeLabel":"string"},{"type":"null","description":"JSON path of the field the finding points at, for example\n`shared.price.markets[0].countries[2]`. Offending values appear\nin `message`, not here.\n","uniqueKey":"error.findings.items.[INDEX].param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.findings.items.[INDEX].param","typeLabel":"string | null"}},"uniqueKey":"error.findings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.findings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","trace_id":"\u003cstring>","details":{},"findings":[{"severity":"error","code":"product_not_found","message":"\u003cstring>","param":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ce7d83d0-67ff-4843-9b10-62a9b5050f4d":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer tokens created in the ABConvert admin under\nSettings → MCP \u0026 API Access. Scopes:\n`read_experiments` and `write_experiments` (write implies read; the\ndefault is read). See\n[Authentication](/api-reference/authentication) for which scope each\nrequest needs.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"cc7458c0-ed26-4cb1-b0b9-54a4560c7080":{"url":"https://api.abconvert.io/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer tokens created in the ABConvert admin under\nSettings → MCP \u0026 API Access. Scopes:\n`read_experiments` and `write_experiments` (write implies read; the\ndefault is read). See\n[Authentication](/api-reference/authentication) for which scope each\nrequest needs.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer tokens created in the ABConvert admin under\nSettings → MCP \u0026 API Access. Scopes:\n`read_experiments` and `write_experiments` (write implies read; the\ndefault is read). See\n[Authentication](/api-reference/authentication) for which scope each\nrequest needs.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"abconvert","siteName":"ABConvert","title":"Create a test - ABConvert","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-29T17:07:39.142Z","originalFileLocation":"api-reference/experiments/create-a-test.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a test in draft. Launching is a separate step: call POST /experiments/{id}/start. You can include schedule in the same call, so a single request creates a scheduled draft. A schedule.start_at is a promise to launch unattended, so it is judged here the way PUT /experiments/{id}/schedule judges it. For a price test, that check includes your store\u0026#x27;s theme check: if it has not passed, the response is 422 theme_check_required and no test is created. Leave schedule out and the draft is created as usual, whatever the theme check says. What you can\u0026#x27;t create here: a visual editor test\u0026#x27;s DOM changes, combined tests, checkout block customizations, and offer widgets. You author those in the ABConvert admin, and they read back read-only. A visual_editor test itself is creatable, carrying custom CSS and JavaScript per test group. For the plan each test type needs, see Feature availability.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ABConvert\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a test - ABConvert\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a test in draft. Launching is a separate step: call POST /experiments/{id}/start. You can include schedule in the same call, so a single request creates a scheduled draft. A schedule.start_at is a promise to launch unattended, so it is judged here the way PUT /experiments/{id}/schedule judges it. For a price test, that check includes your store\u0026#x27;s theme check: if it has not passed, the response is 422 theme_check_required and no test is created. Leave schedule out and the draft is created as usual, whatever the theme check says. What you can\u0026#x27;t create here: a visual editor test\u0026#x27;s DOM changes, combined tests, checkout block customizations, and offer widgets. You author those in the ABConvert admin, and they read back read-only. A visual_editor test itself is creatable, carrying custom CSS and JavaScript per test group. For the plan each test type needs, see Feature availability.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ABConvert\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.abconvert.io/api-reference/experiments/create-a-test\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://abconvert.mintlify.site/_mintlify/api/og/v2?division=Tests\u0026amp;title=Create+a+test\u0026amp;description=Creates+a+test+in+%60draft%60.+Launching+is+a+separate+step%3A+call%0A%5B%60POST+%2Fexperiments%2F%7Bid%7D%2Fstart%60%5D%28%2Fapi-reference%2Flifecycle%2Flaunch-a-test%29.%0A%0AYou+can+include+%60schedu\u0026amp;theme=1e130442590a82eb3470e138\u0026amp;signature=34eb51918f49b09be1865a6524b353a27cabbbccad86e4e8b07ff688a59d6396\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a test - ABConvert\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a test in draft. Launching is a separate step: call POST /experiments/{id}/start. You can include schedule in the same call, so a single request creates a scheduled draft. A schedule.start_at is a promise to launch unattended, so it is judged here the way PUT /experiments/{id}/schedule judges it. For a price test, that check includes your store\u0026#x27;s theme check: if it has not passed, the response is 422 theme_check_required and no test is created. Leave schedule out and the draft is created as usual, whatever the theme check says. What you can\u0026#x27;t create here: a visual editor test\u0026#x27;s DOM changes, combined tests, checkout block customizations, and offer widgets. You author those in the ABConvert admin, and they read back read-only. A visual_editor test itself is creatable, carrying custom CSS and JavaScript per test group. For the plan each test type needs, see Feature availability.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://abconvert.mintlify.site/_mintlify/api/og/v2?division=Tests\u0026amp;title=Create+a+test\u0026amp;description=Creates+a+test+in+%60draft%60.+Launching+is+a+separate+step%3A+call%0A%5B%60POST+%2Fexperiments%2F%7Bid%7D%2Fstart%60%5D%28%2Fapi-reference%2Flifecycle%2Flaunch-a-test%29.%0A%0AYou+can+include+%60schedu\u0026amp;theme=1e130442590a82eb3470e138\u0026amp;signature=34eb51918f49b09be1865a6524b353a27cabbbccad86e4e8b07ff688a59d6396\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/abconvert/cj-fLemAa7_6ImHd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ABConvert\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#82C621\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.abconvert.io/api-reference/experiments/create-a-test\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/experiments/create-a-test.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.abconvert.io/#organization\",\"name\":\"ABConvert\",\"url\":\"https://docs.abconvert.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/abconvert/4yA52tsrkGprYEUg/images/ABConvert_docs_lightmode.svg?fit=max\u0026auto=format\u0026n=4yA52tsrkGprYEUg\u0026q=85\u0026s=4d993486a7a067b38b467aeffa07de01\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.abconvert.io#website\",\"name\":\"ABConvert\",\"url\":\"https://docs.abconvert.io\",\"publisher\":{\"@id\":\"https://docs.abconvert.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test#webpage\",\"url\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test\",\"name\":\"Create a test\",\"description\":\"Creates a test in draft. Launching is a separate step: call POST /experiments/{id}/start. You can include schedule in the same call, so a single request creates a scheduled draft. A schedule.start_at is a promise to launch unattended, so it is judged here the way PUT /experiments/{id}/schedule judges it. For a price test, that check includes your store's theme check: if it has not passed, the response is 422 theme_check_required and no test is created. Leave schedule out and the draft is created as usual, whatever the theme check says. What you can't create here: a visual editor test's DOM changes, combined tests, checkout block customizations, and offer widgets. You author those in the ABConvert admin, and they read back read-only. A visual_editor test itself is creatable, carrying custom CSS and JavaScript per test group. For the plan each test type needs, see Feature availability.\",\"dateModified\":\"2026-11-29T17:07:39.142Z\",\"isPartOf\":{\"@id\":\"https://docs.abconvert.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tests\",\"item\":\"https://docs.abconvert.io/api-reference/experiments/list-tests\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a test\",\"item\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test#apireference\",\"headline\":\"Create a test\",\"name\":\"Create a test\",\"description\":\"Creates a test in draft. Launching is a separate step: call POST /experiments/{id}/start. You can include schedule in the same call, so a single request creates a scheduled draft. A schedule.start_at is a promise to launch unattended, so it is judged here the way PUT /experiments/{id}/schedule judges it. For a price test, that check includes your store's theme check: if it has not passed, the response is 422 theme_check_required and no test is created. Leave schedule out and the draft is created as usual, whatever the theme check says. What you can't create here: a visual editor test's DOM changes, combined tests, checkout block customizations, and offer widgets. You author those in the ABConvert admin, and they read back read-only. A visual_editor test itself is creatable, carrying custom CSS and JavaScript per test group. For the plan each test type needs, see Feature availability.\",\"url\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test\",\"mainEntityOfPage\":{\"@id\":\"https://docs.abconvert.io/api-reference/experiments/create-a-test#webpage\"},\"dateModified\":\"2026-11-29T17:07:39.142Z\",\"publisher\":{\"@id\":\"https://docs.abconvert.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.abconvert.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ABConvert\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ABConvert\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/experiments/create-a-test.md","siteName":"ABConvert","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"REST API","groups":[{"group":"Overview","tag":"Beta","pages":[{"title":"API overview","sidebarTitle":"Overview","href":"/api-reference/overview"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/api-reference/authentication"}]},{"group":"Tests","tag":"Beta","pages":[{"title":"List tests","description":"Returns a cursor-paginated page of tests, and omits archived tests\nunless you pass `status=archived`.\n\nSend each parameter at most once. A repeated name returns 400\n`invalid_request`, and an unrecognized one returns 400\n`unknown_parameter`.\n\nEach test's `test_groups` carry identity only: `name`, `control`,\nand `split`, never `changes`. Fetch a test by ID to read its\nchanges.\n\nA runnable example: the cookbook's\n[portfolio dashboard](https://github.com/ABConvert/abconvert-cookbook/tree/main/rest-api/examples/portfolio-dashboard)\npages through this list with `?include=results_summary` for every\nstore you hold a token for.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /experiments","href":"/api-reference/experiments/list-tests"},{"title":"Create a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments","href":"/api-reference/experiments/create-a-test"},{"title":"Retrieve a test","description":"Returns one test by ID, with the full `changes` on every test group.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /experiments/{id}","href":"/api-reference/experiments/retrieve-a-test"},{"title":"Update a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /experiments/{id}","href":"/api-reference/experiments/update-a-test"}]},{"group":"Lifecycle","tag":"Beta","pages":[{"title":"Launch a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/start","href":"/api-reference/lifecycle/launch-a-test"},{"title":"Preview a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/preview","href":"/api-reference/lifecycle/preview-a-test"},{"title":"Convert a test to draft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/revert_to_draft","href":"/api-reference/lifecycle/convert-a-test-to-draft"},{"title":"Pause a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/pause","href":"/api-reference/lifecycle/pause-a-test"},{"title":"Resume a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/resume","href":"/api-reference/lifecycle/resume-a-test"},{"title":"End a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/end","href":"/api-reference/lifecycle/end-a-test"},{"title":"Archive a test","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/archive","href":"/api-reference/lifecycle/archive-a-test"}]},{"group":"Schedule","tag":"Beta","pages":[{"title":"Set the schedule window","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /experiments/{id}/schedule","href":"/api-reference/experiments/set-the-schedule-window"},{"title":"Clear the schedule window","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /experiments/{id}/schedule","href":"/api-reference/experiments/clear-the-schedule-window"}]},{"group":"Results","tag":"Beta","pages":[{"title":"Retrieve the results snapshot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /experiments/{id}/results","href":"/api-reference/results/retrieve-the-results-snapshot"},{"title":"Create a custom result query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/results","href":"/api-reference/results/create-a-custom-result-query"},{"title":"Retrieve a custom result query","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /experiments/{id}/results/{query_id}","href":"/api-reference/results/retrieve-a-custom-result-query"}]},{"group":"Exports","tag":"Beta","pages":[{"title":"Create an export job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /experiments/{id}/exports","href":"/api-reference/exports/create-an-export-job"},{"title":"Retrieve an export job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /exports/{id}","href":"/api-reference/exports/retrieve-an-export-job"},{"title":"Download an export file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /exports/{id}/download","href":"/api-reference/exports/download-an-export-file"}]}]},{"tab":"JavaScript API","pages":[{"title":"JavaScript API","href":"/api-reference/browser-api"}]},{"tab":"Headless SDK","pages":[{"title":"Headless SDK","href":"/headless-sdk/overview"}]}]},"basePath":"","title":"Create a test - ABConvert","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DUG0fxZu.js","snippetPresets-Ba5aWAdQ.js","utils-GxQLQihZ.js","style-to-object-BY3JEAdk.js","utils-WKMM_gjD.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bo9LYdaA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DwYjaFhs.js","_Uint8Array-DDE2Hehm.js","isObject-FP1Yky1u.js","Page-CUkc1DBo.js","api-description-markdown-CDE0Fpj5.js","DynamicMarkdown-F4EfLno9.js","CodeSnippet-Czwn5OJE.js","use-playground-group-access-C3A6I116.js","SectionHeading-DMe18In2.js","ApiExamples-DhR-5ORn.js","usePlaygroundInputsStore-BaYqfAgH.js","shallow-BC7UwQwD.js","isEqual-gcN6MEQu.js","CodeSnippets-B8P54LrN.js","MethodPill-CW7tTaiB.js","getPastedJson-DB5smC0Q.js","Check2Icon-DDdveNjm.js","axios-CsQoIw0U.js","Markdown-BLge-GTN.js","AssistantPageLink-BFI2wFhH.js","dist-C1RpOC6K.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}