Abrir en Magpie

Importing creates several products at once from their names, descriptions, prices and SKUs. On Products, open More and choose Import products from JSON…. Copy the prompt in the drawer copies this format with instructions for an AI assistant; give it your price list with the prompt, then paste back what it returns and choose Import products.

Imported products are drafts. A draft cannot be made live without an image, so no imported product is shown to customers until someone adds an image and makes it live.

Importing only creates products. It does not change or remove products you already have; to change existing products in bulk, use Import and export products as CSV.

The whole document is checked before anything is created, including every price. If any part of it does not fit the format below, nothing is created and the message names the product that caused it.

The document

{
  "products": [
    { "title": "Wool scarf", "description": "Undyed British wool.", "price": "48.00", "sku": "SCF-001" }
  ]
}

products is required, and holds at least one product and up to 100.

Field Type Notes
title string, required 2 to 300 characters.
description string, optional Up to 20,000 characters. Newlines are kept.
price string or number, required Written in whole currency units, 48 or 48.00, not pence or cents. Must be above zero.
sku string, optional Your own stock code, up to 100 characters. Two products in one document cannot share one.

The currency is your Store's, and the document cannot change it. Write prices in that currency, with at most the number of decimal places it uses.

Every imported product is physical, tracks stock, and starts with no stock counted. Digital products are not imported, because the file has to be chosen from your file library.

After importing

Open each product from Products to finish it:

  • add at least one image;
  • set the stock quantity, or turn stock tracking off;
  • check the price reads correctly in your currency;
  • choose Make live.

A complete example

{
  "products": [
    { "title": "Wool scarf", "description": "Undyed British wool, woven in West Yorkshire. 180cm.", "price": "48.00", "sku": "SCF-001" },
    { "title": "Wool scarf, dyed", "description": "The same scarf, dyed with madder or woad.", "price": "54.00", "sku": "SCF-002" },
    { "title": "Offcut bundle", "description": "A kilo of mixed offcuts, seconds quality.", "price": "12.50", "sku": "OFF-001" }
  ]
}

If an import is refused and the message does not say why, Contact support.

Preguntar al soporte de Magpie

Envía al equipo de Magpie una pregunta sobre cualquier cosa que este artículo no responda.