Inventory
Stock availability and retail store inventory
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 citytownship_id: Show stores in a specific townshipdistrict_id: Show stores in a specific district
Rate Limiting: This endpoint is rate-limited to prevent abuse. Excessive requests may be throttled.
Unique identifier of the product to check stock for.
12345Filter stores by city.
34Filter stores by township (ilçe).
450Filter stores by district (mahalle).
5670Store stock information retrieved successfully
Retail store with stock availability information.
Store identifier
101Store name
Downtown Mall BranchStore code in the ERP system.
Used for inventory synchronization.
STR-DWN-001Store contact phone number
+90 212 555 1234Full street address
123 Main Street, Floor 2Geographic latitude coordinate
41.0082Geographic longitude coordinate
28.9784Available stock quantity at this store.
5Indicates if the product is available for collection at this store.
trueProduct not found
Rate limit exceeded
GET /retail_store_stock/{product_id}/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
[
{
"pk": 101,
"name": "Downtown Mall Branch",
"erp_code": "STR-DWN-001",
"phone_number": "+90 212 555 1234",
"address": "123 Main Street, Floor 2",
"township": {
"pk": 450,
"name": "Kadıköy",
"city": {
"pk": 34,
"name": "İstanbul",
"country": {
"pk": 1,
"name": "Türkiye",
"code": "TR"
}
}
},
"latitude": 41.0082,
"longitude": 28.9784,
"stock": 5,
"is_available": true
}
]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
Filter stores by city.
34Filter stores by township (ilçe).
450Filter stores by district (mahalle).
5670Basket stock availability retrieved successfully
Store availability result for basket items.
Collection identifier or tag for this fulfillment option.
CC-2024-001Authentication required.
User must be logged in or provide valid email identification.
Rate limit exceeded
GET /query-basket-stock/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
[
{
"tag": "CC-2024-001",
"products": [
{
"product_id": 12345,
"quantity": 2
}
],
"retail_store": {
"pk": 101,
"name": "Downtown Mall Branch",
"erp_code": "STR-DWN-001",
"phone_number": "+90 212 555 1234",
"address": "123 Main Street, Floor 2",
"township": {
"pk": 450,
"name": "Kadıköy",
"city": {
"pk": 34,
"name": "İstanbul",
"country": {
"pk": 1,
"name": "Türkiye",
"code": "TR"
}
}
},
"latitude": 41.0082,
"longitude": 28.9784,
"stock": 5,
"is_available": true
}
}
]Last updated
Was this helpful?

