For the complete documentation index, see llms.txt. This page is also available as Markdown.

[POST] Toggle continue selling

* Authentication

Required Authorization

Limit throttle:30,1

Endpoint [POST] - /shop-api/pre-order/products/toggle-continue-selling

Headers

Header
Required
Description

Authorization

Yes

Shop public API key Bearer token

Content-Type

Yes

application/json


1. Request Payload

Field
Type
Required
Description

variant_ids

array

Yes max:100

Shopify variant IDs (min 1). Must already exist in the shop’s pre-order products table.

variant_ids.*

integer | string

Yes

Each variant ID

oos

string

Yes

ON or OFF

oos

Meaning

ON

Enable continue selling (inventory_policyCONTINUE)

OFF

Disable continue selling (inventory_policyDENY)

Example — turn ON

{"variant_ids": [4567890123456, 4567890123457],"oos": "ON"}

Example — turn OFF


2. Success Response 200

Turn ON

Turn OFF


3. Response Keys & Fields

Top-level

Key
Type
Description

success

boolean

true when the toggle completes

variant_ids

array

Echo of the requested variant_ids

message

string

Success message based on oos

Request field reference

Field
Type
Description

variant_ids

array

Shopify variant IDs to toggle

oos

ON | OFF

Target continue-selling state

Layer

oos = ON

oos = OFF

Shopify inventory_policy

CONTINUE

DENY

Local product policy

CONTINUE

DENY


4. Failed Response

Validation error — HTTP 200

Products not found — HTTP 200

Unexpected server error — HTTP 200

Last updated

Was this helpful?