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": "11284aa7-1a6b-44d1-9af2-e9deb2107827",
  "jobs_id": "652f95a5-5b36-43ec-8887-9eedd96f1011",
  "user_id": "9d31c070-37fa-42b1-92b9-95eb4c63ab77",
  "source_db_table_id": "d86a123d-234f-4076-a86b-5b9a61967d72",
  "source_id_in_table": "240d7c2f-edc9-4b8d-8eb0-b4fa08aa399f",
  "working_date": "2026-09-16T10:59:26.9799231+00:00",
  "timesheet_date_from": "2026-09-16T10:59:26.9799231+00:00",
  "timesheet_date_to": "2026-09-16T10:59:26.9799231+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": "4261a0da-b191-4fe6-b229-37b3ffe43755",
  "hour_type_id": "14cb81c2-c428-4afb-bcfc-9b99edb57d25",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "8b31b527-6707-4e5d-8c62-c53b72e836cc",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "98c08a89-dac4-4fe4-ace7-5e43daee7138",
  "invoice_details_id": "8a08a090-11fb-4e1f-8e7e-4e03cd93e47b",
  "modified_dateutc": "2026-09-16T10:59:26.9799231+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>8b31b527-6707-4e5d-8c62-c53b72e836cc</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>14cb81c2-c428-4afb-bcfc-9b99edb57d25</hour_type_id>
  <id>11284aa7-1a6b-44d1-9af2-e9deb2107827</id>
  <invoice_details_id>8a08a090-11fb-4e1f-8e7e-4e03cd93e47b</invoice_details_id>
  <invoice_id>98c08a89-dac4-4fe4-ace7-5e43daee7138</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>4261a0da-b191-4fe6-b229-37b3ffe43755</job_approval_id>
  <jobs_id>652f95a5-5b36-43ec-8887-9eedd96f1011</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-09-16T10:59:26.979Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>d86a123d-234f-4076-a86b-5b9a61967d72</source_db_table_id>
  <source_id_in_table>240d7c2f-edc9-4b8d-8eb0-b4fa08aa399f</source_id_in_table>
  <timesheet_date_from>2026-09-16T10:59:26.979Z</timesheet_date_from>
  <timesheet_date_to>2026-09-16T10:59:26.979Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>9d31c070-37fa-42b1-92b9-95eb4c63ab77</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-09-16T10:59:26.979Z</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": "74d8f0f9-7816-4859-ada7-fbd2985e8aca",
  "jobs_id": "cad41116-c779-4750-9d98-b5f16584a57a",
  "user_id": "b5cb5bc1-1ba5-46e6-b0de-46da2337e891",
  "source_db_table_id": "e9fc71a7-e636-4e2f-ad26-0b39e86e38a6",
  "source_id_in_table": "b743564c-d4bf-4dfe-acde-02b2e6821ee2",
  "working_date": "2026-09-16T10:59:27.021341+00:00",
  "timesheet_date_from": "2026-09-16T10:59:27.021341+00:00",
  "timesheet_date_to": "2026-09-16T10:59:27.021341+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": "faa9db10-b665-429f-a6d9-b544560d713f",
  "hour_type_id": "7e8b7799-2fe9-4cb8-85b2-a7915f253031",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "7e3b3cd6-c8c8-4ed8-9546-3fb09ac5ddd7",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "6805b37d-c32e-40cd-96da-71c6b3a9ff88",
  "invoice_details_id": "834d4d0a-12a2-4320-8ff4-070ecb9b6ce2",
  "modified_dateutc": "2026-09-16T10:59:27.021341+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>7e3b3cd6-c8c8-4ed8-9546-3fb09ac5ddd7</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>7e8b7799-2fe9-4cb8-85b2-a7915f253031</hour_type_id>
  <id>74d8f0f9-7816-4859-ada7-fbd2985e8aca</id>
  <invoice_details_id>834d4d0a-12a2-4320-8ff4-070ecb9b6ce2</invoice_details_id>
  <invoice_id>6805b37d-c32e-40cd-96da-71c6b3a9ff88</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>faa9db10-b665-429f-a6d9-b544560d713f</job_approval_id>
  <jobs_id>cad41116-c779-4750-9d98-b5f16584a57a</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-09-16T10:59:27.021Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>e9fc71a7-e636-4e2f-ad26-0b39e86e38a6</source_db_table_id>
  <source_id_in_table>b743564c-d4bf-4dfe-acde-02b2e6821ee2</source_id_in_table>
  <timesheet_date_from>2026-09-16T10:59:27.021Z</timesheet_date_from>
  <timesheet_date_to>2026-09-16T10:59:27.021Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>b5cb5bc1-1ba5-46e6-b0de-46da2337e891</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-09-16T10:59:27.021Z</working_date>
</job_non_part_usage>