Base URL
https://{tenant}.logzi.com/api/store/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0.
/api/store/get
Retrieve a single warehouse by its identifier, with full details.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the warehouse | |
store_default | int | 1 = retrieve the default warehouse |
Example request
GET /api/store/get?id=1
X-API-KEY: {your_api_key}
/api/store/list
Retrieve a paginated list of warehouses, with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_count | int | Number of records per page | |
list_condition[name] | string | Filter by warehouse name (LIKE) | |
language_id | int | Language identifier |
Example request
GET /api/store/list?list_offset=0&list_condition[name]=F%C5%91rakt%C3%A1r
X-API-KEY: {your_api_key}
/api/store/save
Create or update a warehouse. For a new record use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new warehouse, >0 = update | |
company_id | int | Company identifier | |
company_user_id | int | Responsible employee ID | |
name | string | Warehouse name | |
country_id | int | Country identifier | |
zip | string | ZIP code | |
city | string | City | |
address | string | Street, house number |
Example request
POST /api/store/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"company_user_id": 3,
"name": "Főraktár"
}
}
/api/store/delete
Delete a warehouse by its identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the warehouse to delete |
Example request
POST /api/store/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!