Skip to content

API – Receipts

Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.

A receipt status is a number:

Status Meaning
2 created
3 edited
4 rejected
5 approved
6 paid
7 comment (does not change the status)

GET /api/bills

List. Records are in data as an array, pagination is the sibling pagination, not inside data.

Parameter Type Required Description
page integer no
limit integer no
search string no
status integer no 2–6

PHP

$res = innovanet('GET', '/api/bills?page=1&limit=20&status=2');

Response 200

{
  "success": true,
  "data": [
    {
      "bill_id": 9,
      "bill_desc": "Obed s klientom",
      "bill_date": "2026-11-04",
      "bill_person": 15,
      "person_name": "Jana Nováková",
      "bill_total": 15.04,
      "bill_total_vat": 3.46,
      "bill_total_with_vat": 18.5,
      "bill_currency": "EUR",
      "bill_project": 42,
      "project_name": "Web 2026",
      "status": 2,
      "attachments_count": 1
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 20,
    "total_records": 1
  },
  "permissions": {}
}

Counts: GET /api/bills/stats returns data.waiting, approved, paid, rejected. Detail: GET /api/bills/9.

POST /api/bills

Field Type Required Description
bill_desc string yes description
bill_date date yes
bill_person integer yes who the receipt belongs to, master user id
bill_type integer yes receipt type
bill_currency_id integer yes
bill_total number yes without VAT, if you do not send vat_rows
bill_total_vat number yes VAT
bill_total_with_vat number yes with VAT
vat_rows array no when filled in, the amounts are calculated
bill_project integer no
bill_currency_rate number no

A vat_rows row has a rate and a base. When you send it, you do not have to calculate the amount fields yourself.

Request

{
  "bill_desc": "Obed s klientom",
  "bill_date": "2026-11-04",
  "bill_person": 15,
  "bill_type": 1,
  "bill_currency_id": 1,
  "bill_total": 15.04,
  "bill_total_vat": 3.46,
  "bill_total_with_vat": 18.5,
  "bill_project": 42
}

cURL

curl -sS -X POST "https://api.innovanet.com/api/bills" \
  -H "Authorization: Bearer inv_mcp_…" \
  -H "Content-Type: application/json" \
  -d "{\"bill_desc\":\"Obed s klientom\",\"bill_date\":\"2026-11-04\",\"bill_person\":15,\"bill_type\":1,\"bill_currency_id\":1,\"bill_total\":15.04,\"bill_total_vat\":3.46,\"bill_total_with_vat\":18.5}"

PHP

$res = innovanet('POST', '/api/bills', [
    'bill_desc' => 'Obed s klientom',
    'bill_date' => '2026-11-04',
    'bill_person' => 15,
    'bill_type' => 1,
    'bill_currency_id' => 1,
    'bill_total' => 15.04,
    'bill_total_vat' => 3.46,
    'bill_total_with_vat' => 18.5,
]);
$billId = $res['json']['data']['bill_id'];

Response 201

{
  "success": true,
  "data": { "bill_id": 9 }
}

POST /api/bills/{id}/status

reason_id Step comment
5 approve no
4 reject yes
6 pay no
7 comment yes
{
  "reason_id": 4,
  "comment": "Chýba účel"
}
innovanet('POST', '/api/bills/9/status', [
    'reason_id' => 5,
]);

Update: PUT /api/bills/9. A comment also goes through status 7. The table export is a file: GET /api/bills/export.

Other paths

Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.

POST /api/bills/parse-receipt

Extract receipt data from a photograph or PDF. The file field is required; supported formats are JPG, JPEG, PNG, WEBP, GIF, BMP and PDF. Success returns JSON with extracted data; a missing or invalid file returns 422.

Field Type Required
file file yes

Send the file as multipart/form-data. Bash example:

curl -sS -X POST "https://api.innovanet.com/api/bills/parse-receipt" -H "Authorization: Bearer inv_mcp_…" -H "Accept: application/json" -F "file=@receipt.pdf"

POST /api/bills/parse-ocr

Legacy alias of parse-receipt with the same required file field, supported files and rules. Use parse-receipt for new integrations.

Field Type Required
file file yes

Send the file as multipart/form-data. Bash example:

curl -sS -X POST "https://api.innovanet.com/api/bills/parse-ocr" -H "Authorization: Bearer inv_mcp_…" -H "Accept: application/json" -F "file=@receipt.pdf"

POST /api/bills/{billId}/duplicate

No body.

Response 201 – Envelope { "success": true, "data": ... }.

POST /api/bills/{billId}/comments

Body

Field Type Required
comment string no
{
  "comment": "text"
}
$res = innovanet('POST', '/api/bills/1/comments', [
    'comment' => 'text',
]);

The API reads these fields. A field is required when the table says yes.

Response 201 – Envelope { "success": true, "data": ... }.

POST /api/bills/{billId}/attachments

Adding an attachment requires permission to edit the receipt. A file is required, at most 15 MB. Success: 201, success: true and data with the attachment record; invalid file: 422.

Field Type Required
file file yes

Send the file as multipart/form-data. Bash example:

curl -sS -X POST "https://api.innovanet.com/api/bills/7/attachments" -H "Authorization: Bearer inv_mcp_…" -H "Accept: application/json" -F "file=@receipt.pdf"

GET /api/bills/attachments/{attachmentId}/download

No body.

Response 200 – Envelope { "success": true, "data": ... }.

DELETE /api/bills/attachments/{attachmentId}

403 when the user may not edit the bill (its author while it is open, or an approver).

No body.

Response 200 – Envelope { "success": true, "data": ... }.


Want to try this feature? Start your innovanet trial →