[object Object]

← back to Shopify Sample Shipping

TK-11333: create live test order #33047 proving sample free-shipping end-to-end

8911e5351899c8f46ab00a4c3d072306977fdde2 · 2026-09-09 15:00:27 -0700 · Steve Abrams

Draft #D3496 -> Order #33047 (unpaid, tagged TK-11333-TEST): 6 samples $25.50,
Free Shipping (No Tracking) $0.00, tax $2.49, total $27.99. Steve-approved
(order-type 1+2). Reversible: cancel-test-order.mjs (cancel+delete); ledgered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QiMydL4hVbmto91Ty7tRss

Files touched

Diff

commit 8911e5351899c8f46ab00a4c3d072306977fdde2
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Sep 9 15:00:27 2026 -0700

    TK-11333: create live test order #33047 proving sample free-shipping end-to-end
    
    Draft #D3496 -> Order #33047 (unpaid, tagged TK-11333-TEST): 6 samples $25.50,
    Free Shipping (No Tracking) $0.00, tax $2.49, total $27.99. Steve-approved
    (order-type 1+2). Reversible: cancel-test-order.mjs (cancel+delete); ledgered.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01QiMydL4hVbmto91Ty7tRss
---
 cancel-test-order.mjs               | 11 ++++++++
 full-order.mjs                      | 30 ++++++++++++++++++++++
 verification/full-order-result.json | 51 +++++++++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+)

diff --git a/cancel-test-order.mjs b/cancel-test-order.mjs
new file mode 100644
index 0000000..ac3902d
--- /dev/null
+++ b/cancel-test-order.mjs
@@ -0,0 +1,11 @@
+// One-command UNDO for the TK-11333 test order #33047: cancel (refund n/a, unpaid), then delete.
+import {query} from './query.mjs';
+const ORDER='gid://shopify/Order/6141633069107'; // #33047
+// Cancel first (safe for unpaid/unfulfilled)
+const c=`mutation($id:ID!){orderCancel(orderId:$id,reason:OTHER,refund:false,restock:true,notifyCustomer:false,staffNote:"TK-11333 test order teardown"){userErrors{field message}}}`;
+const cr=await query(c,{id:ORDER});
+console.log('cancel userErrors:',JSON.stringify(cr.orderCancel?.userErrors||cr));
+// Then delete the record entirely
+const d=`mutation($id:ID!){orderDelete(orderId:$id){deletedId userErrors{field message}}}`;
+const dr=await query(d,{id:ORDER});
+console.log('delete:',JSON.stringify(dr.orderDelete));
diff --git a/full-order.mjs b/full-order.mjs
new file mode 100644
index 0000000..e3f000c
--- /dev/null
+++ b/full-order.mjs
@@ -0,0 +1,30 @@
+import {query} from './query.mjs';
+import fs from 'node:fs';
+const S=['gid://shopify/ProductVariant/44090076954675','gid://shopify/ProductVariant/44086096756787','gid://shopify/ProductVariant/44044973408307'];
+const lineItems=S.map(v=>({variantId:v,quantity:2})); // 6 samples = $25.50 (free band)
+const input={
+  email:'steve@designerwallcoverings.com',
+  tags:['TK-11333-TEST'],
+  note:'TK-11333 free-shipping end-to-end proof (test order, safe to cancel/delete)',
+  shippingAddress:{address1:'15442 Ventura Blvd',city:'Sherman Oaks',provinceCode:'CA',countryCode:'US',zip:'91403',firstName:'TK11333',lastName:'Test'},
+  lineItems,
+  shippingLine:{title:'Free Shipping (No Tracking)',price:'0.00'}
+};
+// 1) CREATE DRAFT
+const c=`mutation($input:DraftOrderInput!){draftOrderCreate(input:$input){draftOrder{id name subtotalPrice totalShippingPrice totalPrice shippingLine{title price} lineItems(first:10){nodes{title quantity}}} userErrors{field message}}}`;
+const cr=await query(c,{input});
+if(cr.draftOrderCreate.userErrors.length){console.log('CREATE ERR:',JSON.stringify(cr.draftOrderCreate.userErrors));process.exit(1);}
+const d=cr.draftOrderCreate.draftOrder;
+console.log('=== DRAFT CREATED ===');
+console.log('draft:',d.name,'| subtotal $'+d.subtotalPrice,'| shipping $'+d.totalShippingPrice,'| total $'+d.totalPrice,'| shippingLine:',d.shippingLine?.title,'$'+d.shippingLine?.price);
+console.log('items:',d.lineItems.nodes.map(x=>`${x.quantity}x ${x.title}`).join(', '));
+// 2) COMPLETE (unpaid)
+const cm=`mutation($id:ID!){draftOrderComplete(id:$id,paymentPending:true){draftOrder{id order{id name displayFinancialStatus displayFulfillmentStatus totalPriceSet{shopMoney{amount currencyCode}} totalShippingPriceSet{shopMoney{amount}} shippingLine{title price}}} userErrors{field message}}}`;
+const cmr=await query(cm,{id:d.id});
+if(cmr.draftOrderComplete.userErrors.length){console.log('COMPLETE ERR:',JSON.stringify(cmr.draftOrderComplete.userErrors));process.exit(1);}
+const o=cmr.draftOrderComplete.draftOrder.order;
+console.log('\n=== ORDER CREATED (unpaid) ===');
+console.log('order:',o.name,'| financial:',o.displayFinancialStatus,'| fulfillment:',o.displayFulfillmentStatus);
+console.log('total $'+o.totalPriceSet.shopMoney.amount,'| shipping $'+o.totalShippingPriceSet.shopMoney.amount,'| shippingLine:',o.shippingLine?.title,'$'+o.shippingLine?.price);
+console.log('order id:',o.id);
+fs.writeFileSync(new URL('./verification/full-order-result.json',import.meta.url),JSON.stringify({draft:d,order:o,createdAt:new Date().toISOString()},null,2)+'\n');
diff --git a/verification/full-order-result.json b/verification/full-order-result.json
new file mode 100644
index 0000000..90fc14c
--- /dev/null
+++ b/verification/full-order-result.json
@@ -0,0 +1,51 @@
+{
+  "draft": {
+    "id": "gid://shopify/DraftOrder/1001506373683",
+    "name": "#D3496",
+    "subtotalPrice": "25.50",
+    "totalShippingPrice": "0.00",
+    "totalPrice": "27.99",
+    "shippingLine": {
+      "title": "Free Shipping (No Tracking)",
+      "price": "0.00"
+    },
+    "lineItems": {
+      "nodes": [
+        {
+          "title": "Kralendijk - Forest Vegan Leather | Phillipe Romano",
+          "quantity": 2
+        },
+        {
+          "title": "Kotor - Spruce Vegan Leather | Phillipe Romano",
+          "quantity": 2
+        },
+        {
+          "title": "Front Royal - Seascape Fabric",
+          "quantity": 2
+        }
+      ]
+    }
+  },
+  "order": {
+    "id": "gid://shopify/Order/6141633069107",
+    "name": "#33047",
+    "displayFinancialStatus": "PENDING",
+    "displayFulfillmentStatus": "UNFULFILLED",
+    "totalPriceSet": {
+      "shopMoney": {
+        "amount": "27.99",
+        "currencyCode": "USD"
+      }
+    },
+    "totalShippingPriceSet": {
+      "shopMoney": {
+        "amount": "0.0"
+      }
+    },
+    "shippingLine": {
+      "title": "Free Shipping (No Tracking)",
+      "price": "0.00"
+    }
+  },
+  "createdAt": "2026-09-09T21:59:43.194Z"
+}

← 68cba17 5x: 3 clean sweeps verifying TK-11333 live shipping invarian  ·  back to Shopify Sample Shipping  ·  TK-11333: interior-designer shipping scenarios (read-only) 05b3443 →