Skip to content

Create offer from template

API v2 is in public beta: endpoints and fields can change before general availability. See the changelog

POST/preorders/offer_templates/{id}/create_offer

Costs 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

Headers

  • Idempotency-Keystring

    A 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 (422 idempotency_key_reused); a retry while the first is still running gets 409 idempotency_key_in_progress. Keys are per store. Server errors and rate limits are not kept, so their retry runs.

Request body

  • internal_namestring

    Dashboard name of the new offer. Defaults to the template's name. Made unique with " (2)" and so on when taken.

  • shopify_variant_idsarray of anys

    Shopify variant gids to attach to the new offer.

  • shopify_product_idsarray of anys

    Shopify product gids; every variant of each product is attached to the new offer.

Returns

  • idstring

    Offer ID.

  • shopify_selling_plan_group_idnull

    The offer's Shopify selling plan group, as gid://shopify/SellingPlanGroup/<id>. Null until the offer has one in Shopify.

  • namestring

    Customer-facing name of the offer.

  • internal_namestring

    Label shown to staff in the dashboard only.

  • widgetobject

    The preorder button, disclaimer and badge shown on product pages.

    Show 3 child attributesHide child attributes
    • buttonobject

      Text and colors of the preorder button.

      Show 4 child attributesHide child attributes
      • button_textstring

        Preorder button label.

      • custom_colors_enabledboolean

        true uses text_color and background_color; false uses the theme's own button colors.

      • text_colorstring

        Button text color, as hex. Used when custom_colors_enabled is true.

      • background_colorstring

        Button background color, as hex. Used when custom_colors_enabled is true.

    • disclaimerobject

      The disclaimer line shown under the preorder button.

      Show 5 child attributesHide child attributes
      • show_disclaimerboolean

        Whether the disclaimer line shows under the button.

      • disclaimer_textstring

        Text of the disclaimer line.

      • text_colorstring

        Disclaimer text color, as hex.

      • background_colorstring

        Disclaimer background color, as hex.

      • border_radiusinteger

        Disclaimer corner radius in pixels.

    • badgeobject

      The preorder badge shown on product pages and product cards.

      Show 4 child attributesHide child attributes
      • show_badgeboolean

        Whether the preorder badge shows.

      • badge_textstring

        Label printed on the preorder badge.

      • text_colorstring

        Badge text color, as hex.

      • background_colorstring

        Badge background color, as hex.

  • inventoryobject

    When the Preorder button shows and when preorders take stock.

    Show 2 child attributesHide child attributes
    • stock_conditionstring

      When 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 of out_of_stockin_stockany_stock_level
    • reservestring

      When inventory is deducted: on_sale at checkout, on_fulfillment at fulfillment.

      One of on_saleon_fulfillment
  • productsobject

    Which variants are on the offer and the rule that puts them there.

    Show 11 child attributesHide child attributes
    • selectionstring

      Rule that puts variants on the offer: all (every variant in the shop, minus exclusions), collection, custom (variants added by hand) or tags.

      One of allcollectioncustomtags
    • shopify_collection_idnull

      Collection driving the variant list, as gid://shopify/Collection/<id>. Null unless selection is collection.

    • tagsarray of anys

      Product tags; products carrying any of them are on the offer. Empty unless selection is tags.

    • eligible_inventory_policystring

      continue_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 of continue_sellingall
    • excluded_shopify_variant_idsarray of anys

      Variants held back from the rule, as gid://shopify/ProductVariant/<id>.

    • exclusion_tagnull

      Variants of products carrying this tag are held back. Null when none is set.

    • variant_countinteger

      Number of variants on the offer, leaving out variants deleted from the catalog.

    • variants_addedarray of strings
    • products_addedarray of anys
    • errorstring
    • codestring
  • shippingobject

    Shipping timeline, fulfillment status and fulfillment handling for preorder items.

    Show 6 child attributesHide child attributes
    • timelineobject

      The shipping timeline text shown with the preorder button.

      Show 4 child attributesHide child attributes
      • scopestring

        same shows one shipping text for every product; per_variant uses each variant's own shipping text.

        One of sameper_variant
      • show_shipping_textboolean

        Whether the shipping timeline shows on the widget.

      • shipping_textstring

        The line under the preorder button. A {{ date }} placeholder is filled with variant_shipping_text.

      • variant_shipping_textstring

        Ship date text for a variant that has no shipping text of its own, and for every variant when scope is same.

    • delivery_timingstring

      Fulfillment 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 of asapexact_timeunknown
    • ships_atnull

      Ship date, ISO 8601 in UTC. Null unless delivery_timing is exact_time with a fixed date.

    • days_after_checkoutinteger, nullable

      Days after checkout that items ship. Null unless delivery_timing is exact_time with a delay instead of a date.

    • fulfillmentobject

      How preorder items are fulfilled: held, split, or moved to a separate order.

      Show 3 child attributesHide child attributes
      • handlingstring

        none; 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 of nonehold_allsplit_fulfillmentsseparate_orders
      • hold_reasonstring

        Hold reason shown in Shopify on held fulfillments.

      • separate_ordersobject

        Settings for separate orders, used when handling is separate_orders.

        Show 8 child attributesHide child attributes
        • groupingstring

          offer creates one separate order per offer, variant one per variant, ship_date one per ship date.

          One of offervariantship_date
        • number_formatstring

          sequential gives each separate order its own order number; suffix appends suffix to the original order name.

          One of sequentialsuffix
        • suffixstring

          Suffix appended to the separate order name.

        • hold_fulfillmentsboolean

          Whether fulfillments on the separate order are held until released.

        • tagstring

          Tag applied to the separate preorder order.

        • transaction_gatewaystring

          Payment gateway recorded on the separate order's transaction. Default "Prepaid".

        • original_order_hold_tagnull

          Tag on the original order while it is being split, removed once the split finishes. Null when none is set.

        • original_order_split_tagnull

          Tag on the original order after its preorder items move to a separate order. Null when none is set.

    • on_holdobject

      When held fulfillments are released.

      Show 3 child attributesHide child attributes
      • release_schedulestring

        scheduled releases held fulfillments on release_at; manual leaves them held.

        One of scheduledmanual
      • release_atnull

        When held fulfillments are released, ISO 8601 in UTC. Null when not set.

      • require_paymentboolean

        Only release once the balance is paid.

  • paymentsobject

    Payment options shown at checkout: full payment, partial payment (deposit) or both, with discounts and balance collection.

    Show 8 child attributesHide child attributes
    • options_offeredstring

      Payment options the offer has.

      One of fullpartialfull_and_partial
    • default_optionstring

      Payment option selected by default at checkout.

      One of fullpartial
    • fullobject

      The 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_idnull

        This option's Shopify selling plan, as gid://shopify/SellingPlan/<id>. Null until it exists in Shopify.

      • checkout_chargeobject

        What is charged at checkout. Always 100 percent for full payment.

        Show 2 child attributesHide child attributes
        • charge_typestring

          Always percentage for full payment.

          One of percentageprice
        • charge_amountinteger

          Always 100 for full payment.

      • remaining_balanceobject

        When the remaining balance is charged. Nothing remains on full payment.

        Show 3 child attributesHide child attributes
        • charge_triggerstring

          Always no_remaining_balance for full payment.

          One of exact_timeno_remaining_balancetime_after_checkout
        • charge_exact_timenull

          Always null for full payment.

        • days_after_checkoutnull

          Always null for full payment.

      • price_adjustmentobject

        Discount on this option's price.

        Show 2 child attributesHide child attributes
        • adjustment_typenull

          percentage 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 of percentagepricefixed_amount
        • adjustment_amountnull

          Discount size: a percent, or an amount in the shop's currency (not minor units), per adjustment_type. Null when there is no discount.

      • option_titlestring

        Title of the full-payment option in the payment widget.

      • option_descriptionstring

        Description of the full-payment option in the payment widget. Null when not set.

      • discount_textstring

        Text describing the full-payment discount.

    • collection_schedulestring

      How the remaining balance is collected: manual by the merchant, scheduled on its due date, or on_fulfillment.

      One of manualscheduledon_fulfillment
    • show_payment_widgetboolean

      Whether the payment and discount savings widget shows on the product page.

    • show_discounted_pricenull

      Whether the discounted price shows. Null when never set.

    • currency_codenull

      The shop's currency, as an ISO 4217 code such as USD. Amounts in this section are in it.

    • partialobject

      The 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_idnull

        This option's Shopify selling plan, as gid://shopify/SellingPlan/<id>. Null until it exists in Shopify.

      • checkout_chargeobject

        The deposit charged at checkout.

        Show 2 child attributesHide child attributes
        • charge_typestring

          percentage charges charge_amount percent of the price; price charges charge_amount in the shop's currency.

          One of percentageprice
        • charge_amountinteger

          The 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_balanceobject

        When the remaining balance is charged.

        Show 3 child attributesHide child attributes
        • charge_triggerstring

          exact_time charges the balance on charge_exact_time; time_after_checkout charges it days_after_checkout days after checkout.

          One of exact_timeno_remaining_balancetime_after_checkout
        • charge_exact_timenull

          When the balance is due, ISO 8601 in UTC. Null unless charge_trigger is exact_time.

        • days_after_checkoutinteger, nullable

          Days after checkout that the balance is due. Null unless charge_trigger is time_after_checkout.

      • price_adjustmentobject

        Discount on this option's price.

        Show 2 child attributesHide child attributes
        • adjustment_typenull

          percentage 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 of percentagepricefixed_amount
        • adjustment_amountnull

          Discount size: a percent, or an amount in the shop's currency (not minor units), per adjustment_type. Null when there is no discount.

      • option_titlestring

        Title of the partial-payment option in the payment widget.

      • option_descriptionstring

        Description of the partial-payment option in the payment widget. Null when not set.

      • discount_textstring

        Text describing the partial-payment discount.

  • availabilityobject

    Whether the offer is on, and its schedule.

    Show 5 child attributesHide child attributes
    • schedulestring

      enabled or disabled when the offer has no schedule; date_range, starts_on or ends_on when it follows starts_at and ends_at.

      One of enableddisableddate_rangestarts_onends_on
    • starts_atnull

      When a scheduled offer starts, ISO 8601 in UTC. Null when it has no start date.

    • ends_atnull

      When a scheduled offer ends, ISO 8601 in UTC. Null when it has no end date.

    • current_statusstring

      Where the offer is now: live, scheduled (dated and waiting for its start), off, or deleted.

      One of livescheduledfalsedeleted
    • time_zonestring

      The shop's time zone, as an IANA name such as America/New_York.

  • limitsobject

    Quantity limits, the progress bar, the terms checkbox, mixed carts and order quantity.

    Show 9 child attributesHide child attributes
    • default_per_variantnull

      The same quantity limit for every variant, copied onto each one when set. Null when there is none.

    • display_stylestring

      How shoppers see the limit: none, disclaimer (remaining units in the disclaimer line) or progress_bar.

      One of nonedisclaimerprogress_bar
    • limit_textstring

      Text printed with the remaining-units count.

    • show_iconsboolean

      Whether the widget uses icons for quantity and shipping details.

    • progress_barobject

      Look and text of the storefront progress bar toward the quantity limit.

      Show 7 child attributesHide child attributes
      • progress_textstring

        Progress bar text.

      • fill_colorstring

        Bar fill color, as hex.

      • background_colorstring

        Bar background color, as hex.

      • box_background_colornull

        Color behind the bar, as hex. Null uses the disclaimer background.

      • text_colorstring

        Bar text color, as hex.

      • border_radiusinteger

        Bar corner radius in pixels.

      • show_percentageboolean

        Whether a percentage shows next to the bar.

    • order_tagsarray of strings

      Tags Shopify puts on orders containing this offer.

    • termsobject

      The terms checkbox shoppers accept before preordering.

      Show 5 child attributesHide child attributes
      • require_acceptanceboolean

        Whether shoppers must accept the terms before preordering.

      • terms_textstring

        Wording beside the terms checkbox.

      • disable_button_until_acceptedboolean

        Whether the button stays disabled until the terms are accepted.

      • record_acceptanceboolean

        Whether acceptance is recorded as a cart line property.

      • acceptance_labelstring

        Label of the cart line property that records acceptance.

    • cartobject

      Whether a cart can mix preorder and regular items, and the error shown when it cannot.

      Show 2 child attributesHide child attributes
      • allowed_itemsstring

        mixed lets a cart hold preorder and regular items; preorder_only blocks the mix at checkout.

        One of mixedpreorder_only
      • error_messagestring

        Error shown when a blocked mixed cart reaches checkout.

    • order_quantityobject

      Minimum and maximum quantity per order.

      Show 2 child attributesHide child attributes
      • minimumnull

        Minimum quantity per order. Null when there is none.

      • maximumnull

        Maximum quantity per order. Null when there is none.

  • countdownobject

    The countdown timer shown on product pages.

    Show 12 child attributesHide child attributes
    • show_whenstring

      disabled hides the timer; before_launch counts down to the start, during_preorder to the end, both to the start and then the end.

      One of disabledbefore_launchduring_preorderboth
    • date_sourcestring

      schedule counts to the offer's schedule dates; custom to starts_at and ends_at.

      One of schedulecustom
    • starts_atnull

      Custom launch date, ISO 8601 in UTC. Used when date_source is custom; null when not set.

    • ends_atnull

      Custom deadline, ISO 8601 in UTC. Used when date_source is custom; null when not set.

    • starts_textnull

      Heading shown before launch. Null when not set.

    • ends_textnull

      Heading shown during the preorder. Null when not set.

    • labelsobject

      Unit labels shown on the timer.

      Show 4 child attributesHide child attributes
      • daysstring

        Days label.

      • hoursstring

        Hours label.

      • minutesstring

        Minutes label.

      • secondsstring

        Seconds label.

    • text_colorstring

      Timer text color, as hex.

    • background_colorstring

      Timer background color, as hex.

    • border_radiusinteger

      Timer corner radius in pixels.

    • unitsarray of strings

      Time units the timer shows, any of days, hours, minutes and seconds.

    • currentobject

      What 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_phasestring

        hidden when no timer shows now; before_launch while counting to the start; during_preorder while counting to the end.

        One of hiddenbefore_launchduring_preorder
      • target_atnull

        The moment the timer counts down to now, ISO 8601 in UTC. Null when hidden.

      • heading_textnull

        Heading shown above the timer now. Null when hidden or not set.

      • starts_atnull

        Start date the timer uses, from the schedule or the custom dates per date_source, ISO 8601 in UTC. Null when none.

      • ends_atnull

        End date the timer uses, from the schedule or the custom dates per date_source, ISO 8601 in UTC. Null when none.

  • marketsobject

    Shopify markets the offer applies in.

    Show 2 child attributesHide child attributes
    • scopestring

      all applies the offer in every market; selected only in shopify_market_ids.

      One of allselected
    • shopify_market_idsarray of anys

      Markets the offer applies in when scope is selected, as gid://shopify/Market/<id>. Empty when scope is all.

  • advancedobject

    Purchase option and the attributes added to each preorder cart line.

    Show 2 child attributesHide child attributes
    • checkout_methodstring

      selling_plan uses a Shopify purchase option (selling plan); line_item_property runs the offer without one.

      One of selling_planline_item_property
    • cart_attributesobject

      What the offer adds to each preorder cart line.

      Show 3 child attributesHide child attributes
      • show_paymentboolean

        Whether payment details and savings show in the cart.

      • show_shippingboolean

        Whether the fulfillment timeline shows in the cart.

      • custom_textnull

        Free text added to every preorder cart line. Null when not set.

  • integrationsobject

    Point of Sale and B2B settings.

    Show 2 child attributesHide child attributes
    • posobject

      Point of Sale settings.

      Show 2 child attributesHide child attributes
      • enable_posboolean

        Whether preorders can be sold on POS.

      • inventory_checkstring

        skip sells on POS without checking inventory; required keeps the inventory check.

        One of skiprequired
    • b2bobject

      B2B settings.

      Show 1 child attributeHide child attributes
      • enable_b2bboolean

        Whether B2B customers can place preorders on this offer.

  • batchesobject

    Selling in batches: one batch after another, each with its own quantity limit and ship text.

    Show 6 child attributesHide child attributes
    • release_strategystring

      sequential sells the batches one after another; all_at_once means batches are off.

      One of sequentialall_at_once
    • advance_schedulestring

      automatic moves to the next batch when one sells its quantity_limit; manual waits for the merchant.

      One of automaticmanual
    • label_formatstring

      Batch name format; {{ n }} is replaced by the position. Null uses "Batch {{ n }}".

    • status_textobject

      Words shown on the storefront for past, live and upcoming batches.

      Show 3 child attributesHide child attributes
      • paststring

        Word shown for a batch that has passed.

      • livestring

        Word shown for the batch on sale now.

      • upcomingstring

        Word shown for a batch still to come.

    • widgetobject

      Layout and content of the storefront batch widget.

      Show 4 child attributesHide child attributes
      • stylestring

        Batch widget layout: roadmap, stacked, compact or segmented.

      • progressstring

        counts shows units sold of the limit; percent shows a percentage.

        One of countspercent
      • show_other_ship_datesboolean

        Whether the other batches' ship dates show on the storefront.

      • show_namesboolean

        Whether batch names show on the storefront.

    • itemsarray of objects

      The batches, in selling order. Archived batches are left out.

      Show 5 child attributesHide child attributes
      • idstring

        Batch ID, used as the key in a variant's batch_limits and batch_ship_texts.

      • positioninteger

        Place in the selling order, from 1.

      • quantity_limitinteger

        Units the batch can sell. Null when unlimited.

      • shipping_textstring

        Ship text shown while this batch is on sale.

      • labelstring

        Batch name, from label_format with its position filled in.

  • translationsobject

    Saved 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_revenuestring

    Revenue 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_revenuestring

    Total 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_atstring

    When the offer was created, ISO 8601 in UTC.

  • updated_atstring

    When the offer was last changed, ISO 8601 in UTC.

  • dates_to_setarray of strings

    Exact 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 objects

    Settings 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
    • settingstring

      The setting that changed, as the dashboard names it.

    • fromstring

      Its value before the write.

    • tostring

      Its value after the write.

    • reasonstring

      Why it changed.

  • reset_for_planarray of strings

    Paid features the copy leaves off because the shop is on a free plan. Absent when none.

Errors

403
plan_required

The 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.

404
not_found

The path is valid but nothing with that id exists in this store.

409
conflict

The request is well formed, but the resource's current state does not allow it.

409
job_in_progress

An earlier bulk change on the same resource is still running.

409
idempotency_key_in_progress

An earlier request with the same Idempotency-Key is still running. Wait, then resend the same request with the same key.

422
invalid_params

One or more fields failed the action's schema.

422
preflight_issues

Some variants cannot be added to the offer as requested. The preflight field lists each one and why.

422
quantity_limit_reached

Every targeted variant has reached its preorder quantity limit, so STOQ keeps it from selling.

422
validation_failed

The action refused the request for a reason that is not a single bad field.

502
shopify_error

A Shopify call the operation needs failed after the operation had started.

503
upstream_unavailable

A 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.

POST/preorders/offer_templates/{id}/create_offer
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"
  }'
Response
{
  "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."
    }
  ]
}