App inventory feed
Push qty and price (with optional VAT) directly into one installed app — bulk first
App inventory feed
Push stock and prices straight into one install (for example HungerStation Inventory) without waiting on the shared catalogue → global staging fan-out. The feed upsert refreshes staging but skips the global reopen statement; then it wakes only this install’s staging obligations.
Bulk first
The feed is designed like POST /api/v1/skus/bulk: send many rows in one request. Use /inventory-feed/bulk as the canonical path; the shorter /inventory-feed alias accepts the same body.
Endpoints
POST /api/v1/apps/{slug}/inventory-feed/bulk
POST /api/v1/apps/{slug}/inventory-feedTenant-authenticated (organization is taken from the Authorization header / session — never from the path). Requires Import on Sku (same entitlement family as SKU bulk).
Path {slug}
Use a public app slug, not an internal install id:
| You send | Resolves to |
|---|---|
Family key, e.g. hungerstation, salla, trendyol | That family's inventory install for your organization |
Any family member, e.g. hungerstation-orders-v2 | The same family's inventory install |
Full inventory slug, e.g. hungerstation-inventory-v2 | That inventory install (required when several inventory installs exist) |
Unknown / uninstalled → 404 (inventory app not found). Several matching inventory installs and an ambiguous family key → 409 (pass the full inventory slug).
Request body
{
"items": [
{
"iv_id": "PROD-001",
"branch_id": "STORE-001",
"qty": 12,
"price": 20.0,
"vat": 0.15,
"available": true
},
{
"iv_id": "PROD-002",
"qty": 0,
"price": 9.5
}
]
}| Field | Required | Notes |
|---|---|---|
iv_id | yes | Product / SKU identity already present in the catalogue |
branch_id | no | When omitted, the update applies to every branch that already has this iv_id |
qty | yes | Absolute quantity |
price | yes | Base price before VAT modifier |
vat | no | VAT fraction (e.g. 0.15). Stored price becomes price * (1 + vat) when set |
available | no | Defaults to qty > 0 |
Maximum 1000 items per request (same ceiling as SKU bulk).
Response
{
"success": true,
"app_slug": "hungerstation-inventory-v2",
"total": 2,
"updated": 2,
"skipped": 0,
"failed": 0,
"errors": {}
}app_slug is the catalogue slug of the inventory install that received the feed. success follows the SKU bulk rule: failed <= updated. Counters are per request item (an org-level row that fans out to several branches still counts as one updated or one failed). Branch-level detail lands in errors keyed by iv_id or iv_id@branch. skipped is reserved and is normally 0.
Which slugs can you send?
GET /api/v1/apps/familiesTenant-authenticated. Returns every app family whose inventory member is an active catalogue app (apps.active) — whether or not your organization has installed it. One row each, with a preferred slug (usually the family key) and one alternative (the inventory member slug). Use either value in the feed path.
{
"families": [
{
"key": "hungerstation",
"label": "HungerStation",
"slug": "hungerstation",
"alternative": "hungerstation-inventory-v2"
},
{
"key": "salla",
"label": "Salla",
"slug": "salla",
"alternative": "salla-inventory"
}
]
}Families whose inventory catalogue app is inactive are omitted. Install state does not affect this list. Requires List on AppInstall. The feed write itself still needs the inventory app installed for your organization (unknown / uninstalled → 404).
Prerequisites
- The SKU must already exist (
POST /api/v1/skusor product/branch creation). The feed updates stock and price; it does not create catalogue rows. - The authenticated organization must have the inventory app installed for that family (unknown / foreign → 404).