Save car_travel

Request Information

URI Parameters :

None.

Body Parameters :

car_travel
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
user_id

Foreign key of User

globally unique identifier

Required

car_id

Foreign key of Car

globally unique identifier

Required

from_db_address_id

the FROM info are filled with the latest travel of this car

globally unique identifier
from_db_table_id

globally unique identifier
from_id_in_table

globally unique identifier
from_travel_type_code

string
from_db_address_other

string

Max length: 255

to_db_address_id

The address used on navigation

globally unique identifier
to_db_table_id

TO=> if navigate to a JOBS, to_db_table_id and to_in_table is filled with the jobs info

globally unique identifier
to_in_in_table

globally unique identifier
to_travel_type_code

Kind of travel. Can be

string

Required

to_db_address_other

string

Max length: 255

hour_type_id

Foreign key of the hour type

globally unique identifier

Required

date_from

Local date+time when the travel started

date
date_from_rounded

Date+Time travel FROM

date

Required

date_to

local date+time when the travel finished

date
date_to_rounded

Date+Time travel TO

date

Required

notes

Additional notes field

string

Max length: 4000

km

2019-04-01: Old field not use it anymore (FSA-986) the Mileage of the car after the travel,* Be aware, value should be always bigger than the last one

integer
km_before

Auto filled when a new record is added

integer
km_after

the Mileage of the car after the travel,* Be aware, value should be always bigger than the last one

integer
km_private

A value the user indicates that contains the total number of km for Private use.

integer
km_distance

integer
is_time_for_money

boolean
is_start_stop

boolean
property_1_checked

boolean
property_2_checked

boolean
property_3_checked

boolean
property_4_checked

boolean
property_5_checked

boolean
start_latitude_decimal

decimal number
start_longitude_decimal

decimal number
end_latitude_decimal

decimal number
end_longitude_decimal

decimal number
added_dateutc

added dateutc

date
is_approved

is_approved flag

boolean
is_confirmed

offline field: is_confirmed flag

boolean
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date

Request Formats :

application/json, text/json

Sample:
{
  "id": "d6f27137-56ea-44c9-88a0-75d234eddbcb",
  "user_id": "289daf51-1ed4-419e-b7ac-e1e7331eb904",
  "car_id": "91d19938-c61f-4037-98c8-181ac6025391",
  "from_db_address_id": "9b80af10-f128-4941-9dee-093abb792dd8",
  "from_db_table_id": "0a58ca96-9ff7-4a5e-a9d3-7e95053ff536",
  "from_id_in_table": "51de3b1d-187e-4c43-9038-0827e6ed5156",
  "from_travel_type_code": "sample string 7",
  "from_db_address_other": "sample string 8",
  "to_db_address_id": "4105f600-fe7d-45b3-8fb9-e8505f13097c",
  "to_db_table_id": "6f74347d-13f6-49a9-9ed1-089fd2f0018a",
  "to_in_in_table": "d9f7ec10-076a-4697-b60a-911fea93ccde",
  "to_travel_type_code": "sample string 12",
  "to_db_address_other": "sample string 13",
  "hour_type_id": "739f1f79-ce30-4c0e-a2dc-6e806a0899c8",
  "date_from": "2026-06-16T22:35:14.1298732+00:00",
  "date_from_rounded": "2026-06-16T22:35:14.1298732+00:00",
  "date_to": "2026-06-16T22:35:14.1298732+00:00",
  "date_to_rounded": "2026-06-16T22:35:14.1298732+00:00",
  "notes": "sample string 19",
  "km": 20,
  "km_before": 21,
  "km_after": 22,
  "km_private": 23,
  "km_distance": 24,
  "is_time_for_money": true,
  "is_start_stop": true,
  "property_1_checked": true,
  "property_2_checked": true,
  "property_3_checked": true,
  "property_4_checked": true,
  "property_5_checked": true,
  "start_latitude_decimal": 32.0,
  "start_longitude_decimal": 33.0,
  "end_latitude_decimal": 34.0,
  "end_longitude_decimal": 35.0,
  "added_dateutc": "2026-06-16T22:35:14.1298732+00:00",
  "is_approved": true,
  "is_confirmed": true,
  "modified_dateutc": "2026-06-16T22:35:14.1298732+00:00"
}

application/xml, text/xml

Sample:
<car_travel xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <added_dateutc>2026-06-16T22:35:14.129Z</added_dateutc>
  <car_id>91d19938-c61f-4037-98c8-181ac6025391</car_id>
  <date_from>2026-06-16T22:35:14.129Z</date_from>
  <date_from_rounded>2026-06-16T22:35:14.129Z</date_from_rounded>
  <date_to>2026-06-16T22:35:14.129Z</date_to>
  <date_to_rounded>2026-06-16T22:35:14.129Z</date_to_rounded>
  <end_latitude_decimal>34</end_latitude_decimal>
  <end_longitude_decimal>35</end_longitude_decimal>
  <from_db_address_id>9b80af10-f128-4941-9dee-093abb792dd8</from_db_address_id>
  <from_db_address_other>sample string 8</from_db_address_other>
  <from_db_table_id>0a58ca96-9ff7-4a5e-a9d3-7e95053ff536</from_db_table_id>
  <from_id_in_table>51de3b1d-187e-4c43-9038-0827e6ed5156</from_id_in_table>
  <from_travel_type_code>sample string 7</from_travel_type_code>
  <hour_type_id>739f1f79-ce30-4c0e-a2dc-6e806a0899c8</hour_type_id>
  <id>d6f27137-56ea-44c9-88a0-75d234eddbcb</id>
  <is_approved>true</is_approved>
  <is_confirmed>true</is_confirmed>
  <is_start_stop>true</is_start_stop>
  <is_time_for_money>true</is_time_for_money>
  <km>20</km>
  <km_after>22</km_after>
  <km_before>21</km_before>
  <km_distance>24</km_distance>
  <km_private>23</km_private>
  <modified_dateutc>2026-06-16T22:35:14.129Z</modified_dateutc>
  <notes>sample string 19</notes>
  <property_1_checked>true</property_1_checked>
  <property_2_checked>true</property_2_checked>
  <property_3_checked>true</property_3_checked>
  <property_4_checked>true</property_4_checked>
  <property_5_checked>true</property_5_checked>
  <start_latitude_decimal>32</start_latitude_decimal>
  <start_longitude_decimal>33</start_longitude_decimal>
  <to_db_address_id>4105f600-fe7d-45b3-8fb9-e8505f13097c</to_db_address_id>
  <to_db_address_other>sample string 13</to_db_address_other>
  <to_db_table_id>6f74347d-13f6-49a9-9ed1-089fd2f0018a</to_db_table_id>
  <to_in_in_table>d9f7ec10-076a-4697-b60a-911fea93ccde</to_in_in_table>
  <to_travel_type_code>sample string 12</to_travel_type_code>
  <user_id>289daf51-1ed4-419e-b7ac-e1e7331eb904</user_id>
</car_travel>

Response Information

Resource Description :

IHttpActionResult

car_travel
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
user_id

Foreign key of User

globally unique identifier

Required

car_id

Foreign key of Car

globally unique identifier

Required

from_db_address_id

the FROM info are filled with the latest travel of this car

globally unique identifier
from_db_table_id

globally unique identifier
from_id_in_table

globally unique identifier
from_travel_type_code

string
from_db_address_other

string

Max length: 255

to_db_address_id

The address used on navigation

globally unique identifier
to_db_table_id

TO=> if navigate to a JOBS, to_db_table_id and to_in_table is filled with the jobs info

globally unique identifier
to_in_in_table

globally unique identifier
to_travel_type_code

Kind of travel. Can be

string

Required

to_db_address_other

string

Max length: 255

hour_type_id

Foreign key of the hour type

globally unique identifier

Required

date_from

Local date+time when the travel started

date
date_from_rounded

Date+Time travel FROM

date

Required

date_to

local date+time when the travel finished

date
date_to_rounded

Date+Time travel TO

date

Required

notes

Additional notes field

string

Max length: 4000

km

2019-04-01: Old field not use it anymore (FSA-986) the Mileage of the car after the travel,* Be aware, value should be always bigger than the last one

integer
km_before

Auto filled when a new record is added

integer
km_after

the Mileage of the car after the travel,* Be aware, value should be always bigger than the last one

integer
km_private

A value the user indicates that contains the total number of km for Private use.

integer
km_distance

integer
is_time_for_money

boolean
is_start_stop

boolean
property_1_checked

boolean
property_2_checked

boolean
property_3_checked

boolean
property_4_checked

boolean
property_5_checked

boolean
start_latitude_decimal

decimal number
start_longitude_decimal

decimal number
end_latitude_decimal

decimal number
end_longitude_decimal

decimal number
added_dateutc

added dateutc

date
is_approved

is_approved flag

boolean
is_confirmed

offline field: is_confirmed flag

boolean
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date

Response Formats

application/json, text/json

Sample:
{
  "id": "ca5f49ac-31fa-446e-8399-8b4c594df600",
  "user_id": "3e511dd4-f72a-4cae-9558-4ad490f8da8e",
  "car_id": "04929835-8a78-4a3e-a413-0747ac78f47d",
  "from_db_address_id": "88cf649d-8f3f-4851-a7a0-3c448d3c8fa2",
  "from_db_table_id": "f20e99df-f100-4a31-b2a6-458d9e1f3dc4",
  "from_id_in_table": "2534a2d6-c262-4a64-8538-0fc10b8cd7bb",
  "from_travel_type_code": "sample string 7",
  "from_db_address_other": "sample string 8",
  "to_db_address_id": "c1ba9190-0fe9-4d39-b5df-497a35aac88a",
  "to_db_table_id": "39707e2f-d316-463f-b72f-bee795b5beb3",
  "to_in_in_table": "40137d05-f1c0-4670-b815-cbf564ce8ed3",
  "to_travel_type_code": "sample string 12",
  "to_db_address_other": "sample string 13",
  "hour_type_id": "f644ebb7-d0d4-4ed6-9db0-8e3fed479bec",
  "date_from": "2026-06-16T22:35:14.1298732+00:00",
  "date_from_rounded": "2026-06-16T22:35:14.1298732+00:00",
  "date_to": "2026-06-16T22:35:14.1298732+00:00",
  "date_to_rounded": "2026-06-16T22:35:14.1298732+00:00",
  "notes": "sample string 19",
  "km": 20,
  "km_before": 21,
  "km_after": 22,
  "km_private": 23,
  "km_distance": 24,
  "is_time_for_money": true,
  "is_start_stop": true,
  "property_1_checked": true,
  "property_2_checked": true,
  "property_3_checked": true,
  "property_4_checked": true,
  "property_5_checked": true,
  "start_latitude_decimal": 32.0,
  "start_longitude_decimal": 33.0,
  "end_latitude_decimal": 34.0,
  "end_longitude_decimal": 35.0,
  "added_dateutc": "2026-06-16T22:35:14.1298732+00:00",
  "is_approved": true,
  "is_confirmed": true,
  "modified_dateutc": "2026-06-16T22:35:14.1298732+00:00"
}

application/xml, text/xml

Sample:
<car_travel xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <added_dateutc>2026-06-16T22:35:14.129Z</added_dateutc>
  <car_id>04929835-8a78-4a3e-a413-0747ac78f47d</car_id>
  <date_from>2026-06-16T22:35:14.129Z</date_from>
  <date_from_rounded>2026-06-16T22:35:14.129Z</date_from_rounded>
  <date_to>2026-06-16T22:35:14.129Z</date_to>
  <date_to_rounded>2026-06-16T22:35:14.129Z</date_to_rounded>
  <end_latitude_decimal>34</end_latitude_decimal>
  <end_longitude_decimal>35</end_longitude_decimal>
  <from_db_address_id>88cf649d-8f3f-4851-a7a0-3c448d3c8fa2</from_db_address_id>
  <from_db_address_other>sample string 8</from_db_address_other>
  <from_db_table_id>f20e99df-f100-4a31-b2a6-458d9e1f3dc4</from_db_table_id>
  <from_id_in_table>2534a2d6-c262-4a64-8538-0fc10b8cd7bb</from_id_in_table>
  <from_travel_type_code>sample string 7</from_travel_type_code>
  <hour_type_id>f644ebb7-d0d4-4ed6-9db0-8e3fed479bec</hour_type_id>
  <id>ca5f49ac-31fa-446e-8399-8b4c594df600</id>
  <is_approved>true</is_approved>
  <is_confirmed>true</is_confirmed>
  <is_start_stop>true</is_start_stop>
  <is_time_for_money>true</is_time_for_money>
  <km>20</km>
  <km_after>22</km_after>
  <km_before>21</km_before>
  <km_distance>24</km_distance>
  <km_private>23</km_private>
  <modified_dateutc>2026-06-16T22:35:14.129Z</modified_dateutc>
  <notes>sample string 19</notes>
  <property_1_checked>true</property_1_checked>
  <property_2_checked>true</property_2_checked>
  <property_3_checked>true</property_3_checked>
  <property_4_checked>true</property_4_checked>
  <property_5_checked>true</property_5_checked>
  <start_latitude_decimal>32</start_latitude_decimal>
  <start_longitude_decimal>33</start_longitude_decimal>
  <to_db_address_id>c1ba9190-0fe9-4d39-b5df-497a35aac88a</to_db_address_id>
  <to_db_address_other>sample string 13</to_db_address_other>
  <to_db_table_id>39707e2f-d316-463f-b72f-bee795b5beb3</to_db_table_id>
  <to_in_in_table>40137d05-f1c0-4670-b815-cbf564ce8ed3</to_in_in_table>
  <to_travel_type_code>sample string 12</to_travel_type_code>
  <user_id>3e511dd4-f72a-4cae-9558-4ad490f8da8e</user_id>
</car_travel>