Save multiple job_non_part_usage records. This endpoint accepts a JSON array of job_non_part_usage objects, validates each record, applies default values, and saves them using the repository. The operation is executed through BatchSaveHelper and processed within a transaction. Each record returns its own ResponseResult indicating success or failure.

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": "b56060db-7e5d-4098-8a21-739e207cf44b",
  "jobs_id": "6ec30cc5-8528-462e-94c7-6763de5ac99e",
  "user_id": "c1982e64-f135-4ae3-b12b-aaf8c2bb1a38",
  "source_db_table_id": "3684e07f-7068-4906-acb9-b815c2807306",
  "source_id_in_table": "01764943-5a5c-4db3-8034-ae2388293361",
  "working_date": "2026-11-12T14:27:08.3836678+00:00",
  "timesheet_date_from": "2026-11-12T14:27:08.3836678+00:00",
  "timesheet_date_to": "2026-11-12T14:27:08.3836678+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": "0db2570a-1739-4872-acf1-5dd4a637c14a",
  "hour_type_id": "0d422a3c-8494-4582-bfd7-382a0082c361",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "1f8bf077-dd80-4a1a-aa42-f49544bdd65e",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "a4758790-4f3e-4454-8722-db1de71222c1",
  "invoice_details_id": "20c7f728-146e-4070-a176-08ce8e16dd7e",
  "modified_dateutc": "2026-11-12T14:27:08.3836678+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>1f8bf077-dd80-4a1a-aa42-f49544bdd65e</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>0d422a3c-8494-4582-bfd7-382a0082c361</hour_type_id>
  <id>b56060db-7e5d-4098-8a21-739e207cf44b</id>
  <invoice_details_id>20c7f728-146e-4070-a176-08ce8e16dd7e</invoice_details_id>
  <invoice_id>a4758790-4f3e-4454-8722-db1de71222c1</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>0db2570a-1739-4872-acf1-5dd4a637c14a</job_approval_id>
  <jobs_id>6ec30cc5-8528-462e-94c7-6763de5ac99e</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-11-12T14:27:08.383Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>3684e07f-7068-4906-acb9-b815c2807306</source_db_table_id>
  <source_id_in_table>01764943-5a5c-4db3-8034-ae2388293361</source_id_in_table>
  <timesheet_date_from>2026-11-12T14:27:08.383Z</timesheet_date_from>
  <timesheet_date_to>2026-11-12T14:27:08.383Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>c1982e64-f135-4ae3-b12b-aaf8c2bb1a38</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-11-12T14:27:08.383Z</working_date>
</job_non_part_usage>

Response Information

Resource Description :

IHttpActionResult containing the batch save results for each processed 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": "09223d5a-543d-4af7-8396-f7d704a50c84",
  "jobs_id": "0ef06ed0-2723-4321-a3c5-e3ee72607092",
  "user_id": "88194ca0-caae-46cd-b846-a8420eb17e1c",
  "source_db_table_id": "80a79753-1911-4a8f-b8cd-d7b65fc72d2a",
  "source_id_in_table": "6f2bc1bc-b5e6-4032-a9bc-fac898f0c5c9",
  "working_date": "2026-11-12T14:27:08.3992891+00:00",
  "timesheet_date_from": "2026-11-12T14:27:08.3992891+00:00",
  "timesheet_date_to": "2026-11-12T14:27:08.3992891+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": "9fcc7eef-dbc2-4df5-9f2d-4c485436ec84",
  "hour_type_id": "eb2b6574-b6c9-4bd0-b4b2-b756224c32b7",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "e37ceafb-ec89-4c2d-a7f8-1ec8af05bc43",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "d3b1ffdc-e952-49fb-8c22-c8c38b8af4da",
  "invoice_details_id": "76ed4c4d-30a6-4bc8-85b1-71d592c8d552",
  "modified_dateutc": "2026-11-12T14:27:08.3992891+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>e37ceafb-ec89-4c2d-a7f8-1ec8af05bc43</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>eb2b6574-b6c9-4bd0-b4b2-b756224c32b7</hour_type_id>
  <id>09223d5a-543d-4af7-8396-f7d704a50c84</id>
  <invoice_details_id>76ed4c4d-30a6-4bc8-85b1-71d592c8d552</invoice_details_id>
  <invoice_id>d3b1ffdc-e952-49fb-8c22-c8c38b8af4da</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>9fcc7eef-dbc2-4df5-9f2d-4c485436ec84</job_approval_id>
  <jobs_id>0ef06ed0-2723-4321-a3c5-e3ee72607092</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-11-12T14:27:08.399Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>80a79753-1911-4a8f-b8cd-d7b65fc72d2a</source_db_table_id>
  <source_id_in_table>6f2bc1bc-b5e6-4032-a9bc-fac898f0c5c9</source_id_in_table>
  <timesheet_date_from>2026-11-12T14:27:08.399Z</timesheet_date_from>
  <timesheet_date_to>2026-11-12T14:27:08.399Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>88194ca0-caae-46cd-b846-a8420eb17e1c</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-11-12T14:27:08.399Z</working_date>
</job_non_part_usage>