REST API v2

Integrate anything
into Logzi API

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.

500+ endpoints JSON API key authentication
terminal — logzi-api-demo
# 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"
    }
  ]
}
Authentication

API key identification

Every API request requires your unique API key, which you can find in your Logzi account under Settings → Integration.

3 steps to get started

1
Generate an API key

Create your API key on the Settings → Integration page in your account. Included with every subscription tier.

2
Send it with every request

Include your key in the X-API-KEY header of every HTTP request — for both GET and POST calls.

3
Handle the JSON response

Check the value of result.code: 1 = success, 0 = error. The data field contains the ERP data.

Authentication example – sending the header
# 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
}
Quick start

Your first API call in 5 minutes

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"])
  • No hidden costs
  • HTTP GET & POST
  • JSON standard
  • PHP SDK on GitHub
Standard

JSON response structure

Every API endpoint responds with the same JSON structure. The value of result.code indicates whether the call succeeded: 1 = success, 0 = error.

Successful response HTTP 200 · code: 1
{
  "result": {
    "code": 1,        ← Success
    "message": null  ← No error message
  },
  "data": {
    "id": 42,
    "company_name": "Example Ltd.",
    // ... additional fields
  }
}
Error / Empty response HTTP 200 · code: 0
{
  "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
Best practices

Rate limit & tips

For optimal performance and security, keep the following limits and recommendations in mind.

Rate Limit

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
Pagination

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
Security

Always store your API key securely – never expose it in source code, frontend JS, or a public repository.

  • Store it in an .env file
  • Use it only on the backend
  • Rotate it if compromised
  • Don't commit it without a .gitignore!

Find what you're looking for

We try to gather everything you need to know about the Logzi software in one place – organized into categories below.

FAQ

Frequently asked questions and answers about our software, all in one place.

Documentation

Documentation about the software, covering modules, features, and SDK calls.

Ask for help

Open a ticket, and our colleagues or the community will respond and help shortly.

Software Development Kit

Clone it, integrate it, get to work!

Connect your webshop, production system, or any standalone system to the Logzi API interface. With the SDK, you can implement most integrations in minutes.

  • Keep your data up to date
  • Work as a team
  • Automate processes
  • Open Source SDK

Create your registration now,
pay later!

Try it free for 3 days, with no risk or obligation!