Creates or updates a job non-part usage record.

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

Discount amount applied to for this line.

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

Foreign key of the used to price and describe this line.

globally unique identifier
is_under_warranty

Checking for warranty

boolean
no_warranty_reason

Reason of no warranty

string
company_vat_id

Foreign key of the VAT regime applied to this line.

globally unique identifier
vat_value

VAT amount computed for this line.

decimal number
vat_rate

VAT rate applied to this line (percentage).

decimal number
invoice_id

Foreign key of the invoice this line was billed on, once invoiced.

globally unique identifier
invoice_details_id

Foreign key of the invoice detail line this usage was billed on, once invoiced.

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": "16991930-7b5c-42a2-8aec-b18cf13f2913",
  "jobs_id": "aaed1ba6-7bb0-4dec-9572-b56155e9e4a4",
  "user_id": "fcb46641-94db-4068-b792-4f0a61799120",
  "source_db_table_id": "092184d1-3739-4605-bff4-95ca418db18f",
  "source_id_in_table": "d8ce3ed2-a6a2-4842-9258-b317bc36ae40",
  "working_date": "2026-09-16T10:12:42.9646896+00:00",
  "timesheet_date_from": "2026-09-16T10:12:42.9646896+00:00",
  "timesheet_date_to": "2026-09-16T10:12:42.9646896+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": "cfdbda64-8c5f-4df1-a7c9-af7db9094957",
  "hour_type_id": "da6da324-ddf4-4017-8dd9-414124cb1bfd",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "61eacf03-4bd9-489e-8a4e-3086ae90face",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "d905a409-9929-448b-9299-34deea16bea6",
  "invoice_details_id": "4e4abbbf-7ab1-4444-9508-89036d02b156",
  "modified_dateutc": "2026-09-16T10:12:42.9646896+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>61eacf03-4bd9-489e-8a4e-3086ae90face</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>da6da324-ddf4-4017-8dd9-414124cb1bfd</hour_type_id>
  <id>16991930-7b5c-42a2-8aec-b18cf13f2913</id>
  <invoice_details_id>4e4abbbf-7ab1-4444-9508-89036d02b156</invoice_details_id>
  <invoice_id>d905a409-9929-448b-9299-34deea16bea6</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>cfdbda64-8c5f-4df1-a7c9-af7db9094957</job_approval_id>
  <jobs_id>aaed1ba6-7bb0-4dec-9572-b56155e9e4a4</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-09-16T10:12:42.964Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>092184d1-3739-4605-bff4-95ca418db18f</source_db_table_id>
  <source_id_in_table>d8ce3ed2-a6a2-4842-9258-b317bc36ae40</source_id_in_table>
  <timesheet_date_from>2026-09-16T10:12:42.964Z</timesheet_date_from>
  <timesheet_date_to>2026-09-16T10:12:42.964Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>fcb46641-94db-4068-b792-4f0a61799120</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-09-16T10:12:42.964Z</working_date>
</job_non_part_usage>

Response Information

Resource Description :

IHttpActionResult containing the saved job non-part usage record.

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

Discount amount applied to for this line.

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

Foreign key of the used to price and describe this line.

globally unique identifier
is_under_warranty

Checking for warranty

boolean
no_warranty_reason

Reason of no warranty

string
company_vat_id

Foreign key of the VAT regime applied to this line.

globally unique identifier
vat_value

VAT amount computed for this line.

decimal number
vat_rate

VAT rate applied to this line (percentage).

decimal number
invoice_id

Foreign key of the invoice this line was billed on, once invoiced.

globally unique identifier
invoice_details_id

Foreign key of the invoice detail line this usage was billed on, once invoiced.

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": "9664be3d-4537-46b6-adf3-901b6523ad49",
  "jobs_id": "d3559872-a8e7-4957-a208-55d2852135de",
  "user_id": "a645d54a-10d6-4862-86df-a72cbed04410",
  "source_db_table_id": "7b162def-1c88-4652-81ea-d246c0ad99fc",
  "source_id_in_table": "f06e8eab-551e-429e-9a5b-0f2ff530699b",
  "working_date": "2026-09-16T10:12:42.9845324+00:00",
  "timesheet_date_from": "2026-09-16T10:12:42.9845324+00:00",
  "timesheet_date_to": "2026-09-16T10:12:42.9845324+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": "5a0259c3-a024-4ab4-8f5c-09d9928a3c5b",
  "hour_type_id": "8409e695-3525-43b9-8c95-0c10c1483df6",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "bf9bfb07-4fcd-496a-844f-3fbaaece7d82",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "335022d2-599a-4586-a35f-e8065e9894f2",
  "invoice_details_id": "3508d9c0-3ab1-4dd4-b1f5-08dbb079b3cc",
  "modified_dateutc": "2026-09-16T10:12:42.9845324+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>bf9bfb07-4fcd-496a-844f-3fbaaece7d82</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>8409e695-3525-43b9-8c95-0c10c1483df6</hour_type_id>
  <id>9664be3d-4537-46b6-adf3-901b6523ad49</id>
  <invoice_details_id>3508d9c0-3ab1-4dd4-b1f5-08dbb079b3cc</invoice_details_id>
  <invoice_id>335022d2-599a-4586-a35f-e8065e9894f2</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>5a0259c3-a024-4ab4-8f5c-09d9928a3c5b</job_approval_id>
  <jobs_id>d3559872-a8e7-4957-a208-55d2852135de</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-09-16T10:12:42.984Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>7b162def-1c88-4652-81ea-d246c0ad99fc</source_db_table_id>
  <source_id_in_table>f06e8eab-551e-429e-9a5b-0f2ff530699b</source_id_in_table>
  <timesheet_date_from>2026-09-16T10:12:42.984Z</timesheet_date_from>
  <timesheet_date_to>2026-09-16T10:12:42.984Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>a645d54a-10d6-4862-86df-a72cbed04410</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-09-16T10:12:42.984Z</working_date>
</job_non_part_usage>