Getting Started
This guide walks through the three steps needed to send your first request to the Stokzone API.
1. Create an API key
In your Stokzone panel, go to Settings → API Keys and create a new key. The raw key is shown only once; store it somewhere safe.
Go to API Keys2. Send your first request
Add your API key as a header to every request: X-API-Key
cURL
curl -H "X-API-Key: sk_live_xxxxxxxxxxxx" \
https://api.stokzone.com/api/v1/web-api/v1/products3. Get the response
The API returns paginated JSON. An example product list response:
JSON
{
"items": [
{
"id": 1842,
"sku": "TS-001",
"name": "Pamuklu Tişört",
"barcode": "8680000000017",
"stock": 124,
"price": 249.90,
"currency": "TRY"
}
],
"page": 1,
"page_size": 50,
"total": 1
}