Skip to content

API – Business trips

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

Trip type: 1 domestic, 2 foreign.

GET /api/business-trips

Parameter Type Required Description
page integer no default 1
per_page integer no default 20
mine_only boolean no yours only by default. Someone else's are visible to whoever has permission
status string no
search string no
date_from, date_to date no
awaiting_me boolean no waiting for my approval
$res = innovanet('GET', '/api/business-trips?mine_only=1&page=1');

Response 200

{
  "success": true,
  "data": {
    "trips": [
      {
        "id": 3,
        "name": "Bratislava – zákazník",
        "type": 1,
        "date_from": "2026-11-10",
        "date_to": "2026-11-11",
        "currency": "EUR"
      }
    ],
    "total": 1,
    "page": 1,
    "per_page": 20
  }
}

Tiles: GET /api/business-trips/stats. Detail: GET /api/business-trips/3.

POST /api/business-trips

Field Type Required Description
name string yes at most 255
type integer yes 1 or 2
date_from date yes
date_to date yes not earlier than the start
currency string yes for example EUR
cash_advance number no advance, not negative
transfer string no transport, comma separated values: car, private_car, train, bus, ship, air, public_transport, other
peoples string no fellow travellers
budget number no planned budget in the trip currency
project_id integer no a project you have access to

Request

{
  "name": "Bratislava – zákazník",
  "type": 1,
  "date_from": "2026-11-10",
  "date_to": "2026-11-11",
  "currency": "EUR",
  "cash_advance": 100
}

cURL

curl -sS -X POST "https://api.innovanet.com/api/business-trips" \
  -H "Authorization: Bearer inv_mcp_…" \
  -H "Content-Type: application/json" \
  -d "{\"name\":\"Bratislava – zákazník\",\"type\":1,\"date_from\":\"2026-11-10\",\"date_to\":\"2026-11-11\",\"currency\":\"EUR\"}"

PHP

$res = innovanet('POST', '/api/business-trips', [
    'name' => 'Bratislava – zákazník',
    'type' => 1,
    'date_from' => '2026-11-10',
    'date_to' => '2026-11-11',
    'currency' => 'EUR',
    'cash_advance' => 100,
]);

Response 201

{ "success": true, "data": { "trip_id": 3 } }

Stops: POST /api/business-trips/3/points. Cancellation: POST /api/business-trips/3/cancel.

Other paths

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

PUT /api/business-trips/{id}

Body – all fields are optional. name, car_id, peoples and project_id can be changed while the trip is in progress. type, date_from, date_to, currency, cash_advance, transfer and budget only until the route is sent for approval; after that the API answers 422 explaining that the trip has to be returned for correction.

POST /api/business-trips/{id}/return

Body: reason (required). Returns the trip to the employee for correction – only the person the current approval or settlement step is assigned to may do it.

Receipts of a trip

GET /api/business-trips/{id}/bills – attached receipts. GET /api/business-trips/{id}/bills/available – your free receipts. POST /api/business-trips/{id}/bills with bill_id – attaches a receipt (only while the expense report is being filled in, only your own). DELETE /api/business-trips/{id}/bills/{billId} – detaches it. The receipt has a trip_id field in the response of GET /api/bills/{id}.

Expense points (POST/PUT /api/business-trips/{id}/points) have an optional currency field (three-letter code, empty = trip currency). The summary (billing_summary) is in the trip currency and contains budget (plan and actual) and warnings.

GET /api/business-trips/settings

No body.

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

PUT /api/business-trips/settings

Body

Field Type Required
accountant_id integer no
allow_cash_advance boolean no
default_country_iso string no

default_country_iso sets the home country for the meal allowance rules. If you do not set it, it follows the company country: CZ (Czech rates) for a company in Czechia, otherwise SK.

{
  "accountant_id": 1,
  "allow_cash_advance": true,
  "default_country_iso": "text"
}
$res = innovanet('PUT', '/api/business-trips/settings', [
    'accountant_id' => 1,
    'allow_cash_advance' => true,
    'default_country_iso' => 'text',
]);

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

GET /api/business-trips/currencies

No body.

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

GET /api/business-trips/countries

No body.

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

POST /api/business-trips/tasks/{taskId}/complete

Body

Field Type Required
status string no
reason string no
{
  "status": "text",
  "reason": "text"
}
$res = innovanet('POST', '/api/business-trips/tasks/1/complete', [
    'status' => 'text',
    'reason' => 'text',
]);

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

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

PUT /api/business-trips/{id}/points/{pointId}

No body.

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

DELETE /api/business-trips/{id}/points/{pointId}

No body.

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

POST /api/business-trips/{id}/points/{pointId}/meal

Body

Field Type Required
meal string no
{
  "meal": "text"
}
$res = innovanet('POST', '/api/business-trips/1/points/1/meal', [
    'meal' => 'text',
]);

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

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

GET /api/business-trips/{id}/billing-summary

No body.

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

GET /api/business-trips/{id}/changelog

No body.

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

GET /api/business-trips/{id}/attachments

No body.

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

POST /api/business-trips/{id}/attachments

No body.

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

GET /api/business-trips/{id}/attachments/download

Parameters

Field Type Required
attachment_id string no

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

Response – The response is a file, not JSON.

DELETE /api/business-trips/{id}/attachments

Parameters

Field Type Required
attachment_id string no

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

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


Want to try this feature? Start your innovanet trial →