Save job_non_part_usage

Request Information

URI Parameters :

None.

Body Parameters :

job_non_part_usage
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier

Required

jobs_id

Foreign key of jobs

globally unique identifier

Required

user_id

Foreign key, user that makes the approval

globally unique identifier
source_db_table_id

Source Table used to generate this non part usage (Car_travel or user_timesheet)

globally unique identifier
source_id_in_table

Source Object Id used to generate this non part usage (car_travel.id or user_timesheet.id)

globally unique identifier
working_date

Date when the object has been generated

date

Required

timesheet_date_from

In the case of a timesheet, the date+time FROM

date
timesheet_date_to

In the case of a timesheet, the date+time TO

date
type_code

Type of Non part (WorkingTime or TravelTime)

string

Max length: 50

line_code

code generated from the hour_type.code

string

Max length: 50

description

description generated from the hour_type.commercial_description

string

Max length: 255

quantity

Quantity converted in decimal (45 minutes is 0.75)

decimal number
price

Unit Price computed via the hour_type (without discount)

decimal number
discount

decimal number
line_memo

Extra memo on the line filled by the User

string

Max length: 4000

job_approval_id

Foreign key to the approval this lines belongs In case the line was already "included" inside a job approval (daily for exemple), then that value is field and row is now readonly

globally unique identifier
hour_type_id

Hour type id

globally unique identifier
is_under_warranty

Checking for warranty

boolean
no_warranty_reason

Reason of no warranty

string
company_vat_id

globally unique identifier
vat_value

decimal number
vat_rate

decimal number
invoice_id

globally unique identifier
invoice_details_id

globally unique identifier
modified_dateutc

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

date

Request Formats :

application/json, text/json

Sample:
{
  "id": "feae00a2-683f-49fd-9309-6e7b31b9444c",
  "jobs_id": "6fee544d-4169-45d9-8c00-ccfed3524b63",
  "user_id": "eeea8e4c-73a2-4165-a27c-e1c5e53f68a5",
  "source_db_table_id": "789340ed-fb05-46ac-b8ec-06fb8bf3521e",
  "source_id_in_table": "b07ed536-fc4e-4a30-8324-8c5c6f7e3d76",
  "working_date": "2026-01-11T21:00:52.7911276+00:00",
  "timesheet_date_from": "2026-01-11T21:00:52.7911276+00:00",
  "timesheet_date_to": "2026-01-11T21:00:52.7911276+00:00",
  "type_code": "sample string 9",
  "line_code": "sample string 10",
  "description": "sample string 11",
  "quantity": 12.0,
  "price": 13.0,
  "discount": 14.0,
  "line_memo": "sample string 15",
  "job_approval_id": "d11390ff-325c-4dcc-aaa4-83f88ec38214",
  "hour_type_id": "ed44bb5d-38ad-455d-9aea-fb93ad8cdddb",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "d5f3e1e5-d28d-4342-a691-12917369f658",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "70eb8f4f-e09a-4832-acec-64e70bbdd936",
  "invoice_details_id": "e256c969-a978-42a5-be15-3b83073622b6",
  "modified_dateutc": "2026-01-11T21:00:52.7911276+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>d5f3e1e5-d28d-4342-a691-12917369f658</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>ed44bb5d-38ad-455d-9aea-fb93ad8cdddb</hour_type_id>
  <id>feae00a2-683f-49fd-9309-6e7b31b9444c</id>
  <invoice_details_id>e256c969-a978-42a5-be15-3b83073622b6</invoice_details_id>
  <invoice_id>70eb8f4f-e09a-4832-acec-64e70bbdd936</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>d11390ff-325c-4dcc-aaa4-83f88ec38214</job_approval_id>
  <jobs_id>6fee544d-4169-45d9-8c00-ccfed3524b63</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-01-11T21:00:52.791Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>789340ed-fb05-46ac-b8ec-06fb8bf3521e</source_db_table_id>
  <source_id_in_table>b07ed536-fc4e-4a30-8324-8c5c6f7e3d76</source_id_in_table>
  <timesheet_date_from>2026-01-11T21:00:52.791Z</timesheet_date_from>
  <timesheet_date_to>2026-01-11T21:00:52.791Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>eeea8e4c-73a2-4165-a27c-e1c5e53f68a5</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-01-11T21:00:52.791Z</working_date>
</job_non_part_usage>

Response Information

Resource Description :

job_non_part_usage
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier

Required

jobs_id

Foreign key of jobs

globally unique identifier

Required

user_id

Foreign key, user that makes the approval

globally unique identifier
source_db_table_id

Source Table used to generate this non part usage (Car_travel or user_timesheet)

globally unique identifier
source_id_in_table

Source Object Id used to generate this non part usage (car_travel.id or user_timesheet.id)

globally unique identifier
working_date

Date when the object has been generated

date

Required

timesheet_date_from

In the case of a timesheet, the date+time FROM

date
timesheet_date_to

In the case of a timesheet, the date+time TO

date
type_code

Type of Non part (WorkingTime or TravelTime)

string

Max length: 50

line_code

code generated from the hour_type.code

string

Max length: 50

description

description generated from the hour_type.commercial_description

string

Max length: 255

quantity

Quantity converted in decimal (45 minutes is 0.75)

decimal number
price

Unit Price computed via the hour_type (without discount)

decimal number
discount

decimal number
line_memo

Extra memo on the line filled by the User

string

Max length: 4000

job_approval_id

Foreign key to the approval this lines belongs In case the line was already "included" inside a job approval (daily for exemple), then that value is field and row is now readonly

globally unique identifier
hour_type_id

Hour type id

globally unique identifier
is_under_warranty

Checking for warranty

boolean
no_warranty_reason

Reason of no warranty

string
company_vat_id

globally unique identifier
vat_value

decimal number
vat_rate

decimal number
invoice_id

globally unique identifier
invoice_details_id

globally unique identifier
modified_dateutc

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

date

Response Formats

application/json, text/json

Sample:
{
  "id": "1f01b740-b7e8-4f76-a7f6-7fa77b3655f3",
  "jobs_id": "94af4d64-1817-4458-b6f6-54298993ec52",
  "user_id": "4e614c66-5a50-4474-9597-9bd6ace42740",
  "source_db_table_id": "baab584c-14f1-4bcc-add1-6e0affbe74d9",
  "source_id_in_table": "2a02d0f0-9de3-4dfa-99b7-8078a2863eff",
  "working_date": "2026-01-11T21:00:52.8407541+00:00",
  "timesheet_date_from": "2026-01-11T21:00:52.8407541+00:00",
  "timesheet_date_to": "2026-01-11T21:00:52.8407541+00:00",
  "type_code": "sample string 9",
  "line_code": "sample string 10",
  "description": "sample string 11",
  "quantity": 12.0,
  "price": 13.0,
  "discount": 14.0,
  "line_memo": "sample string 15",
  "job_approval_id": "dc1afbcc-e510-48c5-9888-bb1b489ce039",
  "hour_type_id": "c34b02bf-b445-4414-bf63-dd3265c5e78d",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "f842da36-1fc7-406d-92eb-f208785c38c9",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "8943c268-562c-4ee3-9573-c121955c4064",
  "invoice_details_id": "a51a6c7c-2798-4781-89d5-22e8bda63e8e",
  "modified_dateutc": "2026-01-11T21:00:52.8407541+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>f842da36-1fc7-406d-92eb-f208785c38c9</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>c34b02bf-b445-4414-bf63-dd3265c5e78d</hour_type_id>
  <id>1f01b740-b7e8-4f76-a7f6-7fa77b3655f3</id>
  <invoice_details_id>a51a6c7c-2798-4781-89d5-22e8bda63e8e</invoice_details_id>
  <invoice_id>8943c268-562c-4ee3-9573-c121955c4064</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>dc1afbcc-e510-48c5-9888-bb1b489ce039</job_approval_id>
  <jobs_id>94af4d64-1817-4458-b6f6-54298993ec52</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-01-11T21:00:52.840Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>baab584c-14f1-4bcc-add1-6e0affbe74d9</source_db_table_id>
  <source_id_in_table>2a02d0f0-9de3-4dfa-99b7-8078a2863eff</source_id_in_table>
  <timesheet_date_from>2026-01-11T21:00:52.840Z</timesheet_date_from>
  <timesheet_date_to>2026-01-11T21:00:52.840Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>4e614c66-5a50-4474-9597-9bd6ace42740</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-01-11T21:00:52.840Z</working_date>
</job_non_part_usage>