Inventory

Stock availability and retail store inventory

Query retail store stock for a product

get

Returns stock availability information across retail stores for a specific product.

Purpose: Enables "Click & Collect" functionality by showing which physical stores have a product in stock.

Response: Returns a list of retail stores with stock information, including:

  • Store location details (address, city, township)

  • Available stock quantity

  • Store contact information

Filtering: Use query parameters to narrow results by geographic area:

  • city_id: Show stores in a specific city

  • township_id: Show stores in a specific township

  • district_id: Show stores in a specific district

Rate Limiting: This endpoint is rate-limited to prevent abuse. Excessive requests may be throttled.

Path parameters
product_idintegerRequired

Unique identifier of the product to check stock for.

Example: 12345
Query parameters
city_idintegerOptional

Filter stores by city.

Example: 34
township_idintegerOptional

Filter stores by township (ilçe).

Example: 450
district_idintegerOptional

Filter stores by district (mahalle).

Example: 5670
Responses
200

Store stock information retrieved successfully

application/json
get
/retail_store_stock/{product_id}/

Query stock availability for basket items

get

Returns retail store stock availability for all items in the user's basket.

Purpose: Enables "Click & Collect" checkout by finding stores that have all basket items in stock.

Authentication: Requires either:

  • Authenticated session (logged-in user)

  • Valid email identifier

Response: Returns stores that can fulfill the entire basket, including:

  • Store details with location information

  • Per-product availability status

  • Collection tag/identifier

Filtering: Same geographic filters as single-product stock query:

  • city_id, township_id, district_id

Query parameters
city_idintegerOptional

Filter stores by city.

Example: 34
township_idintegerOptional

Filter stores by township (ilçe).

Example: 450
district_idintegerOptional

Filter stores by district (mahalle).

Example: 5670
Responses
200

Basket stock availability retrieved successfully

application/json
get
/query-basket-stock/

Last updated

Was this helpful?