Creates a new job_non_part_usage object

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": "91d7215c-8d68-4973-b942-c31f198f0f53",
  "jobs_id": "deb9779b-b27c-4072-ae5b-b770046ed3a6",
  "user_id": "4c148342-deff-44c1-98a4-a818de0793cb",
  "source_db_table_id": "8a220119-2b78-4bbb-a83c-776ec496a08a",
  "source_id_in_table": "bdd910ca-af8c-4bec-a8ef-d7c9376690ea",
  "working_date": "2026-01-11T20:59:41.6354255+00:00",
  "timesheet_date_from": "2026-01-11T20:59:41.6354255+00:00",
  "timesheet_date_to": "2026-01-11T20:59:41.6354255+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": "393fc228-4c93-404a-bf6a-7ae9804c06f4",
  "hour_type_id": "c3b65d0d-76e1-4153-8594-b065afc72214",
  "is_under_warranty": true,
  "no_warranty_reason": "sample string 19",
  "company_vat_id": "08de8dbb-ffde-4196-bd4a-5df0a48700f3",
  "vat_value": 21.0,
  "vat_rate": 22.0,
  "invoice_id": "1dbca1a3-3fc1-4178-9690-92fcca5c0139",
  "invoice_details_id": "f65ee37d-bcce-4488-bb3a-45d748938f21",
  "modified_dateutc": "2026-01-11T20:59:41.6354255+00:00"
}

application/xml, text/xml

Sample:
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <company_vat_id>08de8dbb-ffde-4196-bd4a-5df0a48700f3</company_vat_id>
  <description>sample string 11</description>
  <discount>14</discount>
  <hour_type_id>c3b65d0d-76e1-4153-8594-b065afc72214</hour_type_id>
  <id>91d7215c-8d68-4973-b942-c31f198f0f53</id>
  <invoice_details_id>f65ee37d-bcce-4488-bb3a-45d748938f21</invoice_details_id>
  <invoice_id>1dbca1a3-3fc1-4178-9690-92fcca5c0139</invoice_id>
  <is_under_warranty>true</is_under_warranty>
  <job_approval_id>393fc228-4c93-404a-bf6a-7ae9804c06f4</job_approval_id>
  <jobs_id>deb9779b-b27c-4072-ae5b-b770046ed3a6</jobs_id>
  <line_code>sample string 10</line_code>
  <line_memo>sample string 15</line_memo>
  <modified_dateutc>2026-01-11T20:59:41.635Z</modified_dateutc>
  <no_warranty_reason>sample string 19</no_warranty_reason>
  <price>13</price>
  <quantity>12</quantity>
  <source_db_table_id>8a220119-2b78-4bbb-a83c-776ec496a08a</source_db_table_id>
  <source_id_in_table>bdd910ca-af8c-4bec-a8ef-d7c9376690ea</source_id_in_table>
  <timesheet_date_from>2026-01-11T20:59:41.635Z</timesheet_date_from>
  <timesheet_date_to>2026-01-11T20:59:41.635Z</timesheet_date_to>
  <type_code>sample string 9</type_code>
  <user_id>4c148342-deff-44c1-98a4-a818de0793cb</user_id>
  <vat_rate>22</vat_rate>
  <vat_value>21</vat_value>
  <working_date>2026-01-11T20:59:41.635Z</working_date>
</job_non_part_usage>

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.