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": "38884d2e-795f-4291-a5a2-b88165eaecef",
  "jobs_id": "07fa7a28-b300-405a-b9e1-6c04f5543fa8",
  "user_id": "128efb11-8bd6-4d26-b259-638531b2bc85",
  "source_db_table_id": "a3cbfe6c-f26e-4bf1-b384-2aa18dd1e0d0",
  "source_id_in_table": "f89e492e-87dc-4fe9-9e09-e567d726ac12",
  "working_date": "2026-11-12T14:27:25.7120854+00:00",
  "timesheet_date_from": "2026-11-12T14:27:25.7120854+00:00",
  "timesheet_date_to": "2026-11-12T14:27:25.7120854+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": "ef6130a4-255e-4e6c-aa63-9dac568ad6f1",
  "hour_type_id": "bbcb888e-b387-4065-95f5-7cf1cda8f66f",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "00368b74-d40c-4e2f-8911-26e17d289fa4",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "df715624-a0d9-4e21-9a24-406b285d4713",
  "invoice_details_id": "39c7af2c-642c-47d1-893e-ed495575f6ac",
  "modified_dateutc": "2026-11-12T14:27:25.7120854+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>00368b74-d40c-4e2f-8911-26e17d289fa4</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>bbcb888e-b387-4065-95f5-7cf1cda8f66f</hour_type_id>
  <id>38884d2e-795f-4291-a5a2-b88165eaecef</id>
  <invoice_details_id>39c7af2c-642c-47d1-893e-ed495575f6ac</invoice_details_id>
  <invoice_id>df715624-a0d9-4e21-9a24-406b285d4713</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>ef6130a4-255e-4e6c-aa63-9dac568ad6f1</job_approval_id>
  <jobs_id>07fa7a28-b300-405a-b9e1-6c04f5543fa8</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-11-12T14:27:25.712Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>a3cbfe6c-f26e-4bf1-b384-2aa18dd1e0d0</source_db_table_id>
  <source_id_in_table>f89e492e-87dc-4fe9-9e09-e567d726ac12</source_id_in_table>
  <timesheet_date_from>2026-11-12T14:27:25.712Z</timesheet_date_from>
  <timesheet_date_to>2026-11-12T14:27:25.712Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>128efb11-8bd6-4d26-b259-638531b2bc85</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-11-12T14:27:25.712Z</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": "0d648ba3-21e1-46d1-ab33-84e66daff036",
  "jobs_id": "d63f8c6e-b857-4ad6-9ac1-b2fc60507d39",
  "user_id": "3d4c534b-745d-465d-bcdc-8c65b10ed9c2",
  "source_db_table_id": "425c7577-4858-46df-8c3b-3dda1d080435",
  "source_id_in_table": "8bb00ff3-bbea-4580-a3f2-5785110d046c",
  "working_date": "2026-11-12T14:27:25.7120854+00:00",
  "timesheet_date_from": "2026-11-12T14:27:25.7120854+00:00",
  "timesheet_date_to": "2026-11-12T14:27:25.7120854+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": "5258359c-b0de-4d6b-98a6-d89c5760e9cd",
  "hour_type_id": "5d9d16b8-5752-4421-89a4-032edc65c318",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "a76b6fd9-3e6c-4a58-a519-4ed520e87027",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "7f6f30b4-78a6-4d4e-a4ee-eb259d2f6d9a",
  "invoice_details_id": "276354eb-3a7c-4b53-bcc3-75bdfd19dc49",
  "modified_dateutc": "2026-11-12T14:27:25.7120854+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>a76b6fd9-3e6c-4a58-a519-4ed520e87027</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>5d9d16b8-5752-4421-89a4-032edc65c318</hour_type_id>
  <id>0d648ba3-21e1-46d1-ab33-84e66daff036</id>
  <invoice_details_id>276354eb-3a7c-4b53-bcc3-75bdfd19dc49</invoice_details_id>
  <invoice_id>7f6f30b4-78a6-4d4e-a4ee-eb259d2f6d9a</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>5258359c-b0de-4d6b-98a6-d89c5760e9cd</job_approval_id>
  <jobs_id>d63f8c6e-b857-4ad6-9ac1-b2fc60507d39</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-11-12T14:27:25.712Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>425c7577-4858-46df-8c3b-3dda1d080435</source_db_table_id>
  <source_id_in_table>8bb00ff3-bbea-4580-a3f2-5785110d046c</source_id_in_table>
  <timesheet_date_from>2026-11-12T14:27:25.712Z</timesheet_date_from>
  <timesheet_date_to>2026-11-12T14:27:25.712Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>3d4c534b-745d-465d-bcdc-8c65b10ed9c2</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-11-12T14:27:25.712Z</working_date>
</job_non_part_usage>