Price file guide

Back to the upload page · Download the template

How a file is imported

File layout

FieldRequiredMeaning
generatedyesThe 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_datenoDefault start for offers without their own.
regions.<XX>yesOne group per province code (QC, ON, BC, AB, SK, MB, NB, NS, NL, PE…).
regions.<XX>.price_typeyeswarehouse or sameday_delivery. An item may override it with its own price_type.
regions.<XX>.itemsyesThe products, fields below.

Item fields

FieldRequiredMeaning
skuyesCostco item number, digits only.
product_nameyesName used when the SKU is new.
price_discountedyesThe price paid now (sale price), like "19.99".
regular_pricenoThe "was" price. Empty means not on sale (regular = price).
provincesnoProvinces the price applies to, like ["ON","NB","NS","NL","PE"]. Empty means the region's own code.
start_datenoFirst day of the offer. Empty means the default start date.
expiry_datenoLast day of the offer. Empty means no printed end.
observednoDay the price was seen. Empty means generated.
source, post_urlnoWhere the price came from (site or account, and the link). For Same-Day savings the link is kept with the price point.
locationnoWarehouses named in the post, like "Calgary (Beacon Hill), Edmonton (91 St NW)".
warehouse_price_discounted, warehouse_expiry_date, warehouse_sourcenoSame-Day items only: a warehouse price also seen for this province.
size, image_url, other fieldsnoKept 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>.