Get a specific selling plan
API v1 is the older API. It still works, but new integrations should use API v2. Migrating from v1 to v2
GET
/external/preorders/{id}Costs 1 rate-limit point · Rate limits
Retrieve a single preorder selling plan by its STOQ ID, including the full billing, delivery, pricing, button, badge, fulfillment, and market configuration, the count of attached variants, and the associated Shopify selling-plan IDs. Returns 404 if no plan with that ID exists for the shop.
Path parameters
idstringRequiredSelling plan ID
Headers
X-Auth-TokenstringRequiredAPI key for authentication
Returns
The preorder object.
Errors
401
Unauthorized
404
Selling plan not found
GET/external/preorders/{id}
curl "https://app.stoqapp.com/api/v1/external/preorders/79b44c6c-ebc7-41d4-8a1b-573d7c693454" \
-H "X-Auth-Token: $STOQ_API_KEY"const res = await fetch("https://app.stoqapp.com/api/v1/external/preorders/79b44c6c-ebc7-41d4-8a1b-573d7c693454", {
headers: {
"X-Auth-Token": process.env.STOQ_API_KEY,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://app.stoqapp.com/api/v1/external/preorders/79b44c6c-ebc7-41d4-8a1b-573d7c693454",
headers={"X-Auth-Token": os.environ["STOQ_API_KEY"]},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.stoqapp.com/api/v1/external/preorders/79b44c6c-ebc7-41d4-8a1b-573d7c693454")
req = Net::HTTP::Get.new(uri, "X-Auth-Token" => ENV["STOQ_API_KEY"])
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Response
{
"id": "79b44c6c-ebc7-41d4-8a1b-573d7c693454",
"name": "Summer Preorder",
"internal_name": "summer-2026",
"enabled": true,
"billing_type": "time_after_checkout",
"billing_checkout_charge_type": "percentage",
"billing_checkout_charge_percentage": 20,
"delivery_type": "asap",
"pricing_type": "no_discount",
"preorder_button_text": "Preorder now",
"preorder_badge_enabled": true,
"preorder_badge_text": "Preorder",
"selling_plan_product_variants_count": 12,
"shopify_selling_plan_id": 645123456,
"shopify_selling_plan_group_id": 9912345,
"shop_id": 43,
"created_at": "2026-06-20T10:00:00Z",
"updated_at": "2026-06-24T08:30:00Z",
"ongoing_job": false,
"shopify_variant_ids": [
43900910010503,
43900910010999
]
}No body
No body