Create offer from template
API v2 is in public beta: endpoints and fields can change before general availability. See the changelog
/preorders/offer_templates/{id}/create_offerCosts 2 rate-limit points · Rate limits
Create a preorder offer from a template, optionally with a name and products. Returns the new offer.
The new offer has the template's settings, payment options, batches (without dates), markets and translations. It starts off, named after the template ("<name> (2)" and so on when taken) unless internal_name is sent, made unique the same way. A template keeps no dates. An offer that ships on an exact date, or charges its remaining balance on an exact date, keeps that setting with the date empty: dates_to_set lists each field to set (ships_at with PATCH .../shipping, partial.remaining_balance.charge_exact_time with PATCH .../payments), each also listed in also_changed. Until they are set the offer cannot be turned on or take products, so sending shopify_variant_ids or shopify_product_ids for such a template is a 422 and creates nothing. Products are added as POST /preorders/offers/:id/products/add_variants does, after the offer is created; if that add is refused (its pre-flight check, say), the offer is still created and products holds the error: add them with add_variants. Settings added to offers after the template was saved take their defaults. On a free plan the offer leaves every paid feature off (and keeps one payment option): reset_for_plan names them, each also listed in also_changed.
Also searched ascreate offer from templatenew offer from templateuse offer templatestart offer from preset
Path parameters
idstringRequiredThe offer template's ID, from
GET /preorders/offer_templates.
Headers
Idempotency-KeystringA fresh unique key for every write (a new UUID, say); reuse it only to retry that write. Keys are remembered for 1 hour: the same key and the same request within that hour returns the first result, with
Idempotent-Replayed: true, without running again; the same key with a different method, path or body is refused (422idempotency_key_reused); a retry while the first is still running gets 409idempotency_key_in_progress. Keys are per store. Server errors and rate limits are not kept, so their retry runs.
Request body
internal_namestringDashboard name of the new offer. Defaults to the template's name. Made unique with " (2)" and so on when taken.
shopify_variant_idsarray of anysShopify variant gids to attach to the new offer.
shopify_product_idsarray of anysShopify product gids; every variant of each product is attached to the new offer.
Returns
idstringOffer ID.
shopify_selling_plan_group_idnullThe offer's Shopify selling plan group, as gid://shopify/SellingPlanGroup/<id>. Null until the offer has one in Shopify.
namestringCustomer-facing name of the offer.
internal_namestringLabel shown to staff in the dashboard only.
widgetobjectThe preorder button, disclaimer and badge shown on product pages.
Show 3 child attributesHide child attributes
buttonobjectText and colors of the preorder button.
Show 4 child attributesHide child attributes
button_textstringPreorder button label.
custom_colors_enabledbooleantrue uses text_color and background_color; false uses the theme's own button colors.
text_colorstringButton text color, as hex. Used when custom_colors_enabled is true.
background_colorstringButton background color, as hex. Used when custom_colors_enabled is true.
disclaimerobjectThe disclaimer line shown under the preorder button.
Show 5 child attributesHide child attributes
show_disclaimerbooleanWhether the disclaimer line shows under the button.
disclaimer_textstringText of the disclaimer line.
text_colorstringDisclaimer text color, as hex.
background_colorstringDisclaimer background color, as hex.
border_radiusintegerDisclaimer corner radius in pixels.
badgeobjectThe preorder badge shown on product pages and product cards.
Show 4 child attributesHide child attributes
show_badgebooleanWhether the preorder badge shows.
badge_textstringLabel printed on the preorder badge.
text_colorstringBadge text color, as hex.
background_colorstringBadge background color, as hex.
inventoryobjectWhen the Preorder button shows and when preorders take stock.
Show 2 child attributesHide child attributes
stock_conditionstringWhen the Preorder button shows: out_of_stock when the variant is out of stock with Continue selling on, in_stock only while it is in stock, any_stock_level whenever the variant can be bought.
One ofout_of_stockin_stockany_stock_levelreservestringWhen inventory is deducted: on_sale at checkout, on_fulfillment at fulfillment.
One ofon_saleon_fulfillment
productsobjectWhich variants are on the offer and the rule that puts them there.
Show 11 child attributesHide child attributes
selectionstringRule that puts variants on the offer: all (every variant in the shop, minus exclusions), collection, custom (variants added by hand) or tags.
One ofallcollectioncustomtagsshopify_collection_idnullCollection driving the variant list, as gid://shopify/Collection/<id>. Null unless selection is collection.
tagsarray of anysProduct tags; products carrying any of them are on the offer. Empty unless selection is tags.
eligible_inventory_policystringcontinue_selling: STOQ turns Continue selling on for the rule's out-of-stock variants so all take preorders. all: only variants that already have Continue selling on take preorders.
One ofcontinue_sellingallexcluded_shopify_variant_idsarray of anysVariants held back from the rule, as gid://shopify/ProductVariant/<id>.
exclusion_tagnullVariants of products carrying this tag are held back. Null when none is set.
variant_countintegerNumber of variants on the offer, leaving out variants deleted from the catalog.
variants_addedarray of stringsproducts_addedarray of anyserrorstringcodestring
shippingobjectShipping timeline, fulfillment status and fulfillment handling for preorder items.
Show 6 child attributesHide child attributes
timelineobjectThe shipping timeline text shown with the preorder button.
Show 4 child attributesHide child attributes
scopestringsame shows one shipping text for every product; per_variant uses each variant's own shipping text.
One ofsameper_variantshow_shipping_textbooleanWhether the shipping timeline shows on the widget.
shipping_textstringThe line under the preorder button. A {{ date }} placeholder is filled with variant_shipping_text.
variant_shipping_textstringShip date text for a variant that has no shipping text of its own, and for every variant when scope is same.
delivery_timingstringFulfillment status of preorder items: asap is Unfulfilled (ship now), exact_time is Scheduled (on ships_at or days_after_checkout), unknown is On hold (no date promised).
One ofasapexact_timeunknownships_atnullShip date, ISO 8601 in UTC. Null unless delivery_timing is exact_time with a fixed date.
days_after_checkoutinteger, nullableDays after checkout that items ship. Null unless delivery_timing is exact_time with a delay instead of a date.
fulfillmentobjectHow preorder items are fulfilled: held, split, or moved to a separate order.
Show 3 child attributesHide child attributes
handlingstringnone; hold_all holds every fulfillment (asap or unknown delivery only); split_fulfillments ships in-stock items first; separate_orders moves preorder items to their own order.
One ofnonehold_allsplit_fulfillmentsseparate_ordershold_reasonstringHold reason shown in Shopify on held fulfillments.
separate_ordersobjectSettings for separate orders, used when handling is separate_orders.
Show 8 child attributesHide child attributes
groupingstringoffer creates one separate order per offer, variant one per variant, ship_date one per ship date.
One ofoffervariantship_datenumber_formatstringsequential gives each separate order its own order number; suffix appends suffix to the original order name.
One ofsequentialsuffixsuffixstringSuffix appended to the separate order name.
hold_fulfillmentsbooleanWhether fulfillments on the separate order are held until released.
tagstringTag applied to the separate preorder order.
transaction_gatewaystringPayment gateway recorded on the separate order's transaction. Default "Prepaid".
original_order_hold_tagnullTag on the original order while it is being split, removed once the split finishes. Null when none is set.
original_order_split_tagnullTag on the original order after its preorder items move to a separate order. Null when none is set.
on_holdobjectWhen held fulfillments are released.
Show 3 child attributesHide child attributes
release_schedulestringscheduled releases held fulfillments on release_at; manual leaves them held.
One ofscheduledmanualrelease_atnullWhen held fulfillments are released, ISO 8601 in UTC. Null when not set.
require_paymentbooleanOnly release once the balance is paid.
paymentsobjectPayment options shown at checkout: full payment, partial payment (deposit) or both, with discounts and balance collection.
Show 8 child attributesHide child attributes
options_offeredstringPayment options the offer has.
One offullpartialfull_and_partialdefault_optionstringPayment option selected by default at checkout.
One offullpartialfullobjectThe full-payment option, where shoppers pay everything at checkout. Absent when the offer has no full-payment option.
Show 7 child attributesHide child attributes
selling_plan_idnullThis option's Shopify selling plan, as gid://shopify/SellingPlan/<id>. Null until it exists in Shopify.
checkout_chargeobjectWhat is charged at checkout. Always 100 percent for full payment.
Show 2 child attributesHide child attributes
charge_typestringAlways percentage for full payment.
One ofpercentagepricecharge_amountintegerAlways 100 for full payment.
remaining_balanceobjectWhen the remaining balance is charged. Nothing remains on full payment.
Show 3 child attributesHide child attributes
charge_triggerstringAlways no_remaining_balance for full payment.
One ofexact_timeno_remaining_balancetime_after_checkoutcharge_exact_timenullAlways null for full payment.
days_after_checkoutnullAlways null for full payment.
price_adjustmentobjectDiscount on this option's price.
Show 2 child attributesHide child attributes
adjustment_typenullpercentage takes adjustment_amount percent off; fixed_amount and price take adjustment_amount off in the shop's currency. Null when there is no discount.
One ofpercentagepricefixed_amountadjustment_amountnullDiscount size: a percent, or an amount in the shop's currency (not minor units), per adjustment_type. Null when there is no discount.
option_titlestringTitle of the full-payment option in the payment widget.
option_descriptionstringDescription of the full-payment option in the payment widget. Null when not set.
discount_textstringText describing the full-payment discount.
collection_schedulestringHow the remaining balance is collected: manual by the merchant, scheduled on its due date, or on_fulfillment.
One ofmanualscheduledon_fulfillmentshow_payment_widgetbooleanWhether the payment and discount savings widget shows on the product page.
show_discounted_pricenullWhether the discounted price shows. Null when never set.
currency_codenullThe shop's currency, as an ISO 4217 code such as USD. Amounts in this section are in it.
partialobjectThe partial-payment option, where shoppers pay a deposit at checkout and the balance later. Absent when the offer has no partial-payment option.
Show 7 child attributesHide child attributes
selling_plan_idnullThis option's Shopify selling plan, as gid://shopify/SellingPlan/<id>. Null until it exists in Shopify.
checkout_chargeobjectThe deposit charged at checkout.
Show 2 child attributesHide child attributes
charge_typestringpercentage charges charge_amount percent of the price; price charges charge_amount in the shop's currency.
One ofpercentagepricecharge_amountintegerThe deposit: a percent from 0 to 100 when charge_type is percentage, or an amount in the shop's currency (not minor units) when it is price. 0 charges nothing at checkout.
remaining_balanceobjectWhen the remaining balance is charged.
Show 3 child attributesHide child attributes
charge_triggerstringexact_time charges the balance on charge_exact_time; time_after_checkout charges it days_after_checkout days after checkout.
One ofexact_timeno_remaining_balancetime_after_checkoutcharge_exact_timenullWhen the balance is due, ISO 8601 in UTC. Null unless charge_trigger is exact_time.
days_after_checkoutinteger, nullableDays after checkout that the balance is due. Null unless charge_trigger is time_after_checkout.
price_adjustmentobjectDiscount on this option's price.
Show 2 child attributesHide child attributes
adjustment_typenullpercentage takes adjustment_amount percent off; fixed_amount and price take adjustment_amount off in the shop's currency. Null when there is no discount.
One ofpercentagepricefixed_amountadjustment_amountnullDiscount size: a percent, or an amount in the shop's currency (not minor units), per adjustment_type. Null when there is no discount.
option_titlestringTitle of the partial-payment option in the payment widget.
option_descriptionstringDescription of the partial-payment option in the payment widget. Null when not set.
discount_textstringText describing the partial-payment discount.
availabilityobjectWhether the offer is on, and its schedule.
Show 5 child attributesHide child attributes
schedulestringenabled or disabled when the offer has no schedule; date_range, starts_on or ends_on when it follows starts_at and ends_at.
One ofenableddisableddate_rangestarts_onends_onstarts_atnullWhen a scheduled offer starts, ISO 8601 in UTC. Null when it has no start date.
ends_atnullWhen a scheduled offer ends, ISO 8601 in UTC. Null when it has no end date.
current_statusstringWhere the offer is now: live, scheduled (dated and waiting for its start), off, or deleted.
One oflivescheduledfalsedeletedtime_zonestringThe shop's time zone, as an IANA name such as America/New_York.
limitsobjectQuantity limits, the progress bar, the terms checkbox, mixed carts and order quantity.
Show 9 child attributesHide child attributes
default_per_variantnullThe same quantity limit for every variant, copied onto each one when set. Null when there is none.
display_stylestringHow shoppers see the limit: none, disclaimer (remaining units in the disclaimer line) or progress_bar.
One ofnonedisclaimerprogress_barlimit_textstringText printed with the remaining-units count.
show_iconsbooleanWhether the widget uses icons for quantity and shipping details.
progress_barobjectLook and text of the storefront progress bar toward the quantity limit.
Show 7 child attributesHide child attributes
progress_textstringProgress bar text.
fill_colorstringBar fill color, as hex.
background_colorstringBar background color, as hex.
box_background_colornullColor behind the bar, as hex. Null uses the disclaimer background.
text_colorstringBar text color, as hex.
border_radiusintegerBar corner radius in pixels.
show_percentagebooleanWhether a percentage shows next to the bar.
order_tagsarray of stringsTags Shopify puts on orders containing this offer.
termsobjectThe terms checkbox shoppers accept before preordering.
Show 5 child attributesHide child attributes
require_acceptancebooleanWhether shoppers must accept the terms before preordering.
terms_textstringWording beside the terms checkbox.
disable_button_until_acceptedbooleanWhether the button stays disabled until the terms are accepted.
record_acceptancebooleanWhether acceptance is recorded as a cart line property.
acceptance_labelstringLabel of the cart line property that records acceptance.
cartobjectWhether a cart can mix preorder and regular items, and the error shown when it cannot.
Show 2 child attributesHide child attributes
allowed_itemsstringmixed lets a cart hold preorder and regular items; preorder_only blocks the mix at checkout.
One ofmixedpreorder_onlyerror_messagestringError shown when a blocked mixed cart reaches checkout.
order_quantityobjectMinimum and maximum quantity per order.
Show 2 child attributesHide child attributes
minimumnullMinimum quantity per order. Null when there is none.
maximumnullMaximum quantity per order. Null when there is none.
countdownobjectThe countdown timer shown on product pages.
Show 12 child attributesHide child attributes
show_whenstringdisabled hides the timer; before_launch counts down to the start, during_preorder to the end, both to the start and then the end.
One ofdisabledbefore_launchduring_preorderbothdate_sourcestringschedule counts to the offer's schedule dates; custom to starts_at and ends_at.
One ofschedulecustomstarts_atnullCustom launch date, ISO 8601 in UTC. Used when date_source is custom; null when not set.
ends_atnullCustom deadline, ISO 8601 in UTC. Used when date_source is custom; null when not set.
starts_textnullHeading shown before launch. Null when not set.
ends_textnullHeading shown during the preorder. Null when not set.
labelsobjectUnit labels shown on the timer.
Show 4 child attributesHide child attributes
daysstringDays label.
hoursstringHours label.
minutesstringMinutes label.
secondsstringSeconds label.
text_colorstringTimer text color, as hex.
background_colorstringTimer background color, as hex.
border_radiusintegerTimer corner radius in pixels.
unitsarray of stringsTime units the timer shows, any of days, hours, minutes and seconds.
currentobjectWhat the timer shows right now, worked out from the settings, the dates and the offer's status. Read-only.
Show 5 child attributesHide child attributes
visible_phasestringhidden when no timer shows now; before_launch while counting to the start; during_preorder while counting to the end.
One ofhiddenbefore_launchduring_preordertarget_atnullThe moment the timer counts down to now, ISO 8601 in UTC. Null when hidden.
heading_textnullHeading shown above the timer now. Null when hidden or not set.
starts_atnullStart date the timer uses, from the schedule or the custom dates per date_source, ISO 8601 in UTC. Null when none.
ends_atnullEnd date the timer uses, from the schedule or the custom dates per date_source, ISO 8601 in UTC. Null when none.
marketsobjectShopify markets the offer applies in.
Show 2 child attributesHide child attributes
scopestringall applies the offer in every market; selected only in shopify_market_ids.
One ofallselectedshopify_market_idsarray of anysMarkets the offer applies in when scope is selected, as gid://shopify/Market/<id>. Empty when scope is all.
advancedobjectPurchase option and the attributes added to each preorder cart line.
Show 2 child attributesHide child attributes
checkout_methodstringselling_plan uses a Shopify purchase option (selling plan); line_item_property runs the offer without one.
One ofselling_planline_item_propertycart_attributesobjectWhat the offer adds to each preorder cart line.
Show 3 child attributesHide child attributes
show_paymentbooleanWhether payment details and savings show in the cart.
show_shippingbooleanWhether the fulfillment timeline shows in the cart.
custom_textnullFree text added to every preorder cart line. Null when not set.
integrationsobjectPoint of Sale and B2B settings.
Show 2 child attributesHide child attributes
posobjectPoint of Sale settings.
Show 2 child attributesHide child attributes
enable_posbooleanWhether preorders can be sold on POS.
inventory_checkstringskip sells on POS without checking inventory; required keeps the inventory check.
One ofskiprequired
b2bobjectB2B settings.
Show 1 child attributeHide child attributes
enable_b2bbooleanWhether B2B customers can place preorders on this offer.
batchesobjectSelling in batches: one batch after another, each with its own quantity limit and ship text.
Show 6 child attributesHide child attributes
release_strategystringsequential sells the batches one after another; all_at_once means batches are off.
One ofsequentialall_at_onceadvance_schedulestringautomatic moves to the next batch when one sells its quantity_limit; manual waits for the merchant.
One ofautomaticmanuallabel_formatstringBatch name format; {{ n }} is replaced by the position. Null uses "Batch {{ n }}".
status_textobjectWords shown on the storefront for past, live and upcoming batches.
Show 3 child attributesHide child attributes
paststringWord shown for a batch that has passed.
livestringWord shown for the batch on sale now.
upcomingstringWord shown for a batch still to come.
widgetobjectLayout and content of the storefront batch widget.
Show 4 child attributesHide child attributes
stylestringBatch widget layout: roadmap, stacked, compact or segmented.
progressstringcounts shows units sold of the limit; percent shows a percentage.
One ofcountspercentshow_other_ship_datesbooleanWhether the other batches' ship dates show on the storefront.
show_namesbooleanWhether batch names show on the storefront.
itemsarray of objectsThe batches, in selling order. Archived batches are left out.
Show 5 child attributesHide child attributes
idstringBatch ID, used as the key in a variant's batch_limits and batch_ship_texts.
positionintegerPlace in the selling order, from 1.
quantity_limitintegerUnits the batch can sell. Null when unlimited.
shipping_textstringShip text shown while this batch is on sale.
labelstringBatch name, from label_format with its position filled in.
translationsobjectSaved translations of the offer's text, keyed by locale, each in the same shape as the offer. Only locales and fields with saved text appear; the offer's own values are the fallback.
line_item_revenuestringRevenue from this offer's preorder line items, as a decimal string with two places in the shop's currency, such as "1250.00". Cancelled and refunded units are left out.
order_revenuestringTotal price of the orders that hold at least one of this offer's preorder items, counted once per order, as a decimal string in the shop's currency.
created_atstringWhen the offer was created, ISO 8601 in UTC.
updated_atstringWhen the offer was last changed, ISO 8601 in UTC.
dates_to_setarray of stringsExact dates the new offer still needs: ships_at (PATCH /preorders/offers/:id/shipping) and partial.remaining_balance.charge_exact_time (PATCH /preorders/offers/:id/payments). The offer cannot be turned on or take products until each is set. Absent when none.
also_changedarray of objectsSettings this write changed on its own because they depend on what you changed (turning one option off can reset another). Absent when nothing else changed.
Show 4 child attributesHide child attributes
settingstringThe setting that changed, as the dashboard names it.
fromstringIts value before the write.
tostringIts value after the write.
reasonstringWhy it changed.
reset_for_planarray of stringsPaid features the copy leaves off because the shop is on a free plan. Absent when none.
Errors
plan_requiredThe change uses a feature that is only available on a paid STOQ plan. Connecting a paid-only integration returns 403; a write that sets paid-only fields returns 422 and saves nothing.
not_foundThe path is valid but nothing with that id exists in this store.
conflictThe request is well formed, but the resource's current state does not allow it.
job_in_progressAn earlier bulk change on the same resource is still running.
idempotency_key_in_progressAn earlier request with the same Idempotency-Key is still running. Wait, then resend the same request with the same key.
invalid_paramsOne or more fields failed the action's schema.
preflight_issuesSome variants cannot be added to the offer as requested. The preflight field lists each one and why.
quantity_limit_reachedEvery targeted variant has reached its preorder quantity limit, so STOQ keeps it from selling.
validation_failedThe action refused the request for a reason that is not a single bad field.
shopify_errorA Shopify call the operation needs failed after the operation had started.
upstream_unavailableA service the answer depends on did not respond in time.
Any request can also fail with auth_invalid (401) or rate_limited (429).
Every error has the same shape: see Errors and the list of error codes.
curl -X POST "https://app.stoqapp.com/api/v2/external/preorders/offer_templates/{id}/create_offer" \
-H "X-Auth-Token: $STOQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"internal_name": "Winter drop"
}'const res = await fetch("https://app.stoqapp.com/api/v2/external/preorders/offer_templates/{id}/create_offer", {
method: "POST",
headers: {
"X-Auth-Token": process.env.STOQ_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"internal_name": "Winter drop"
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://app.stoqapp.com/api/v2/external/preorders/offer_templates/{id}/create_offer",
headers={"X-Auth-Token": os.environ["STOQ_API_KEY"]},
json={
"internal_name": "Winter drop"
},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.stoqapp.com/api/v2/external/preorders/offer_templates/{id}/create_offer")
req = Net::HTTP::Post.new(uri, "X-Auth-Token" => ENV["STOQ_API_KEY"], "Content-Type" => "application/json")
req.body = {
internal_name: "Winter drop"
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body){
"id": "4b7a1c90-5d2e-4f83-9a61-0c3e8f2d7b54",
"shopify_selling_plan_group_id": null,
"name": "Summer Sneaker Drop",
"internal_name": "Winter drop",
"widget": {
"button": {
"button_text": "Preorder Now",
"custom_colors_enabled": true,
"text_color": "#ffffff",
"background_color": "#8700d3"
},
"disclaimer": {
"show_disclaimer": true,
"disclaimer_text": "Expected to ship by August 2026",
"text_color": "#FFFFFF",
"background_color": "#1F2937",
"border_radius": 4
},
"badge": {
"show_badge": true,
"badge_text": "Pre-Order",
"text_color": "#FFFFFF",
"background_color": "#000000"
}
},
"inventory": {
"stock_condition": "out_of_stock",
"reserve": "on_sale"
},
"products": {
"selection": "custom",
"shopify_collection_id": null,
"tags": [],
"eligible_inventory_policy": "all",
"excluded_shopify_variant_ids": [],
"exclusion_tag": null,
"variant_count": 0
},
"shipping": {
"timeline": {
"scope": "same",
"show_shipping_text": true,
"shipping_text": "Shipping: As soon as possible",
"variant_shipping_text": "ASAP"
},
"delivery_timing": "exact_time",
"ships_at": null,
"days_after_checkout": null,
"fulfillment": {
"handling": "none",
"hold_reason": "Order contains a preorder product. All fulfillments are on hold, as configured in STOQ > Preorders.",
"separate_orders": {
"grouping": "offer",
"number_format": "suffix",
"suffix": "SPLIT",
"hold_fulfillments": false,
"tag": "STOQ-split-order",
"transaction_gateway": "Prepaid",
"original_order_hold_tag": null,
"original_order_split_tag": null
}
},
"on_hold": {
"release_schedule": "manual",
"release_at": null,
"require_payment": false
}
},
"payments": {
"options_offered": "full",
"default_option": "full",
"full": {
"selling_plan_id": "gid://shopify/SellingPlan/109",
"checkout_charge": {
"charge_type": "percentage",
"charge_amount": 100
},
"remaining_balance": {
"charge_trigger": "no_remaining_balance",
"charge_exact_time": null,
"days_after_checkout": null
},
"price_adjustment": {
"adjustment_type": null,
"adjustment_amount": null
},
"option_title": "Full payment",
"option_description": "Pay the full price now",
"discount_text": "Save {{ discount }}"
},
"collection_schedule": "manual",
"show_payment_widget": false,
"show_discounted_price": null,
"currency_code": "USD"
},
"availability": {
"schedule": "disabled",
"starts_at": null,
"ends_at": null,
"current_status": "off",
"time_zone": "America/New_York"
},
"limits": {
"default_per_variant": null,
"display_style": "none",
"limit_text": "{{ quantity }} units available for preorder",
"show_icons": true,
"progress_bar": {
"progress_text": "{{ sold }} of {{ total }} claimed",
"fill_color": "#ffffff",
"background_color": "#e5e5e5",
"box_background_color": null,
"text_color": "#ffffff",
"border_radius": 4,
"show_percentage": false
},
"order_tags": [
"STOQ-preorder"
],
"terms": {
"require_acceptance": false,
"terms_text": "I acknowledge and agree to the preorder terms and conditions for this product.",
"disable_button_until_accepted": false,
"record_acceptance": false,
"acceptance_label": "Preorder Terms Accepted"
},
"cart": {
"allowed_items": "mixed",
"error_message": "Preorders must be purchased separately from regular items. Please complete your current order first, or clear your cart to continue."
},
"order_quantity": {
"minimum": null,
"maximum": null
}
},
"countdown": {
"show_when": "disabled",
"date_source": "schedule",
"starts_at": null,
"ends_at": null,
"starts_text": null,
"ends_text": null,
"labels": {
"days": "Days",
"hours": "Hours",
"minutes": "Mins",
"seconds": "Secs"
},
"text_color": "#000000",
"background_color": "#f5f5f5",
"border_radius": 8,
"units": [
"days",
"hours",
"minutes",
"seconds"
],
"current": {
"visible_phase": "hidden",
"target_at": null,
"heading_text": null,
"starts_at": null,
"ends_at": null
}
},
"markets": {
"scope": "all",
"shopify_market_ids": []
},
"advanced": {
"checkout_method": "selling_plan",
"cart_attributes": {
"show_payment": false,
"show_shipping": true,
"custom_text": null
}
},
"integrations": {
"pos": {
"enable_pos": true,
"inventory_check": "required"
},
"b2b": {
"enable_b2b": true
}
},
"batches": {
"release_strategy": "all_at_once",
"advance_schedule": "automatic",
"label_format": "Batch {{ n }}",
"status_text": {
"past": "Sold out",
"live": "Live",
"upcoming": "Coming soon"
},
"widget": {
"style": "roadmap",
"progress": "counts",
"show_other_ship_dates": true,
"show_names": false
},
"items": []
},
"translations": {},
"line_item_revenue": "0.00",
"order_revenue": "0.00",
"created_at": "2026-07-05T11:00:02Z",
"updated_at": "2026-07-05T11:00:02Z",
"dates_to_set": [
"ships_at"
],
"also_changed": [
{
"setting": "Ship date",
"from": "exact date",
"to": "exact date, not set yet",
"reason": "A template keeps no dates. Set ships_at with PATCH /preorders/offers/:id/shipping before turning the offer on or adding products."
}
]
}{
"errors": [
"Invalid API key"
],
"code": "auth_invalid",
"details": [
{
"code": "auth_invalid",
"message": "Invalid API key",
"path": null,
"value": null,
"expected": null
}
]
}{
"errors": [
"Offer not found"
],
"code": "not_found",
"details": [
{
"code": "not_found",
"message": "Offer not found",
"path": null,
"value": null,
"expected": null
}
]
}{
"errors": [
"A request with this Idempotency-Key is still running"
],
"code": "idempotency_key_in_progress",
"details": [
{
"code": "idempotency_key_in_progress",
"message": "A request with this Idempotency-Key is still running",
"path": null,
"value": null,
"expected": null
}
]
}{
"errors": [
"name is required"
],
"code": "validation_failed",
"details": [
{
"code": "validation_failed",
"message": "name is required",
"path": null,
"value": null,
"expected": null
}
]
}{
"errors": [
"Rate limit exceeded"
],
"code": "rate_limited",
"details": [
{
"code": "rate_limited",
"message": "Rate limit exceeded",
"path": null,
"value": null,
"expected": null
}
]
}