Skip to content

Storefront-safe per-warehouse stock status​

GET
/public/erp-stock-by-warehouse

Public storefront read of the per-store stock status of a product for one vendor. Only active stores linked to the vendor are listed; each one carries a low-stock-aware status, never a raw quantity, and no internal id. vendor_id is required. The marketplace is resolved from the product itself.

Cache-Control: public, max-age=60.

Auth: Public (no authentication).

Parameters​

Header Parameters

X-Channel

Distribution channel selecting per-channel storefront display config (independent toggles per marketplace tenant). Display config, not authentication. Absent header defaults to web.

Type
string
Valid values
"web""mobile"
Default
"web"

Query Parameters

mk_product_id*

1..64

Type
string
Required
vendor_id*

1..64

Type
string
Required
mk_variant_id

Scope to the exact variation (size/colour) the customer selected; falls back to whole-product when the product has no per-variant mappings. 1..64

Type
string

Responses​

Storefront-safe warehouse list (sets Cache-Control: public, max-age=60)

application/json
JSON
{
  
"ok": true,
  
"data": [
  
  
{
  
  
  
"storeId": "string",
  
  
  
"name": "string",
  
  
  
"city": "string",
  
  
  
"lat": 36.8782,
  
  
  
"lng": 10.3247,
  
  
  
"status": "in_stock"
  
  
}
  
]
}

Playground​

Headers
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai