We provide RESTful API access with every subscription.
Connect your webshop, production system, CRM, or any standalone system
to Logzi ERP – with JSON responses and API-key authentication.
# Fetching the partner list with an API key curl -X GET \ "https://app.logzi.com/api/partner/list?list_count=5" \ -H "X-API-KEY: your-secret-api-key" # ✓ 200 OK — JSON response: { "result": { "code": 1, "message": null }, "data": [ { "id": 42, "company_name": "Example Ltd.", "tax_number": "12345678-1-01" } ] }
Every API request requires your unique API key, which you can find in your Logzi account under Settings → Integration.
Create your API key on the Settings → Integration page in your account. Included with every subscription tier.
Include your key in the X-API-KEY header of every HTTP request — for both GET and POST calls.
Check the value of result.code: 1 = success, 0 = error. The data field contains the ERP data.
# cURL – X-API-KEY header for every request curl -X GET \ "https://app.logzi.com/api/partner/get?id=42" \ -H "X-API-KEY: abc123def456ghi789" \ -H "Content-Type: application/json" # PHP – setting the cURL header $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'X-API-KEY: abc123def456ghi789', 'Content-Type: application/json', ]); # Response for an invalid key: { "result": { "code": 0, "message": "Unauthorized" }, "data": null }
Choose your programming language and paste the code – it queries the partner list from the Logzi API.
<?php require_once 'vendor/autoload.php'; use Logzi\Api\LogziClient; // 1. Initialize the client with your API key $client = new LogziClient([ 'api_key' => 'your-secret-api-key', 'base_url' => 'https://app.logzi.com/api/', ]); // 2. Fetch the partner list (paginated) $response = $client->partner()->list([ 'list_offset' => 0, 'list_count' => 25, ]); // 3. Process the result if ($response['result']['code'] === 1) { foreach ($response['data'] as $partner) { echo $partner['id'] . ' – ' . $partner['company_name'] . "\n"; } } else { echo 'Error: ' . $response['result']['message']; }
# Partner list – basic GET request curl -X GET \ "https://app.logzi.com/api/partner/list?list_offset=0&list_count=25" \ -H "X-API-KEY: your-secret-api-key" \ -H "Content-Type: application/json" # Filtering with the list_condition parameter (customers only) curl -G \ "https://app.logzi.com/api/partner/list" \ --data-urlencode "list_condition[is_customer]=1" \ --data-urlencode "list_count=50" \ -H "X-API-KEY: your-secret-api-key" # Search by company name curl -X GET \ "https://app.logzi.com/api/partner/get?company_name=P%C3%A9lda+Kft." \ -H "X-API-KEY: your-secret-api-key"
const API_KEY = 'your-secret-api-key'; const BASE_URL = 'https://app.logzi.com/api'; // Generic GET helper function async function logziGet(endpoint, params = {}) { const qs = new URLSearchParams(params).toString(); const res = await fetch(`${BASE_URL}/${endpoint}?${qs}`, { method: 'GET', headers: { 'X-API-KEY': API_KEY, 'Content-Type': 'application/json', }, }); return res.json(); } // Listing partners const result = await logziGet('partner/list', { list_offset: 0, list_count: 25, }); if (result.result.code === 1) { result.data.forEach(p => console.log(p.company_name)); }
import requests API_KEY = "your-secret-api-key" BASE_URL = "https://app.logzi.com/api" headers = { "X-API-KEY": API_KEY, "Content-Type": "application/json", } # Fetching the partner list response = requests.get( f"{BASE_URL}/partner/list", headers=headers, params={"list_offset": 0, "list_count": 25}, ) data = response.json() if data["result"]["code"] == 1: for partner in data["data"]: print(partner["company_name"]) else: print("Error:", data["result"]["message"])
Every API endpoint responds with the same JSON structure.
The value of result.code indicates whether the call succeeded: 1 = success, 0 = error.
{
"result": {
"code": 1, ← Success
"message": null ← No error message
},
"data": {
"id": 42,
"company_name": "Example Ltd.",
// ... additional fields
}
}
{
"result": {
"code": 0, ← Error
"message": "Not found" ← Error message
},
"data": null ← No data
}
// Possible messages:
// "Unauthorized" – invalid API key
// "Not found" – resource does not exist
For optimal performance and security, keep the following limits and recommendations in mind.
A maximum of 100 requests / 30 seconds is allowed per endpoint. Exceeding this returns an HTTP 429 response.
X-RateLimit-Limit: 100 X-RateLimit-Remaining: 95 X-RateLimit-Reset: 1712345678
Always use the list_offset and list_count parameters on list endpoints to optimize memory and speed.
# Page 1 (items 0–24) ?list_offset=0&list_count=25 # Page 2 (items 25–49) ?list_offset=25&list_count=25
Always store your API key securely – never expose it in source code, frontend JS, or a public repository.
.env file.gitignore!We try to gather everything you need to know about the Logzi software in one place – organized into categories below.
Frequently asked questions and answers about our software, all in one place.
Documentation about the software, covering modules, features, and SDK calls.
Open a ticket, and our colleagues or the community will respond and help shortly.
Connect your webshop, production system, or any standalone system to the Logzi API interface. With the SDK, you can implement most integrations in minutes.