Subversion Repositories SmartDukaan

Rev

Rev 37296 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37296 Rev 37856
Line 58... Line 58...
58
itemId     = a sellable SKU (variant of a catalog)     → listed in catalogSkuMaster
58
itemId     = a sellable SKU (variant of a catalog)     → listed in catalogSkuMaster
59
storeId    = a physical partner store mapped to you   → listed in storeMaster
59
storeId    = a physical partner store mapped to you   → listed in storeMaster
60
stock      = (storeId, itemId) → availability          → skuMaster / stock</pre>
60
stock      = (storeId, itemId) → availability          → skuMaster / stock</pre>
61
<p>Prices per SKU: <code>mop</code> is the proposed selling price; <code>mrp</code> is the maximum retail
61
<p>Prices per SKU: <code>mop</code> is the proposed selling price; <code>mrp</code> is the maximum retail
62
price (strike-through display). A SKU with <code>active: false</code> is delisted and should not be sold.</p>
62
price (strike-through display). A SKU with <code>active: false</code> is delisted and should not be sold.</p>
-
 
63
<p><code>brandIdentifier</code> is the brand's own article/SKU code and is maintained <strong>per itemId</strong>
-
 
64
(one colour variant of a catalog), not per catalog. It is returned on every SKU-level row —
-
 
65
<code>/catalogSkuMaster</code>, <code>/catalogSkus</code>, <code>/skuMaster</code> and <code>/stock</code> — and is
-
 
66
<code>null</code> where it has not yet been maintained. Always key SKUs by <code>itemId</code>.</p>
63
<div class="note">
67
<div class="note">
64
  <strong>Category scoping:</strong> your account is mapped to specific categories (see
68
  <strong>Category scoping:</strong> your account is mapped to specific categories (see
65
  <code>/categoryMaster</code>). Every feed and lookup only ever returns catalogs, SKUs and stock within
69
  <code>/categoryMaster</code>). Every feed and lookup only ever returns catalogs, SKUs and stock within
66
  those categories. <code>title</code> is present and non-empty on catalog, SKU and stock records — the
70
  those categories. <code>title</code> is present and non-empty on catalog, SKU and stock records — the
67
  same derived product title everywhere.
71
  same derived product title everywhere.
Line 125... Line 129...
125
               "brandIdentifier": "SM-A155FZKW",
129
               "brandIdentifier": "SM-A155FZKW",
126
               "mop": 14999.0, "mrp": 17999.0, "active": true,
130
               "mop": 14999.0, "mrp": 17999.0, "active": true,
127
               "updatedAt": 1753500000000, "addedOn": 1750000000000 } ]</pre>
131
               "updatedAt": 1753500000000, "addedOn": 1750000000000 } ]</pre>
128
 
132
 
129
<h3><span class="method">GET</span>/skuMaster</h3>
133
<h3><span class="method">GET</span>/skuMaster</h3>
130
<p>Per-store stock + price rows for <em>your mapped stores</em>, with full item identity on every row.
134
<p>Per-store stock + price rows for <em>your mapped stores</em>, with full item identity on every row
-
 
135
(including the per-itemId <code>brandIdentifier</code>).
131
<code>limit</code> max 500. Optional <code>storeId</code> narrows to one store (must be mapped to you;
136
<code>limit</code> max 500. Optional <code>storeId</code> narrows to one store (must be mapped to you;
132
an unmapped id → 403 <code>EXT_403</code>). Omitting <code>storeId</code> returns rows across all your
137
an unmapped id → 403 <code>EXT_403</code>). Omitting <code>storeId</code> returns rows across all your
133
mapped stores.</p>
138
mapped stores.</p>
134
<pre>GET /external/v1/skuMaster?offset=0&amp;limit=500
139
<pre>GET /external/v1/skuMaster?offset=0&amp;limit=500
135
→ records: [ { "storeId": 2116665, "itemId": 101, "title": "Samsung Galaxy A15 SM-A155F",
140
→ records: [ { "storeId": 2116665, "itemId": 101, "title": "Samsung Galaxy A15 SM-A155F",