Price file guide
Back to the upload page · Download the template
How a file is imported
- Every SKU in the file becomes a Costco product if it is missing. A product that already exists keeps its name.
- Warehouse prices (
price_type: "warehouse") become verified price points, one per province listed inprovinces, for the whole province (no single warehouse). - Same-Day prices (
price_type: "sameday_delivery", from sameday.costco.ca): the regular online price goes on the product itself (its Same-Day price;regular_price, orprice_discountedwhen no regular is printed). When the item is on sale, only the saving amount is used, never the Same-Day price (online runs above the shelf): the import takes the item's known warehouse regular price for that province and subtracts the saving. The regular comes from the database for that province first, then this file's warehouse rows for the same SKU (Ontario first), then any province in the database. When none is known, the saving is kept for later in a separate list (pending_price_savings) and shown as a warning; uploading a file again prices it once a warehouse regular is known. - A Same-Day item can also carry a warehouse price seen for the same province (
warehouse_price_discounted). That one becomes a price point. - Start date: an offer without
start_datestarts on the date picked on the upload page (by default the file'sstart_date, else itsgenerateddate). - Uploading the same file twice changes nothing. Correcting a price and uploading again adds the new price beside the old one; fix the old one in the app's admin screens if needed.
- Always press Preview first: it shows the new SKUs, the price points per province and every line that will be skipped, and writes nothing.
File layout
| Field | Required | Meaning |
|---|---|---|
generated | yes | The day the file was made, YYYY-MM-DD. Names the batch (costco-region-<generated>) and is the observed date when an item has none. |
start_date | no | Default start for offers without their own. |
regions.<XX> | yes | One group per province code (QC, ON, BC, AB, SK, MB, NB, NS, NL, PE…). |
regions.<XX>.price_type | yes | warehouse or sameday_delivery. An item may override it with its own price_type. |
regions.<XX>.items | yes | The products, fields below. |
Item fields
| Field | Required | Meaning |
|---|---|---|
sku | yes | Costco item number, digits only. |
product_name | yes | Name used when the SKU is new. |
price_discounted | yes | The price paid now (sale price), like "19.99". |
regular_price | no | The "was" price. Empty means not on sale (regular = price). |
provinces | no | Provinces the price applies to, like ["ON","NB","NS","NL","PE"]. Empty means the region's own code. |
start_date | no | First day of the offer. Empty means the default start date. |
expiry_date | no | Last day of the offer. Empty means no printed end. |
observed | no | Day the price was seen. Empty means generated. |
source, post_url | no | Where the price came from (site or account, and the link). For Same-Day savings the link is kept with the price point. |
location | no | Warehouses named in the post, like "Calgary (Beacon Hill), Edmonton (91 St NW)". |
warehouse_price_discounted, warehouse_expiry_date, warehouse_source | no | Same-Day items only: a warehouse price also seen for this province. |
size, image_url, other fields | no | Kept in your file, ignored by the import. Photos are uploaded separately. |
Photos
Name each photo by its SKU (1850321.jpg; PNG and WebP work too) and upload a zip of them, or the photos themselves. They are stored in the priceback-product-images bucket as costco/<sku>.jpg and can be read back at /api/product-images/costco/<sku>.