API documentation and test console

Connect your management software, website or app to Fixh IT. Here you'll find every function available with an API key, how to call it, what it returns and a tester to try it right away with your own key.

Base URL: https://fixh.it/api/v1

API usage guide

Everything you need to integrate Fixh IT with your systems

What you can do with an API key

An API key lets an external program (management software, e-commerce, CRM, app, automations such as Zapier or Make) read and write your company's data on Fixh IT without using a user's username and password.

  • Create repairs automatically, for example from the check-in form on your website.
  • Read the list and details of repairs to show their status to customers or sync them with other systems.
  • Update the status, quote, payment and delivery of a repair.
  • Search, create and update the customers in your records.
  • Read shops and repair statuses, which you need to fill in requests correctly.
  • Read till sales (receipts and lines) and get reports by day, month, shop or product.

How to get a key

  1. Sign in to Fixh IT with a company administrator user.
  2. Open Administration › Company › API Keys and click «Create key».
  3. Give the key a name (e.g. «Website») and copy it right away: for security it is shown only once.
  4. Paste it into the «API key» field at the top of this page and try the endpoints below.

How many keys you can create

The number of active keys depends on the company's plan:

Plan Active keys
Level 1 — Individual 1
Level 2 — Business 2
Level 3 — Enterprise 3

Revoked keys do not count towards the limit: revoke one to create another. Companies without an active plan cannot create keys.

Authentication

Every request, except public endpoints, must include the key in one of these three ways:

X-API-Key: fhpk_co_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authorization: ApiKey fhpk_co_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://fixh.it/api/v1/company/repairs?api_key=fhpk_co_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Recommended: the X-API-Key header. Avoid the api_key parameter in the URL, because addresses can end up in server and proxy logs.

Company keys start with fhpk_co_ and give access to your company's repairs, customers, sales, shops and statuses. Reseller keys start with fhpk_rs_ and give access only to reseller functions (licenses, invoices, payments). Each key only sees its owner's data.

Request and response format

All addresses start with https://fixh.it/api/v1. Requests with a body use JSON (Content-Type: application/json) and responses are always JSON, with the data in «data» and additional information in «meta».

{
    "data": [
        {
            "id": 292005,
            "repair_number": "XL3Y9P"
        }
    ],
    "meta": {
        "version": "v1",
        "page": 1,
        "per_page": 25,
        "total": 340
    }
}
  • Pagination: lists accept page and per_page (maximum 100). The total number of results is in meta.total (repairs, licenses) or in meta.pagination.total (customers).
  • Dates: send dates in YYYY-MM-DD format (e.g. 2026-10-02). Returned dates use the YYYY-MM-DD HH:MM:SS format.
  • Amounts: for repairs, send amounts excluding VAT (*_no_vat fields); the amount including VAT is calculated automatically with your company's VAT rate.
  • Writes: in POST, PATCH and PUT send only the fields you want to set. The exception is PUT /customers/{id}: see the endpoint note.

Error handling

On error, the response has an HTTP status other than 2xx and a JSON body with a machine-readable «code» field. For validation errors (422) the «errors» field tells you, for each field, what to fix.

{
    "code": "VALIDATION_ERROR",
    "errors": {
        "shop_id": [
            "Shop not found for this company"
        ]
    }
}
HTTP code Meaning
401 UNAUTHORIZED Key missing, wrong or revoked, or not valid for this endpoint.
403 API_KEY_LIMIT_REACHED Operation not allowed (e.g. the plan's key limit has been reached).
404 NOT_FOUND Resource not found or belonging to another company.
409 LICENSE_ALREADY_USED Conflict: the operation isn't possible in the current state (e.g. license already used).
422 VALIDATION_ERROR Invalid data: fix the fields shown.
429 TOO_MANY_REQUESTS Too many requests: wait a few seconds and try again.
500 SERVER_ERROR Internal server error: try again later.

Rate limit

Each key can make up to 120 requests per minute. The X-RateLimit-Limit and X-RateLimit-Remaining headers show the limit and the remaining requests. Above the limit you get 429 TOO_MANY_REQUESTS: wait the number of seconds given in the Retry-After header and try again.

Example: creating a repair from your website

  1. GET /company/shops to get the shop id (shop_id).
  2. GET /company/repair-statuses to find the status ids (optional: without a status the initial one is used).
  3. GET /customers?q=... to look up the customer; if they don't exist, create them with POST /customers and use the returned id.
  4. POST /company/repairs with shop_id, customer_id and the device data: the response contains id and repair_number.
  5. While the work is in progress, use PATCH /company/repairs/{id} to update status, quote, payment and delivery.

Security

  • Use the key server-side only: never put it in a website's JavaScript code, in a mobile app or in a public repository.
  • Create a different key for each integration, so you can revoke one without stopping the others.
  • If you think a key has been exposed, revoke it immediately from API Keys and create a new one.
  • The «Last used» column on the API Keys page shows when each key was last used.

Endpoints

Public endpoints (Public, no key)

No key required. Useful to check that the service is responding.

GET /status — Service status

Checks that the API is reachable and returns the server version and time. Useful as a health check.

  • URL: https://fixh.it/api/v1/status
  • Public, no key
  • Response 200 on success

Response example (200)

{
    "version": "v1",
    "status": "ok",
    "timestamp": "2026-09-26T10:15:00+00:00"
}

GET /plans — Available plans

List of Fixh IT plans with monthly and yearly prices, limits (shops, users, customers, products, storage) and included features.

  • URL: https://fixh.it/api/v1/plans
  • Public, no key
  • Response 200 on success

Response example (200)

[
    {
        "id": 1,
        "name": "Individual",
        "price_monthly": 9.99,
        "price_yearly": 95.9,
        "shops": 1,
        "admins": 2,
        "customers": 5000,
        "products": 1000,
        "storage_gb": 0,
        "documents": false,
        "warehouse": true,
        "pos": false,
        "fidelity": false,
        "is_popular": false
    },
    {
        "id": 2,
        "name": "Business",
        "price_monthly": 24.99,
        "price_yearly": 239.9,
        "shops": 3,
        "admins": 15,
        "customers": 30000,
        "products": 15000,
        "storage_gb": 1,
        "documents": true,
        "warehouse": true,
        "pos": true,
        "fidelity": false,
        "is_popular": true
    }
]

Shops and statuses (Company key)

Your company's reference data: the returned ids are needed to create and filter repairs.

GET /company/shops — Shop list

Returns all the company's shops with id, name, address and contacts. Use the id as shop_id to create or filter repairs.

  • URL: https://fixh.it/api/v1/company/shops
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Response example (200)

{
    "data": [
        {
            "id": 1,
            "name": "Fixh Lab Roma",
            "address": "Via Roma 1",
            "zip_code": "00100",
            "city": "Roma",
            "province": "RM",
            "phone": "0612345678",
            "email": "roma@example.com",
            "is_active": true
        }
    ],
    "meta": {
        "version": "v1"
    }
}

GET /company/repair-statuses — Repair statuses

Returns the repair statuses configured by the company, in workflow order, with the colors used in the software.

The function field marks special statuses: client_create and shop_create are the initial statuses, finished means the repair is complete, ritired the pick-up, warranty the warranty and intervention_request a request for action sent to the customer.

  • URL: https://fixh.it/api/v1/company/repair-statuses
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Response example (200)

{
    "data": [
        {
            "id": 1,
            "name": "In arrivo",
            "order": 1,
            "function": "client_create",
            "color_bg": "#f8d7da",
            "color_text": "#842029"
        },
        {
            "id": 2,
            "name": "In attesa",
            "order": 2,
            "function": "shop_create",
            "color_bg": "#f8d7da",
            "color_text": "#842029"
        },
        {
            "id": 4,
            "name": "Lavorazione",
            "order": 4,
            "function": null,
            "color_bg": "#0d6efd",
            "color_text": "#ffffff"
        }
    ],
    "meta": {
        "version": "v1"
    }
}

Repairs (Company key)

List, details, creation and update of the repairs of all the company's shops.

GET /company/repairs — Repair list

Returns the company's repairs, newest first, with search and filters by status and shop.

  • URL: https://fixh.it/api/v1/company/repairs
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • page (integer): Page number, starting from 1. — 1
  • per_page (integer): Results per page, from 1 to 100. Default: 25. — 10
  • q (text): Search by repair number, serial number or IMEI.
  • status_id (integer): Show only repairs with this status (id from GET /company/repair-statuses).
  • shop_id (integer): Show only repairs of this shop (id from GET /company/shops).
  • archived (text): Archived repairs: 0 (default) excludes them, 1 returns only archived ones, all includes everything. (0, 1, all)

Response example (200)

{
    "data": [
        {
            "id": 292005,
            "repair_number": "XL3Y9P",
            "shop_id": 1,
            "customer_id": 1486,
            "technician_id": null,
            "device_id": 14824,
            "device_type": 21,
            "repair_type": "hardware",
            "device_pin": "",
            "device_color": "Nero",
            "serial_number": "R58N12ABCDE",
            "imei_number": "356938035643809",
            "damage": "Display rotto",
            "conditions": "Segni di usura",
            "accessories": "Cover",
            "internal_notes": "",
            "repair_status": 2,
            "promise_date": "2026-10-02 18:00:00",
            "initial_pay_no_vat": 0,
            "initial_pay_with_vat": 0,
            "quotation_no_vat": 81.97,
            "quotation_with_vat": 100,
            "paid": false,
            "total_paid": 0,
            "delivered": false,
            "delivered_date": null,
            "warranty": 90,
            "urgent": false,
            "archived_at": null,
            "created_at": "2026-09-26T10:15:00+02:00",
            "updated_at": "2026-09-26T10:15:00+02:00"
        }
    ],
    "meta": {
        "version": "v1",
        "page": 1,
        "per_page": 10,
        "total": 1
    }
}

GET /company/repairs/lookup — Customer repairs by phone

Finds the customer registered with the given number (main or secondary phone) and returns their repairs that are not yet delivered plus those delivered in the last 60 days, with only the data that can be shared with the customer. Designed for automated assistants such as a WhatsApp bot.

Always returns a single customer: if the number appears on more than one record, the main phone wins, then the most recent customer. Device PIN, internal notes, IMEI and serial number are never returned. price_with_vat is the sum of the interventions (null if there are none yet) and balance_due is the amount still to be paid; is_ready is true when the status has the finished function. If the number matches no customer, customer is null and repairs is empty.

  • URL: https://fixh.it/api/v1/company/repairs/lookup
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • phone (text, required): Customer number in international format (e.g. 393331234567). Without a prefix, the company's country prefix is used. — 393331112233
  • repair_number (text): Returns only the repair with this number, if it belongs to the customer.

Response example (200)

{
    "data": {
        "customer": {
            "id": 1486,
            "name": "Mario Rossi",
            "firstname": "Mario",
            "language": "it"
        },
        "repairs": [
            {
                "id": 292005,
                "repair_number": "XL3Y9P",
                "device": "Apple iPhone 15 Pro",
                "device_type": "SMARTPHONE",
                "device_color": "Nero",
                "damage": "Display rotto",
                "status": {
                    "id": 4,
                    "name": "Lavorazione",
                    "function": null
                },
                "is_ready": false,
                "is_delivered": false,
                "price_with_vat": 189,
                "initial_quotation_with_vat": 180,
                "amount_paid": 50,
                "balance_due": 139,
                "paid": false,
                "promise_date": "2026-10-02T18:00:00+02:00",
                "urgent": false,
                "warranty": 90,
                "created_at": "2026-09-26T10:15:00+02:00",
                "delivered_date": null,
                "shop": {
                    "id": 1,
                    "name": "Fixh Lab Roma",
                    "address": "Via Roma 1 00100 Roma (RM)",
                    "phone": "0612345678",
                    "email": "roma@example.com"
                },
                "public_url": "https://fixh.it/r/XL3Y9P",
                "pending_intervention": null
            }
        ]
    },
    "meta": {
        "version": "v1"
    }
}

GET /company/repairs/feed — New repairs

Returns the repairs created after after_id, oldest first, with the customer's name, language and WhatsApp number. Used to send repair opening notifications.

Without after_id the response contains no repairs, only meta.last_id, to be used as the starting point so that past repairs are not notified. For the next call use meta.next_after_id.

  • URL: https://fixh.it/api/v1/company/repairs/feed
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • after_id (integer): Id of the last repair already processed (meta.next_after_id from the previous call). — 292004
  • limit (integer): Maximum number of repairs to read (1-100, default 50). — 50

Response example (200)

{
    "data": [
        {
            "id": 292005,
            "repair_number": "XL3Y9P",
            "device": "Apple iPhone 15 Pro",
            "device_type": "SMARTPHONE",
            "device_color": "Nero",
            "damage": "Display rotto",
            "status": {
                "id": 4,
                "name": "Lavorazione",
                "function": null
            },
            "is_ready": false,
            "is_delivered": false,
            "price_with_vat": 189,
            "initial_quotation_with_vat": 180,
            "amount_paid": 50,
            "balance_due": 139,
            "paid": false,
            "promise_date": "2026-10-02T18:00:00+02:00",
            "urgent": false,
            "warranty": 90,
            "created_at": "2026-09-26T10:15:00+02:00",
            "delivered_date": null,
            "shop": {
                "id": 1,
                "name": "Fixh Lab Roma",
                "address": "Via Roma 1 00100 Roma (RM)",
                "phone": "0612345678",
                "email": "roma@example.com"
            },
            "public_url": "https://fixh.it/r/XL3Y9P",
            "customer": {
                "id": 1486,
                "name": "Mario Rossi",
                "firstname": "Mario",
                "language": "it",
                "whatsapp_phone": "393331112233"
            }
        }
    ],
    "meta": {
        "version": "v1",
        "last_id": 292005,
        "next_after_id": 292005
    }
}

GET /company/repairs/finished-feed — Completed repairs

Returns the repairs moved to a status with the "Repair completed" function after after_log_id, with the customer's name, language and WhatsApp number. Used to tell the customer the device is ready.

Based on the repair change log: only repairs still in a completed status and not delivered are returned, once per batch. Without after_log_id the response only contains meta.last_log_id; for the next call use meta.next_after_log_id.

  • URL: https://fixh.it/api/v1/company/repairs/finished-feed
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • after_log_id (integer): Id of the last status change already processed (meta.next_after_log_id of the previous call). — 39950
  • limit (integer): Maximum number of repairs to read (1-100, default 50). — 50

Response example (200)

{
    "data": [
        {
            "id": 292005,
            "repair_number": "XL3Y9P",
            "device": "Apple iPhone 15 Pro",
            "device_type": "SMARTPHONE",
            "device_color": "Nero",
            "damage": "Display rotto",
            "status": {
                "id": 4,
                "name": "Lavorazione",
                "function": null
            },
            "is_ready": true,
            "is_delivered": false,
            "price_with_vat": 189,
            "initial_quotation_with_vat": 180,
            "amount_paid": 50,
            "balance_due": 139,
            "paid": false,
            "promise_date": "2026-10-02T18:00:00+02:00",
            "urgent": false,
            "warranty": 90,
            "created_at": "2026-09-26T10:15:00+02:00",
            "delivered_date": null,
            "shop": {
                "id": 1,
                "name": "Fixh Lab Roma",
                "address": "Via Roma 1 00100 Roma (RM)",
                "phone": "0612345678",
                "email": "roma@example.com"
            },
            "public_url": "https://fixh.it/r/XL3Y9P",
            "customer": {
                "id": 1486,
                "name": "Mario Rossi",
                "firstname": "Mario",
                "language": "it",
                "whatsapp_phone": "393331112233"
            }
        }
    ],
    "meta": {
        "version": "v1",
        "last_log_id": 39967,
        "next_after_log_id": 39967
    }
}

GET /company/repairs/intervention-feed — Intervention requests

Returns the repairs in a status with the "Intervention request" function, with the last intervention added by the operator (last_intervention) and the customer's name, language and WhatsApp number. Used to ask the customer to approve the intervention.

Based on the repair change log (status changes and added or edited interventions): the order in which the operator changes the status and adds the intervention does not matter. Delivered repairs, repairs without interventions visible to the customer and repairs the customer has already replied to are excluded. Without after_log_id the response only contains meta.last_log_id; for the next call use meta.next_after_log_id.

  • URL: https://fixh.it/api/v1/company/repairs/intervention-feed
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • after_log_id (integer): Id of the last status change already processed (meta.next_after_log_id of the previous call). — 39950
  • limit (integer): Maximum number of repairs to read (1-100, default 50). — 50

Response example (200)

{
    "data": [
        {
            "id": 292005,
            "repair_number": "XL3Y9P",
            "device": "Apple iPhone 15 Pro",
            "device_type": "SMARTPHONE",
            "device_color": "Nero",
            "damage": "Display rotto",
            "status": {
                "id": 7,
                "name": "Attesa conferma cliente",
                "function": "intervention_request"
            },
            "is_ready": false,
            "is_delivered": false,
            "price_with_vat": 189,
            "initial_quotation_with_vat": 180,
            "amount_paid": 50,
            "balance_due": 139,
            "paid": false,
            "promise_date": "2026-10-02T18:00:00+02:00",
            "urgent": false,
            "warranty": 90,
            "created_at": "2026-09-26T10:15:00+02:00",
            "delivered_date": null,
            "shop": {
                "id": 1,
                "name": "Fixh Lab Roma",
                "address": "Via Roma 1 00100 Roma (RM)",
                "phone": "0612345678",
                "email": "roma@example.com"
            },
            "public_url": "https://fixh.it/r/XL3Y9P",
            "customer": {
                "id": 1486,
                "name": "Mario Rossi",
                "firstname": "Mario",
                "language": "it",
                "whatsapp_phone": "393331112233"
            },
            "last_intervention": {
                "id": 88123,
                "product": "Sostituzione batteria",
                "price_with_vat": 59
            }
        }
    ],
    "meta": {
        "version": "v1",
        "last_log_id": 39967,
        "next_after_log_id": 39967
    }
}

POST /company/repairs/{id}/intervention-reply — Customer reply to the intervention

Records the reply the customer gave (for example on WhatsApp) to the intervention requested by the technicians, like the "Reply" button on the public repair page: the reply is saved on the intervention, added to the change log and staff are notified.

The repair must belong to the customer with the given number (otherwise 404) and be in a status with the "Intervention request" function with no reply yet (otherwise 409 REPLY_NOT_ALLOWED). intervention_id is pending_intervention.id returned by lookup: if the operator has added another intervention in the meantime the response is 409 INTERVENTION_CHANGED with the new intervention in data.

  • URL: https://fixh.it/api/v1/company/repairs/{id}/intervention-reply
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 409: Conflict: the operation isn't possible in the current state (e.g. license already used).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Repair ID (id returned by lookup). — 292005

Query parameters (in the URL)

  • phone (text, required): Customer number in international format (e.g. 393331234567). Without a prefix, the company's country prefix is used. — 393331112233

Request body (JSON)

  • intervention_id (integer, required): ID of the intervention the customer is replying to (pending_intervention.id from lookup). — 88123
  • reply (text, required): Customer reply, as it should be passed on to the technicians. — Va bene, procedete con la sostituzione della batteria a 59 euro.

Response example (200)

{
    "data": {
        "repair_id": 292005,
        "intervention_id": 88123,
        "customer_reply": "Va bene, procedete con la sostituzione della batteria a 59 euro."
    },
    "meta": {
        "version": "v1"
    }
}

GET /company/repair-prices — Repair prices from the warehouse

Searches the warehouse spare parts matching the given model and part and returns, for each shop, the repair price for private customers (VAT included) and availability. Designed for automatic quotes, for example from a WhatsApp bot.

The model is matched as a whole word in the spare part name (A26 does not match A2602); common synonyms are recognised for the part (display, lcd, oled, screen...). The price is the private repair price list of the spare part; parts without this price are excluded. At most 10 results. quality (original, compatible, unknown) and technology (soft_oled, hard_oled, oled, lcd or null) are inferred from the spare part name: SERVICE PACK or ORIGINALE mean original. Parts for variants that were not requested are excluded (iPhone 15 Pro does not match 15 Pro Max) and short Samsung codes also match the full ones (A13 matches A135).

  • URL: https://fixh.it/api/v1/company/repair-prices
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • model (text, required): Device model without the brand, e.g. A26 or iPhone 13 Pro. — A26
  • part (text): Part to replace, e.g. display, battery, charging connector. — display
  • shop_id (integer): Restrict the search to one shop (id from GET /company/shops).

Response example (200)

{
    "data": [
        {
            "id": 22556,
            "name": "Display LCD Samsung A26 5G nero con frame (service pack)",
            "quality": "original",
            "technology": null,
            "shops": [
                {
                    "shop_id": 1,
                    "shop_name": "Fixh Lab Roma",
                    "repair_price_with_vat": 110.5,
                    "in_stock": true
                }
            ]
        }
    ],
    "meta": {
        "version": "v1"
    }
}

GET /company/products/search — Products for sale

Searches the warehouse products that have a selling price (POS price list) and returns name, category, price and availability per shop. Designed for automated assistants such as a WhatsApp bot.

Exact EAN or SKU, or every word in the name: words with digits match at the start of a word (305 finds 305XL but not 3050) and common accessory synonyms are recognised (charger, adapter, power supply...). Availability is yes/no only: never quantities, costs or suppliers. At most 8 results, available ones first.

  • URL: https://fixh.it/api/v1/company/products/search
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • q (text, required): Words to search in the product name, or exact EAN or SKU. — hp 305
  • shop_id (integer): Restrict the search to one shop (id from GET /company/shops).

Response example (200)

{
    "data": [
        {
            "id": 21541,
            "name": "HP 305 nero 3YM61AE cartuccia originale",
            "category": "Toner / Cartucce",
            "in_stock": true,
            "shops": [
                {
                    "shop_id": 1,
                    "shop_name": "Fixh Lab Roma",
                    "price_with_vat": 18.9,
                    "in_stock": true
                }
            ]
        }
    ],
    "meta": {
        "version": "v1"
    }
}

GET /company/customer-warranties — Customer warranties

Returns the warranties of the customer with that phone number: delivered repairs, sold devices and warranty extensions, with the expiry date already calculated.

For repairs the expiry is the delivery day plus the warranty months; for sold devices the end of any extension applies. Active warranties and those expired less than 12 months ago are listed (active first, at most 15), never voided ones. The number is matched as in lookup. Never IMEI, serial number, prices or notes. meta.today is today's date in the company time zone.

  • URL: https://fixh.it/api/v1/company/customer-warranties
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • phone (text, required): Customer number in international format (e.g. 393331234567). Without a prefix, the company's country prefix is used. — 393331112233

Response example (200)

{
    "data": [
        {
            "type": "repair",
            "reference": "R-2026-0412",
            "device": "Apple iPhone 13",
            "description": "Display rotto",
            "start_date": "2026-08-02",
            "warranty_months": 3,
            "base_warranty_until": null,
            "extension_months": null,
            "shop": {
                "name": "Fixh Lab Roma",
                "address": "Via Roma 1 00100 Roma (RM)",
                "phone": "0612345678"
            },
            "warranty_until": "2026-11-02",
            "active": true,
            "days_left": 15
        },
        {
            "type": "device_sale",
            "reference": "58",
            "device": "iPhone 15 128 GB Nero",
            "description": null,
            "start_date": "2026-03-10",
            "warranty_months": 12,
            "base_warranty_until": "2027-03-10",
            "extension_months": 12,
            "shop": {
                "name": "Fixh Lab Roma",
                "address": "Via Roma 1 00100 Roma (RM)",
                "phone": "0612345678"
            },
            "warranty_until": "2028-03-10",
            "active": true,
            "days_left": 509
        }
    ],
    "meta": {
        "version": "v1",
        "today": "2026-10-18",
        "customer_found": true
    }
}

GET /company/repairs/{id} — Repair details

Returns all the data of a repair given its id. If the repair doesn't exist or belongs to another company it returns 404.

  • URL: https://fixh.it/api/v1/company/repairs/{id}
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Repair id (the id field, not the repair_number). — 292005

Response example (200)

{
    "data": {
        "id": 292005,
        "repair_number": "XL3Y9P",
        "shop_id": 1,
        "customer_id": 1486,
        "technician_id": null,
        "device_id": 14824,
        "device_type": 21,
        "repair_type": "hardware",
        "device_pin": "",
        "device_color": "Nero",
        "serial_number": "R58N12ABCDE",
        "imei_number": "356938035643809",
        "damage": "Display rotto",
        "conditions": "Segni di usura",
        "accessories": "Cover",
        "internal_notes": "",
        "repair_status": 2,
        "promise_date": "2026-10-02 18:00:00",
        "initial_pay_no_vat": 0,
        "initial_pay_with_vat": 0,
        "quotation_no_vat": 81.97,
        "quotation_with_vat": 100,
        "paid": false,
        "total_paid": 0,
        "delivered": false,
        "delivered_date": null,
        "warranty": 90,
        "urgent": false,
        "archived_at": null,
        "created_at": "2026-09-26T10:15:00+02:00",
        "updated_at": "2026-09-26T10:15:00+02:00"
    },
    "meta": {
        "version": "v1"
    }
}

POST /company/repairs — Create repair

Creates a new repair in the given shop. The repair number is generated automatically and the repair appears in the lab right away.

shop_id, customer_id (customer), device_id (brand and model) and damage (fault) are required. Without repair_status the company's initial status is used; without repair_type hardware is used. Amounts must be sent excluding VAT: the total including VAT is calculated automatically. The operation is recorded in the repair log as performed via API.

  • URL: https://fixh.it/api/v1/company/repairs
  • Company key
  • Response 201 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Request body (JSON)

  • shop_id (integer, required): Shop in which to create the repair (id from GET /company/shops). — 1
  • customer_id (integer, required): Customer to link to the repair (id from GET /customers or POST /customers). — 1
  • technician_id (integer): Id of the technician user assigned to the repair.
  • device_id (integer, required): PC identifier: hex sha256 (64 characters) computed by the app. — 1
  • device_type (integer): Id of the device type (smartphone, tablet, notebook...).
  • repair_type (text): Type of work: hardware, software, service or mentenance (maintenance). (hardware, software, service, mentenance) — hardware
  • device_pin (text): PIN or unlock code left by the customer.
  • device_color (text): Device color. — Nero
  • serial_number (text): Device serial number. — R58N12ABCDE
  • imei_number (text): IMEI code (maximum 15 characters). — 356938035643809
  • damage (text, required): Description of the fault reported by the customer. — Display rotto
  • conditions (text): Cosmetic condition of the device at check-in. — Segni di usura
  • accessories (text): Accessories handed over with the device. — Cover
  • internal_notes (text): Internal notes, not visible to the customer.
  • repair_status (integer): Initial status (id from GET /company/repair-statuses). If omitted, the company's initial status is used.
  • promise_date (date): Expected delivery date (YYYY-MM-DD). — 2026-10-02
  • initial_pay_no_vat (decimal): Deposit paid by the customer, excluding VAT. — 0
  • quotation_no_vat (decimal): Quote amount, excluding VAT. — 81.97
  • warranty (integer): Warranty days on the repair. — 90
  • urgent (boolean): true to mark the repair as urgent. — false

Response example (201)

{
    "data": {
        "id": 292005,
        "repair_number": "XL3Y9P",
        "shop_id": 1,
        "customer_id": 1486,
        "technician_id": null,
        "device_id": 14824,
        "device_type": 21,
        "repair_type": "hardware",
        "device_pin": "",
        "device_color": "Nero",
        "serial_number": "R58N12ABCDE",
        "imei_number": "356938035643809",
        "damage": "Display rotto",
        "conditions": "Segni di usura",
        "accessories": "Cover",
        "internal_notes": "",
        "repair_status": 2,
        "promise_date": "2026-10-02 18:00:00",
        "initial_pay_no_vat": 0,
        "initial_pay_with_vat": 0,
        "quotation_no_vat": 81.97,
        "quotation_with_vat": 100,
        "paid": false,
        "total_paid": 0,
        "delivered": false,
        "delivered_date": null,
        "warranty": 90,
        "urgent": false,
        "archived_at": null,
        "created_at": "2026-09-26T10:15:00+02:00",
        "updated_at": "2026-09-26T10:15:00+02:00"
    },
    "meta": {
        "version": "v1"
    }
}

PATCH /company/repairs/{id} — Update repair

Changes an existing repair. Send only the fields to change: the ones not included stay the same.

With delivered = true the delivery date is saved too. Setting paid = true does not create a POS payment: it only records the payment status. Every change is recorded in the repair log.

  • URL: https://fixh.it/api/v1/company/repairs/{id}
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Repair id (the id field, not the repair_number). — 292005

Request body (JSON)

  • repair_status (integer): New repair status (id from GET /company/repair-statuses). — 4
  • technician_id (integer): Id of the technician user assigned to the repair.
  • damage (text): Description of the fault reported by the customer.
  • conditions (text): Cosmetic condition of the device at check-in.
  • internal_notes (text): Internal notes, not visible to the customer.
  • promise_date (date): Expected delivery date (YYYY-MM-DD).
  • initial_pay_no_vat (decimal): Deposit paid by the customer, excluding VAT.
  • quotation_no_vat (decimal): Quote amount, excluding VAT.
  • paid (boolean): true if the repair has been paid.
  • total_paid (decimal): Total amount collected.
  • delivered (boolean): true when the device is returned to the customer (also saves the delivery date).
  • warranty (integer): Warranty days on the repair.
  • urgent (boolean): true to mark the repair as urgent.

Response example (200)

{
    "data": {
        "id": 292005,
        "repair_number": "XL3Y9P",
        "shop_id": 1,
        "customer_id": 1486,
        "technician_id": null,
        "device_id": 14824,
        "device_type": 21,
        "repair_type": "hardware",
        "device_pin": "",
        "device_color": "Nero",
        "serial_number": "R58N12ABCDE",
        "imei_number": "356938035643809",
        "damage": "Display rotto",
        "conditions": "Segni di usura",
        "accessories": "Cover",
        "internal_notes": "",
        "repair_status": 4,
        "promise_date": "2026-10-02 18:00:00",
        "initial_pay_no_vat": 0,
        "initial_pay_with_vat": 0,
        "quotation_no_vat": 81.97,
        "quotation_with_vat": 100,
        "paid": false,
        "total_paid": 0,
        "delivered": false,
        "delivered_date": null,
        "warranty": 90,
        "urgent": false,
        "archived_at": null,
        "created_at": "2026-09-26T10:15:00+02:00",
        "updated_at": "2026-09-26T10:15:00+02:00"
    },
    "meta": {
        "version": "v1"
    }
}

Customers (Company key)

Search, details, creation and update of the customers in the company's records.

GET /customers — Customer list

Returns the company's customers, newest first, with free search on name, company name, phone and email.

  • URL: https://fixh.it/api/v1/customers
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • page (integer): Page number, starting from 1. — 1
  • per_page (integer): Results per page, from 1 to 100. Default: 20. — 10
  • q (text): Free search on first name, last name, company name, phone and email.

Response example (200)

{
    "data": [
        {
            "id": 223216,
            "company_id": 1,
            "firstname": "Mario",
            "lastname": "Rossi",
            "business_name": "",
            "display_name": "Mario Rossi",
            "birth_date": null,
            "phone": "3331112233",
            "phone_prefix": "+39",
            "email": "mario.rossi@example.com",
            "fidelity_card": "",
            "vat_number": "",
            "fiscal_code": "",
            "certified_email": "",
            "certified_code": "",
            "address_line1": "Via Roma 1",
            "zip_code": "00100",
            "city": "Roma",
            "province": "RM",
            "country": "IT",
            "privacy_accepted": true,
            "marketing_accepted": false,
            "marketing_partners_accepted": false,
            "created_at": "2026-09-26T10:15:00+02:00",
            "updated_at": "2026-09-26T10:15:00+02:00"
        }
    ],
    "meta": {
        "version": "v1",
        "pagination": {
            "page": 1,
            "per_page": 10,
            "total": 1
        }
    }
}

GET /customers/{id} — Customer details

Returns a customer's full record, including tax data, address and privacy consents.

  • URL: https://fixh.it/api/v1/customers/{id}
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Customer id. — 223216

Response example (200)

{
    "data": {
        "id": 223216,
        "company_id": 1,
        "firstname": "Mario",
        "lastname": "Rossi",
        "business_name": "",
        "display_name": "Mario Rossi",
        "birth_date": null,
        "phone": "3331112233",
        "phone_prefix": "+39",
        "email": "mario.rossi@example.com",
        "fidelity_card": "",
        "vat_number": "",
        "fiscal_code": "",
        "certified_email": "",
        "certified_code": "",
        "address_line1": "Via Roma 1",
        "zip_code": "00100",
        "city": "Roma",
        "province": "RM",
        "country": "IT",
        "privacy_accepted": true,
        "marketing_accepted": false,
        "marketing_partners_accepted": false,
        "created_at": "2026-09-26T10:15:00+02:00",
        "updated_at": "2026-09-26T10:15:00+02:00"
    },
    "meta": {
        "version": "v1"
    }
}

POST /customers — Create customer

Adds a new customer to the company's records and returns its id.

At least one of firstname, lastname and business_name is required. Email and loyalty card must be unique within the company: a value already in use returns an error. The phone number (phone) is also unique within the company, whatever format it is written in: if the phone or email already belongs to another customer the response is 409 CUSTOMER_ALREADY_EXISTS, with the conflicting field (field) and the existing customer (existing).

  • URL: https://fixh.it/api/v1/customers
  • Company key
  • Response 201 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 409: Conflict: the operation isn't possible in the current state (e.g. license already used).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Request body (JSON)

  • firstname (text): First name. At least one of firstname, lastname and business_name is required. — Mario
  • lastname (text): Last name. — Rossi
  • business_name (text): Company name, for business customers.
  • birth_date (date): Date of birth (YYYY-MM-DD). — 1985-04-21
  • phone (text): Phone number, without the international prefix. — 3331112233
  • phone_prefix (text): International prefix (e.g. +39). — +39
  • email (email): Email address, unique within the company. — mario.rossi@example.com
  • fidelity_card (text): Loyalty card code, unique within the company.
  • privacy_accepted (boolean): Consent to the processing of personal data. — true
  • marketing_accepted (boolean): Consent to marketing communications. — false
  • marketing_partners_accepted (boolean): Consent to marketing communications from partners. — false

Response example (201)

{
    "data": {
        "id": 223217
    },
    "meta": {
        "version": "v1"
    }
}

PUT /customers/{id} — Update customer

Updates an existing customer's record.

Warning: PUT replaces the customer's details. The firstname, lastname, business_name, phone, email and fidelity_card fields that are not sent are cleared: always send all values, starting from those read with GET /customers/{id}. Birth date, prefix and consents change only if present. The phone number (phone) is also unique within the company, whatever format it is written in: if the phone or email already belongs to another customer the response is 409 CUSTOMER_ALREADY_EXISTS, with the conflicting field (field) and the existing customer (existing).

  • URL: https://fixh.it/api/v1/customers/{id}
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 409: Conflict: the operation isn't possible in the current state (e.g. license already used).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Customer id. — 223216

Request body (JSON)

  • firstname (text): First name. — Mario
  • lastname (text): Last name. — Rossi
  • business_name (text): Company name, for business customers.
  • birth_date (date): Date of birth (YYYY-MM-DD). — 1985-04-21
  • phone (text): Phone number, without the international prefix. — 3331112233
  • phone_prefix (text): International prefix (e.g. +39). — +39
  • email (email): Email address, unique within the company. — mario.rossi@example.com
  • fidelity_card (text): Loyalty card code, unique within the company.
  • privacy_accepted (boolean): Consent to the processing of personal data. — true
  • marketing_accepted (boolean): Consent to marketing communications. — false
  • marketing_partners_accepted (boolean): Consent to marketing communications from partners. — false

Response example (200)

{
    "data": {
        "id": 223216,
        "updated": true
    },
    "meta": {
        "version": "v1"
    }
}

Calendar (Company key)

Busy shop slots, appointment booking with availability check, listing and cancelling a customer's appointments. Requires a plan that includes the calendar.

GET /company/calendar/busy — Busy calendar slots

Returns start and end of a shop's appointments in the given period, to compute free slots. Never returns names, phones or reasons.

Times are in the shop's local time, format YYYY-MM-DDTHH:mm without time zone. Requires the calendar feature in the company plan.

  • URL: https://fixh.it/api/v1/company/calendar/busy
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 404: Resource not found or belonging to another company.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • shop_id (integer, required): Shop in which to create the repair (id from GET /company/shops). — 1
  • from (date, required): First day of the period (YYYY-MM-DD). — 2026-10-20
  • to (date, required): Last day of the period (YYYY-MM-DD). — 2026-10-27

Response example (200)

{
    "data": [
        {
            "start": "2026-10-20T16:00",
            "end": "2026-10-20T16:30"
        }
    ],
    "meta": {
        "version": "v1"
    }
}

POST /company/calendar/appointments — Create an appointment

Adds an appointment to a shop calendar, if the slot still has room.

start and end in the shop's local time (YYYY-MM-DDTHH:mm). If the slot already has max_concurrent appointments (default 1) it answers 409 SLOT_TAKEN. The appointment is created on behalf of the user who generated the API key and is recorded in the calendar log.

  • URL: https://fixh.it/api/v1/company/calendar/appointments
  • Company key
  • Response 201 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 404: Resource not found or belonging to another company.
  • 409: Conflict: the operation isn't possible in the current state (e.g. license already used).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Request body (JSON)

  • shop_id (integer, required): Shop in which to create the repair (id from GET /company/shops). — 1
  • customer_name (text, required): Customer name. — Mario Rossi
  • phone (text, required): Customer phone. — 393331112233
  • start (text, required): Start, shop local time (YYYY-MM-DDTHH:mm). — 2026-10-20T16:00
  • end (text, required): End, shop local time (YYYY-MM-DDTHH:mm). — 2026-10-20T16:30
  • description (text): Reason for the appointment. — Consegna Samsung A13 per cambio display
  • customer_id (integer): Customer id in the customer list (optional).
  • max_concurrent (integer): Appointments allowed in the same slot (default 1). — 1

Response example (201)

{
    "data": {
        "id": 330,
        "shop_id": 1,
        "start": "2026-10-20T16:00",
        "end": "2026-10-20T16:30"
    },
    "meta": {
        "version": "v1"
    }
}

GET /company/calendar/customer-appointments — Upcoming appointments of a customer

Returns the appointments not yet passed whose phone matches the given number, so the customer can cancel them.

The number is matched as in lookup (also without the international prefix). Only day, time and shop are returned: never the description, which may contain staff notes. Times in the shop local time.

  • URL: https://fixh.it/api/v1/company/calendar/customer-appointments
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • phone (text, required): Customer number in international format (e.g. 393331234567). Without a prefix, the company's country prefix is used. — 393331112233

Response example (200)

{
    "data": [
        {
            "id": 330,
            "shop_id": 1,
            "shop_name": "Fixh Lab Roma",
            "start": "2026-10-20T16:00",
            "end": "2026-10-20T16:30"
        }
    ],
    "meta": {
        "version": "v1"
    }
}

DELETE /company/calendar/customer-appointments/{id} — Cancel a customer appointment

Cancels an upcoming appointment, only if it belongs to the given phone number.

Returns 404 if the appointment does not exist, has already passed or been cancelled, or the phone does not match. The cancellation is recorded in the calendar log as made by the user who generated the API key.

  • URL: https://fixh.it/api/v1/company/calendar/customer-appointments/{id}
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 404: Resource not found or belonging to another company.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Appointment ID, as returned by the list of the customer's appointments. — 330

Query parameters (in the URL)

  • phone (text, required): Customer number in international format (e.g. 393331234567). Without a prefix, the company's country prefix is used. — 393331112233

Response example (200)

{
    "data": {
        "id": 330,
        "start": "2026-10-20T16:00"
    },
    "meta": {
        "version": "v1"
    }
}

Sales (POS) (Company key)

Receipts issued at the till, sold lines and reports aggregated by day, month, shop or product. Read only.

GET /company/sales — List sales

Returns the company's receipts, newest first, with sold lines and payments, filterable by period, shop, customer and status.

Dates are days in the company's time zone (meta.timezone) and created_at is ISO 8601 in the same time zone. A cancelled receipt has status CANCELLED and its reversal is a STORNO receipt with negative amounts (storno_of_id points to the original).

  • URL: https://fixh.it/api/v1/company/sales
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • page (integer): Page number, starting from 1. — 1
  • per_page (integer): Results per page, from 1 to 500. Default: 25. — 25
  • date_from (date): First day of the period (YYYY-MM-DD), in the company's time zone. — 2026-09-01
  • date_to (date): Last day of the period (YYYY-MM-DD), inclusive. — 2026-09-30
  • shop_id (integer): Show only sales of this shop (id from GET /company/shops).
  • customer_id (integer): Show only sales of this customer (id from GET /customers).
  • status (text): Receipt status: PAID (valid), CANCELLED (cancelled) or STORNO (reversal document). (PAID, CANCELLED, STORNO)
  • include_items (boolean): With false the sold lines of each receipt are omitted. Default: true. — true

Response example (200)

{
    "data": [
        {
            "id": 82163,
            "shop_id": 1,
            "user_id": 123,
            "customer_id": 1486,
            "receipt_number": "ssced-ucykos-92jviu",
            "document_number": null,
            "receipt_type": "RCH",
            "status": "PAID",
            "storno_of_id": null,
            "cancelled_at": null,
            "payment_method": "card",
            "total_no_vat": 16.39,
            "total_with_vat": 20,
            "pay_cash": 0,
            "pay_card": 20,
            "pay_other": 0,
            "not_collected": 0,
            "fidelity_discount": 0,
            "voucher_code": null,
            "voucher_discount": 0,
            "created_at": "2026-09-26T15:18:22+02:00",
            "items": [
                {
                    "id": 100247,
                    "type": "sale",
                    "product_id": 5512,
                    "repair_id": null,
                    "ean": "8806097425625",
                    "name": "Cover iPhone 17 Pro",
                    "qty": 1,
                    "unit_price_no_vat": 16.39,
                    "unit_price_with_vat": 20,
                    "vat_rate": 22,
                    "discount_percent": 0,
                    "total_no_vat": 16.39,
                    "total_with_vat": 20,
                    "unit_cost_no_vat": 4.5,
                    "unit_cost_with_vat": 5.49,
                    "department": 1
                }
            ]
        }
    ],
    "meta": {
        "version": "v1",
        "page": 1,
        "per_page": 25,
        "total": 1,
        "timezone": "Europe/Rome"
    }
}

GET /company/sales/{id} — Sale details

Returns a single receipt with all its sold lines.

  • URL: https://fixh.it/api/v1/company/sales/{id}
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): Receipt id (id field returned by GET /company/sales). — 82163

Response example (200)

{
    "data": {
        "id": 82163,
        "shop_id": 1,
        "user_id": 123,
        "customer_id": 1486,
        "receipt_number": "ssced-ucykos-92jviu",
        "document_number": null,
        "receipt_type": "RCH",
        "status": "PAID",
        "storno_of_id": null,
        "cancelled_at": null,
        "payment_method": "card",
        "total_no_vat": 16.39,
        "total_with_vat": 20,
        "pay_cash": 0,
        "pay_card": 20,
        "pay_other": 0,
        "not_collected": 0,
        "fidelity_discount": 0,
        "voucher_code": null,
        "voucher_discount": 0,
        "created_at": "2026-09-26T15:18:22+02:00",
        "items": [
            {
                "id": 100247,
                "type": "sale",
                "product_id": 5512,
                "repair_id": null,
                "ean": "8806097425625",
                "name": "Cover iPhone 17 Pro",
                "qty": 1,
                "unit_price_no_vat": 16.39,
                "unit_price_with_vat": 20,
                "vat_rate": 22,
                "discount_percent": 0,
                "total_no_vat": 16.39,
                "total_with_vat": 20,
                "unit_cost_no_vat": 4.5,
                "unit_cost_with_vat": 5.49,
                "department": 1
            }
        ]
    },
    "meta": {
        "version": "v1",
        "timezone": "Europe/Rome"
    }
}

GET /company/sales/items — Sold lines

Returns the individual sold lines (products, repairs and free items) with date, shop and parent receipt, useful for per-product reports.

Lines of cancelled receipts are excluded. The type field is sale (product), repair (repair) or other (free item); unit_cost_* is the purchase cost recorded at the time of sale.

  • URL: https://fixh.it/api/v1/company/sales/items
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • page (integer): Page number, starting from 1. — 1
  • per_page (integer): Results per page, from 1 to 500. Default: 100. — 100
  • date_from (date): First day of the period (YYYY-MM-DD), in the company's time zone. — 2026-09-01
  • date_to (date): Last day of the period (YYYY-MM-DD), inclusive. — 2026-09-30
  • shop_id (integer): Show only sales of this shop (id from GET /company/shops).
  • product_id (integer): Show only the lines of this product.
  • type (text): Line type: sale (product), repair (repair) or other (free item). (sale, repair, other)

Response example (200)

{
    "data": [
        {
            "sale_id": 82163,
            "shop_id": 1,
            "customer_id": 1486,
            "receipt_number": "ssced-ucykos-92jviu",
            "sold_at": "2026-09-26T15:18:22+02:00",
            "id": 100247,
            "type": "sale",
            "product_id": 5512,
            "repair_id": null,
            "ean": "8806097425625",
            "name": "Cover iPhone 17 Pro",
            "qty": 1,
            "unit_price_no_vat": 16.39,
            "unit_price_with_vat": 20,
            "vat_rate": 22,
            "discount_percent": 0,
            "total_no_vat": 16.39,
            "total_with_vat": 20,
            "unit_cost_no_vat": 4.5,
            "unit_cost_with_vat": 5.49,
            "department": 1
        }
    ],
    "meta": {
        "version": "v1",
        "page": 1,
        "per_page": 100,
        "total": 1,
        "timezone": "Europe/Rome"
    }
}

GET /company/sales/summary — Sales report

Returns the sales totals for a period grouped by day, month, shop, receipt type or product, split between cash, card and other methods.

Cancelled receipts and their reversals are excluded from totals and counts. With group_by=product the amounts are the sum of the lines (without fidelity or voucher discounts applied to the receipt), include cost and margin, and totals is null. The maximum period is 3 years.

  • URL: https://fixh.it/api/v1/company/sales/summary
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • date_from (date, required): First day of the period (YYYY-MM-DD), in the company's time zone. — 2026-09-01
  • date_to (date, required): Last day of the period (YYYY-MM-DD), inclusive. At most 3 years after date_from. — 2026-09-30
  • group_by (text): Grouping: day (default), month, shop, receipt_type or product. (day, month, shop, receipt_type, product) — day
  • shop_id (integer): Show only sales of this shop (id from GET /company/shops).
  • type (text): Only with group_by=product: consider only lines of this type (sale, repair, other). (sale, repair, other)
  • limit (integer): Only with group_by=product: maximum number of products, best-selling first. From 1 to 1000, default 100. — 100

Response example (200)

{
    "data": [
        {
            "date": "2026-09-01",
            "receipts_count": 47,
            "total_no_vat": 5269.49,
            "total_with_vat": 6428.78,
            "pay_cash": 693.02,
            "pay_card": 5735.76,
            "pay_other": 0,
            "not_collected": 0,
            "discounts": 0
        }
    ],
    "totals": {
        "receipts_count": 47,
        "total_no_vat": 5269.49,
        "total_with_vat": 6428.78,
        "pay_cash": 693.02,
        "pay_card": 5735.76,
        "pay_other": 0,
        "not_collected": 0,
        "discounts": 0
    },
    "meta": {
        "version": "v1",
        "group_by": "day",
        "date_from": "2026-09-01",
        "date_to": "2026-09-30",
        "timezone": "Europe/Rome"
    }
}

Fixh Assistant (Company key)

Activation of the Fixh Assistant desktop app on the company PCs, licence check and updates. Requires the Fixh Assistant module.

POST /assistant/activate — Activate a PC

Registers the PC where the app is installed if the company still has free seats in the Fixh Assistant module. An already active PC is only updated.

device_id is the sha256 (64 hex characters) of the PC identifier computed by the app. 403 errors: ASSISTANT_NOT_LICENSED if the module is not active, ASSISTANT_SEATS_EXHAUSTED if all seats are taken. A PC unlinked from the management software can be activated again only if a seat is free.

  • URL: https://fixh.it/api/v1/assistant/activate
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Request body (JSON)

  • device_id (text, required): PC identifier: hex sha256 (64 characters) computed by the app. — 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
  • device_name (text): PC name shown in the management software. — PC-CASSA
  • app_version (text): Installed app version. — 0.2.0

Response example (200)

{
    "data": {
        "licensed": true,
        "seats": 2,
        "used": 1,
        "expires_at": "2027-10-17",
        "language": "it"
    },
    "meta": {
        "version": "v1"
    }
}

GET /assistant/license — Check the licence

Checks that the PC is still active and licensed and updates its last connection. The app calls it at start-up and periodically.

The identifier can also be sent in the X-Device-Id header (and the version in X-App-Version). If the purchased seats decrease, the PCs activated first stay licensed. 403 error ASSISTANT_DEVICE_NOT_ACTIVE if the PC was unlinked or is beyond the seats.

  • URL: https://fixh.it/api/v1/assistant/license
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • device_id (text, required): PC identifier: hex sha256 (64 characters) computed by the app. — 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

Response example (200)

{
    "data": {
        "licensed": true,
        "seats": 2,
        "used": 1,
        "expires_at": "2027-10-17",
        "language": "it"
    },
    "meta": {
        "version": "v1"
    }
}

POST /assistant/claim — Message claim

When several PCs are linked to the same WhatsApp number they all receive the same messages: before replying or sending a notification the app claims the message and only the winning PC replies.

won is true for the first PC that claims the key (also when it repeats the request), false for the others, with device_name of the PC that replies. Claims are deleted after 7 days.

  • URL: https://fixh.it/api/v1/assistant/claim
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.
  • 503: Service temporarily unavailable

Request body (JSON)

  • claim_key (text, required): Hex sha256 computed by the app (chat and message, or repair to notify): the same on every PC. — 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
  • device_id (text, required): PC identifier: hex sha256 (64 characters) computed by the app. — 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

Response example (200)

{
    "data": {
        "won": false,
        "device_name": "PC-BANCONE"
    },
    "meta": {
        "version": "v1"
    }
}

POST /assistant/ai/generate — Fixh AI reply

A Fixh AI call for the Fixh Assistant app, using the platform keys. Each reply (reply_id) costs the credits set by the owner, only once even when several calls are needed (warehouse searches). Returns the model content as is.

contents and tools use the Gemini generateContent format (tools with functionDeclarations). Errors: 402 ASSISTANT_NO_CREDITS if credits are not enough, 429 ASSISTANT_REPLY_CALL_LIMIT beyond the calls allowed for one reply, 503 ASSISTANT_AI_BUSY or ASSISTANT_AI_ERROR if the service does not answer (no charge). Credits are deducted once an hour in a single movement.

  • URL: https://fixh.it/api/v1/assistant/ai/generate
  • Company key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 402: Not enough credits
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.
  • 503: Service temporarily unavailable

Request body (JSON)

  • reply_id (text, required): Unique reply identifier generated by the app: further calls with the same value are not charged again. — 6f1c2a90-1d1e-4a4b-9a55-0c2d8f7b1e11
  • device_id (text, required): PC identifier: hex sha256 (64 characters) computed by the app. — 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
  • system_instruction (text, required): System instructions for the model. — You are the WhatsApp assistant of a repair shop.
  • contents (text, required): Conversation in Gemini format (JSON array of turns with role and parts). — [{"role":"user","parts":[{"text":"Avete la cartuccia HP 305?"}]}]
  • tools (text): Tools in Gemini format (JSON array with functionDeclarations).

Response example (200)

{
    "data": {
        "content": {
            "role": "model",
            "parts": [
                {
                    "text": "Sì, la cartuccia HP 305 nera originale è disponibile in negozio a 18,90 €."
                }
            ]
        },
        "finish_reason": "STOP",
        "model": "gemini-3-flash-preview",
        "credits_per_reply": 2,
        "credits_available": 948
    },
    "meta": {
        "version": "v1"
    }
}

GET /assistant/updates/{file} — Download an update

Automatic update feed of the app (latest.yml, installer and blockmap). Licensed PCs only: redirects to the file of the latest version.

Used by electron-updater: the key can be sent in the Authorization: ApiKey <key> header, which is not forwarded to the file server after the redirect.

  • URL: https://fixh.it/api/v1/assistant/updates/{file}
  • Company key
  • Response 302 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 403: Operation not allowed (e.g. the plan's key limit has been reached).
  • 404: Resource not found or belonging to another company.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • file (text, required): File name: latest.yml, latest-mac.yml, the .exe/.dmg/.zip installer or its .blockmap. — latest.yml

Query parameters (in the URL)

  • device_id (text, required): PC identifier: hex sha256 (64 characters) computed by the app. — 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

Response example (302)

null

Resellers (Reseller key)

Only for Fixh IT resellers with an fhpk_rs_ key: profile, plans, licenses, invoices and payments.

GET /reseller/me — Reseller profile

Returns the data of the reseller and of the user who created the key, with discount percentage and maximum applicable discount.

  • URL: https://fixh.it/api/v1/reseller/me
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Response example (200)

{
    "data": {
        "id": 7,
        "reseller_id": 3,
        "firstname": "Luca",
        "lastname": "Bianchi",
        "email": "luca.bianchi@example.com",
        "reseller_name": "Bianchi Srl",
        "reseller_percent": 20,
        "reseller_max_discount": 10
    },
    "meta": {
        "version": "v1"
    }
}

GET /reseller/memberships — Reseller plans and prices

List of the plans you can sell with list prices (monthly, six-monthly, yearly) and the percentage reserved for the reseller.

  • URL: https://fixh.it/api/v1/reseller/memberships
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Response example (200)

{
    "data": {
        "plans": [
            {
                "id": 1,
                "name": "Individual",
                "pay_month": 9.99,
                "pay_half": 53.9,
                "pay_year": 95.9
            },
            {
                "id": 2,
                "name": "Business",
                "pay_month": 24.99,
                "pay_half": 134.9,
                "pay_year": 239.9
            }
        ],
        "reseller_percent": 20
    },
    "meta": {
        "version": "v1"
    }
}

GET /reseller/licenses — License list

Returns the license codes generated by the reseller, showing whether they have been used and by which company.

  • URL: https://fixh.it/api/v1/reseller/licenses
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Query parameters (in the URL)

  • page (integer): Page number, starting from 1. — 1
  • per_page (integer): Results per page, from 1 to 100. Default: 20. — 10

Response example (200)

{
    "data": [
        {
            "id": 120,
            "code": "FX-7K2M-9QPL",
            "membership_id": 2,
            "membership_name": "Business",
            "duration_months": 12,
            "is_used": false,
            "company_name": null,
            "used_at": null,
            "created_at": "2026-09-26T08:15:00+00:00"
        }
    ],
    "meta": {
        "version": "v1",
        "page": 1,
        "per_page": 10,
        "total": 1
    }
}

POST /reseller/licenses — Generate licenses

Generates one or more license codes for the given plan and duration. The cost is charged on the reseller's monthly invoice.

Real, paid operation: every generated code is counted on the month's invoice. duration_months accepts 1, 6 or 12; quantity from 1 to 100.

  • URL: https://fixh.it/api/v1/reseller/licenses
  • Reseller key
  • Response 201 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 422: Invalid data: fix the fields shown.
  • 429: Too many requests: wait a few seconds and try again.

Request body (JSON)

  • membership_id (integer, required): License plan (id from GET /reseller/memberships). — 2
  • duration_months (integer, required): License duration in months: 1, 6 or 12. (1, 6, 12) — 12
  • quantity (integer, required): Number of codes to generate, from 1 to 100. — 1

Response example (201)

{
    "data": {
        "codes": [
            "FX-7K2M-9QPL"
        ],
        "quantity": 1,
        "list_price": 239.9,
        "unit_price": 191.92
    },
    "meta": {
        "version": "v1"
    }
}

GET /reseller/licenses/{id} — License details

Returns a single license code with plan, duration and usage status.

  • URL: https://fixh.it/api/v1/reseller/licenses/{id}
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): License id (from GET /reseller/licenses). — 120

Response example (200)

{
    "data": {
        "id": 120,
        "code": "FX-7K2M-9QPL",
        "membership_id": 2,
        "membership_name": "Business",
        "duration_months": 12,
        "is_used": false,
        "company_name": null,
        "used_at": null,
        "created_at": "2026-09-26T08:15:00+00:00"
    },
    "meta": {
        "version": "v1"
    }
}

DELETE /reseller/licenses/{id} — Delete license

Deletes a license code that has not been used yet.

A code already activated by a company cannot be deleted: the response is 409 LICENSE_ALREADY_USED.

  • URL: https://fixh.it/api/v1/reseller/licenses/{id}
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 404: Resource not found or belonging to another company.
  • 409: Conflict: the operation isn't possible in the current state (e.g. license already used).
  • 429: Too many requests: wait a few seconds and try again.

Path parameters

  • id (integer, required): License id (from GET /reseller/licenses). — 120

Response example (200)

{
    "data": {
        "deleted": true
    },
    "meta": {
        "version": "v1"
    }
}

GET /reseller/invoices — Reseller invoices

Returns the monthly invoices issued to the reseller with amounts, licenses generated and used, and payment status.

  • URL: https://fixh.it/api/v1/reseller/invoices
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Response example (200)

{
    "data": [
        {
            "id": 14,
            "invoice_number": "R-2026-014",
            "invoice_date": "2026-09-30",
            "period_year": 2026,
            "period_month": 9,
            "amount_due": 240,
            "amount_collected": 0,
            "licenses_generated": 6,
            "licenses_used": 4,
            "status": "pending",
            "due_date": "2026-10-15",
            "paid_at": null,
            "notes": null,
            "xml_generated_at": null
        }
    ],
    "meta": {
        "version": "v1"
    }
}

GET /reseller/payments — Payment summary

Returns the summary of the last 12 months, one per month, with amount due, amount collected and status.

  • URL: https://fixh.it/api/v1/reseller/payments
  • Reseller key
  • Response 200 on success
  • 401: Key missing, wrong or revoked, or not valid for this endpoint.
  • 429: Too many requests: wait a few seconds and try again.

Response example (200)

{
    "data": [
        {
            "id": 14,
            "invoice_number": "R-2026-014",
            "invoice_date": "2026-09-30",
            "period_year": 2026,
            "period_month": 9,
            "amount_due": 240,
            "amount_collected": 0,
            "licenses_generated": 6,
            "licenses_used": 4,
            "status": "pending",
            "due_date": "2026-10-15",
            "paid_at": null,
            "notes": null,
            "xml_generated_at": null
        }
    ],
    "meta": {
        "version": "v1"
    }
}

Markdown