Import products
Load your product catalog from a JSON or CSV file, and keep it in sync through the API.
Use an import to load your catalog the first time and to keep it in sync afterwards. Each import adds new SKUs and updates existing ones, so you can send the same file again whenever your product data changes.
1. Prepare the file
You can upload JSON or CSV. Scops Loyalty treats a file as CSV when its name ends in .csv or its content type is CSV, and reads anything else as JSON.
A JSON array with one object per product:
[
{
"sku": "NIV-SOFT-200",
"name": "Nivea Soft Cream 200ml",
"brand": "Nivea",
"category": "Skincare",
"loyaltyPrice": 4.99,
"active": true
},
{
"sku": "SH-100",
"name": "Running shoes"
}
]Fields
| Field | Format | Notes |
|---|---|---|
sku | Text | Required. Unique in your catalog. If the SKU already exists, the product is updated. |
name | Text | Required. |
brand | Text | |
category | Text | |
loyaltyPrice | Number | For example 4.99 or "4.99". Stored with two decimals. |
active | true / false | Defaults to true. Use false to retire a product. |
2. Upload the file
Send the file as multipart/form-data in a field named file:
curl -X POST https://api.production.scops-loyalty.com/import/products \
-H "X-Api-Key: $SCOPS_API_KEY" \
-F "file=@products.csv"The response confirms that the file was received:
{
"message": "File uploaded successfully",
"importType": "products",
"createdAt": "2026-11-16T09-30-00-000Z"
}3. Wait for processing
The import runs in the background, so products appear in Products shortly after the upload. Rows that fail validation are skipped and the rest are imported. A row fails when, for example, it has no sku or name, or its loyaltyPrice isn't a number.
Keep the catalog in sync
- Schedule a regular import of new and changed products, for example every night from your ERP. Because existing SKUs are updated, a full export works too.
- Retire products instead of deleting them. Send
"active": falsein the import, or callDELETE /products/{id}. A retired product stays in the catalog but is hidden from the active catalog. - Use the API for single changes that should show up right away.
POST /productscreates a product andPATCH /products/{id}updates one. See Products.
Tips
- Use the same SKU, brand and category values that your POS or web shop sends in transactions. Promotions and campaign formulas match on these values.
- Test with a small file first, then check the products in the dashboard.