← back to Sister Parish Onboarding
Shopify: bump to API 2026-01
52bd57d49a60c532d048d2364db3c06d202a5859 · 2026-05-11 18:51:01 -0700 · Steve
Files touched
M scripts/backfill_shopify_ids.jsM scripts/push_shopify.jsM scripts/scheduled_push.sh
Diff
commit 52bd57d49a60c532d048d2364db3c06d202a5859
Author: Steve <steve@designerwallcoverings.com>
Date: Mon May 11 18:51:01 2026 -0700
Shopify: bump to API 2026-01
---
scripts/backfill_shopify_ids.js | 2 +-
scripts/push_shopify.js | 2 +-
scripts/scheduled_push.sh | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/backfill_shopify_ids.js b/scripts/backfill_shopify_ids.js
index 6023a21..206ff1e 100644
--- a/scripts/backfill_shopify_ids.js
+++ b/scripts/backfill_shopify_ids.js
@@ -14,7 +14,7 @@ const SHOP = process.env.SHOPIFY_STORE;
const TOKEN = process.env.SHOPIFY_ADMIN_TOKEN;
if (!SHOP || !TOKEN) { console.error('Need SHOPIFY_STORE + SHOPIFY_ADMIN_TOKEN'); process.exit(1); }
-const BASE = `https://${SHOP}/admin/api/2024-10`;
+const BASE = `https://${SHOP}/admin/api/2026-01`;
async function shopify(path) {
const res = await fetch(`${BASE}${path}`, { headers: { 'X-Shopify-Access-Token': TOKEN } });
diff --git a/scripts/push_shopify.js b/scripts/push_shopify.js
index 2233593..9726ecb 100644
--- a/scripts/push_shopify.js
+++ b/scripts/push_shopify.js
@@ -17,7 +17,7 @@ const SHOP = process.env.SHOPIFY_STORE;
const TOKEN = process.env.SHOPIFY_ADMIN_TOKEN;
if (!SHOP || !TOKEN) { console.error('Need SHOPIFY_STORE + SHOPIFY_ADMIN_TOKEN in .env'); process.exit(1); }
-const BASE = `https://${SHOP}/admin/api/2024-10`;
+const BASE = `https://${SHOP}/admin/api/2026-01`;
const RATE_DELAY_MS = 350; // ~3 req/s, well under DW Plus 4 req/s
const data = JSON.parse(fs.readFileSync(path.join(__dirname,'..','output','normalized.json'),'utf8'));
diff --git a/scripts/scheduled_push.sh b/scripts/scheduled_push.sh
index 96689cb..0c5caa0 100755
--- a/scripts/scheduled_push.sh
+++ b/scripts/scheduled_push.sh
@@ -31,7 +31,7 @@ fi
# 2) Pre-flight: how many SP products already in Shopify
COUNT=$(curl -sf -H "X-Shopify-Access-Token: $SHOPIFY_ADMIN_TOKEN" \
- "https://${SHOPIFY_STORE}/admin/api/2024-10/products/count.json?vendor=Sister+Parish&status=any" \
+ "https://${SHOPIFY_STORE}/admin/api/2026-01/products/count.json?vendor=Sister+Parish&status=any" \
| /usr/bin/python3 -c "import json,sys; print(json.load(sys.stdin)['count'])" 2>/dev/null || echo "ERR")
echo "Sister Parish count on DW Shopify: $COUNT"
@@ -66,7 +66,7 @@ NODE_BIN="/opt/homebrew/bin/node"
# 4) Verify final count + decide whether to self-unload
COUNT2=$(curl -sf -H "X-Shopify-Access-Token: $SHOPIFY_ADMIN_TOKEN" \
- "https://${SHOPIFY_STORE}/admin/api/2024-10/products/count.json?vendor=Sister+Parish&status=any" \
+ "https://${SHOPIFY_STORE}/admin/api/2026-01/products/count.json?vendor=Sister+Parish&status=any" \
| /usr/bin/python3 -c "import json,sys; print(json.load(sys.stdin)['count'])")
echo "Post-push Sister Parish count: $COUNT2"
← 2570b30 tick 7: SP viewer × wallco PD bridge — 'PD inspirations →' b
·
back to Sister Parish Onboarding
·
sp: preflight.sh — single-shot health read for YOLO ticks b825dc7 →