Local stock import API
For connecting charity or company stock systems. This endpoint runs on your computer; it does not alter the live Charigo site.
Setup
Set a long random CHARIGO_IMPORT_KEY environment value before starting the server. Keep it private and send it as Authorization: Bearer YOUR_KEY. API imports are disabled until a key is set.
Validate, then save
POST JSON to /api/v1/import. Send {"dryRun":true,"items":[...]} first. Set dryRun to false only after review. All items are validated; a failing row rejects the whole batch.
Item fields
Required: title, seller, sellerType, category, condition, description, price, shipping, shippingInfo, minimum, charities, photos. Prices and shipping are in pounds; minimum is a whole percentage from 1 to 100. The charity gift is that percentage or 50p per item, whichever is higher; price must be at least £0.50. Charity IDs: school, food, club, reuse. Photos are JPG/PNG/WebP data URLs (max 2 MB each, 1–5 per item).
Optional: donationWeights (whole percentages for the selected charity IDs totalling 100), shippingType, packed weight in kg, length/width/height in cm, location, size. Shipping types: Collection, Letter, Large letter, Small parcel, Medium parcel, Courier / bulky item.
Large catalogues
Send 1–100 items per batch within the 16 MB request limit. Use smaller batches for large photos. Only retry a save when you know it failed; this first API version has no automatic duplicate detection or stock updates. It supports creating listings, not synchronising orders.
Human review
Photo analysis and price research are separate services. Imports don't claim to recognise photos or fetch postage rates. Prepare descriptions before importing and review all draft prices and shipping details.