Skip to content

Per-vendor online + in-store availability for a selected variation​

GET
/public/variant-availability

Storefront-facing, public. For the selected variation, returns — for every vendor offering the product's EAN group — the online availability of that variation AND its per-store (in-store) availability. Quantities are hidden (low-stock-aware status only). Cross-vendor variant matching keys off the variant EAN, falling back to a normalized selectable-axis signature (color+size…). Account is resolved from the product. 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
mk_variant_id*

The variation the customer selected. 1..64

Type
string
Required

Responses​

Per-vendor availability for the selected variation (sets Cache-Control: public, max-age=60)

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"productId": "string",
  
  
"variantId": "string",
  
  
"vendors": [
  
  
  
{
  
  
  
  
"vendorId": "string",
  
  
  
  
"vendorName": "string",
  
  
  
  
"vendorWhatsapp": "string",
  
  
  
  
"price": 0,
  
  
  
  
"online": {
  
  
  
  
  
"status": "in_stock"
  
  
  
  
},
  
  
  
  
"stores": [
  
  
  
  
  
{
  
  
  
  
  
  
"storeId": "string",
  
  
  
  
  
  
"name": "string",
  
  
  
  
  
  
"city": "string",
  
  
  
  
  
  
"lat": 36.8782,
  
  
  
  
  
  
"lng": 10.3247,
  
  
  
  
  
  
"status": "in_stock"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"showsStoreStock": true,
  
  
  
  
"stockScopedToVariant": true,
  
  
  
  
"productId": "string",
  
  
  
  
"variantId": "string",
  
  
  
  
"compareAtPrice": 0,
  
  
  
  
"onSale": true
  
  
  
}
  
  
]
  
}
}

Playground​

Headers
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai