Archive a supplier
Suppliers archive rather than delete, because products keep referencing their IDs.
Archiving relinks every product and variant that would be left without a supplier to the hidden Default, and purges this supplier’s per-supplier prices in the background. Repeating the call on an already-archived supplier is a no-op, so a retry is safe. The hidden Default itself can’t be archived.
POST
/api/v1/suppliers/{id}/archiveAuthorization
AuthorizationBearer token (bloomcount_...) · headerrequiredPath parameters
idstringrequiredResponses
200Archived
supplierIdstringrequiredThe supplier this result is about.
archivedbooleanrequiredTrue after archiving, false after restoring.
relinkedProductsintegerrequiredProducts that fell back to the hidden Default because this was their only supplier.
relinkedVariantsintegerrequiredVariants that fell back to the hidden Default because this was their only supplier.
401Missing or invalid API key, or revoked / expired.
errorstringrequired403Authenticated, but the key lacks the required scope or the tenant has no API access.
errorstringrequired404The requested resource doesn't exist or belongs to a different tenant.
errorstringrequired409The request is well formed, but it conflicts with the current state: a name already taken, a row the app
protects (the hidden Default supplier, a preset colour or category), or a staff member who has an account.
errorstringrequired429Per-minute rate limit (60/min) or per-month cap exceeded.
errorstringrequired