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": "bd51a014-d916-4533-8276-3a65054f18ce",
  "jobs_id": "0d0a7c76-b36d-42ac-a391-c2e30f2c4cff",
  "user_id": "5f6eb7fd-9c6a-4a1b-aafb-533f363cd74c",
  "source_db_table_id": "32ee6132-a4e1-473f-a340-962e25594827",
  "source_id_in_table": "7c015e87-bf24-4b7d-9a28-d17303990527",
  "working_date": "2026-06-16T21:16:59.2360483+00:00",
  "timesheet_date_from": "2026-06-16T21:16:59.2360483+00:00",
  "timesheet_date_to": "2026-06-16T21:16:59.2360483+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": "11880385-ac8a-4d4a-83ad-037402503cdf",
  "hour_type_id": "5e2d3929-ce4c-4e77-9e02-d1c60f55079b",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "32993bfc-cb21-4e5d-89a5-33c9bde0fbae",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "c8d1cef0-a721-46da-a4f0-325717da4998",
  "invoice_details_id": "dc52d1cb-7310-4794-a5a4-44e7b018d8e9",
  "modified_dateutc": "2026-06-16T21:16:59.2360483+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>32993bfc-cb21-4e5d-89a5-33c9bde0fbae</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>5e2d3929-ce4c-4e77-9e02-d1c60f55079b</hour_type_id>
  <id>bd51a014-d916-4533-8276-3a65054f18ce</id>
  <invoice_details_id>dc52d1cb-7310-4794-a5a4-44e7b018d8e9</invoice_details_id>
  <invoice_id>c8d1cef0-a721-46da-a4f0-325717da4998</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>11880385-ac8a-4d4a-83ad-037402503cdf</job_approval_id>
  <jobs_id>0d0a7c76-b36d-42ac-a391-c2e30f2c4cff</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-06-16T21:16:59.236Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>32ee6132-a4e1-473f-a340-962e25594827</source_db_table_id>
  <source_id_in_table>7c015e87-bf24-4b7d-9a28-d17303990527</source_id_in_table>
  <timesheet_date_from>2026-06-16T21:16:59.236Z</timesheet_date_from>
  <timesheet_date_to>2026-06-16T21:16:59.236Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>5f6eb7fd-9c6a-4a1b-aafb-533f363cd74c</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-06-16T21:16:59.236Z</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": "3ddf81fc-ca03-407a-bc38-19d543f86461",
  "jobs_id": "a7057a7d-0e07-4b15-8480-d8dbcd604223",
  "user_id": "4c155af6-2b66-4f29-a8dd-d5946e1c2d8c",
  "source_db_table_id": "5bbd1bca-6ab5-4c90-88a9-f9506b2b1ab4",
  "source_id_in_table": "19991286-aed9-4fc1-bd1f-07c261ea6ba3",
  "working_date": "2026-06-16T21:16:59.2962957+00:00",
  "timesheet_date_from": "2026-06-16T21:16:59.2962957+00:00",
  "timesheet_date_to": "2026-06-16T21:16:59.2962957+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": "6118d827-5330-4aea-b465-b4b77f46dec4",
  "hour_type_id": "6dc0feaa-6727-4b72-924c-aa8f3d5afacd",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "3b70d262-5500-4a80-ba53-26a16bb37344",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "710434ac-0e81-4a43-9865-7db1d69ac387",
  "invoice_details_id": "ec5b7712-5f27-4243-8b4e-7feacd7be6ea",
  "modified_dateutc": "2026-06-16T21:16:59.2962957+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>3b70d262-5500-4a80-ba53-26a16bb37344</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>6dc0feaa-6727-4b72-924c-aa8f3d5afacd</hour_type_id>
  <id>3ddf81fc-ca03-407a-bc38-19d543f86461</id>
  <invoice_details_id>ec5b7712-5f27-4243-8b4e-7feacd7be6ea</invoice_details_id>
  <invoice_id>710434ac-0e81-4a43-9865-7db1d69ac387</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>6118d827-5330-4aea-b465-b4b77f46dec4</job_approval_id>
  <jobs_id>a7057a7d-0e07-4b15-8480-d8dbcd604223</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-06-16T21:16:59.296Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>5bbd1bca-6ab5-4c90-88a9-f9506b2b1ab4</source_db_table_id>
  <source_id_in_table>19991286-aed9-4fc1-bd1f-07c261ea6ba3</source_id_in_table>
  <timesheet_date_from>2026-06-16T21:16:59.296Z</timesheet_date_from>
  <timesheet_date_to>2026-06-16T21:16:59.296Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>4c155af6-2b66-4f29-a8dd-d5946e1c2d8c</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-06-16T21:16:59.296Z</working_date>
</job_non_part_usage>