Save job_non_part_usage
Request Information
URI Parameters :
None.
Body Parameters :
job_non_part_usage| Name | Description | Type | Additional 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
{
"id": "946b6c28-5fcc-40bb-819a-fd6dc04285f7",
"jobs_id": "2af5e528-f2d2-4860-8268-0b4005b100a9",
"user_id": "16325dbc-2b9a-4e14-ad77-79049f5484ce",
"source_db_table_id": "9e4c00bc-1129-47ed-9810-0d87f0eac6e8",
"source_id_in_table": "d8224a48-d70c-4c5e-a7b8-634d86970e65",
"working_date": "2026-03-07T13:14:01.7730584+00:00",
"timesheet_date_from": "2026-03-07T13:14:01.7730584+00:00",
"timesheet_date_to": "2026-03-07T13:14:01.7730584+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": "981bf81b-2119-4a3a-bce5-da5ab15baff7",
"hour_type_id": "f8a68b3c-71dd-4d3d-ae5d-1d450089026e",
"is_under_warranty": true,
"no_warranty_reason": "sample string 19",
"company_vat_id": "232b0cf8-1b67-4b98-97e6-9c74c7613ed8",
"vat_value": 21.0,
"vat_rate": 22.0,
"invoice_id": "d1c1f6b2-5c70-4983-b9a6-27157e5ae04e",
"invoice_details_id": "1695e810-ecb3-4f1f-bdfa-cd775dc2e7b0",
"modified_dateutc": "2026-03-07T13:14:01.7730584+00:00"
}
application/xml, text/xml
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <company_vat_id>232b0cf8-1b67-4b98-97e6-9c74c7613ed8</company_vat_id> <description>sample string 11</description> <discount>14</discount> <hour_type_id>f8a68b3c-71dd-4d3d-ae5d-1d450089026e</hour_type_id> <id>946b6c28-5fcc-40bb-819a-fd6dc04285f7</id> <invoice_details_id>1695e810-ecb3-4f1f-bdfa-cd775dc2e7b0</invoice_details_id> <invoice_id>d1c1f6b2-5c70-4983-b9a6-27157e5ae04e</invoice_id> <is_under_warranty>true</is_under_warranty> <job_approval_id>981bf81b-2119-4a3a-bce5-da5ab15baff7</job_approval_id> <jobs_id>2af5e528-f2d2-4860-8268-0b4005b100a9</jobs_id> <line_code>sample string 10</line_code> <line_memo>sample string 15</line_memo> <modified_dateutc>2026-03-07T13:14:01.773Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <quantity>12</quantity> <source_db_table_id>9e4c00bc-1129-47ed-9810-0d87f0eac6e8</source_db_table_id> <source_id_in_table>d8224a48-d70c-4c5e-a7b8-634d86970e65</source_id_in_table> <timesheet_date_from>2026-03-07T13:14:01.773Z</timesheet_date_from> <timesheet_date_to>2026-03-07T13:14:01.773Z</timesheet_date_to> <type_code>sample string 9</type_code> <user_id>16325dbc-2b9a-4e14-ad77-79049f5484ce</user_id> <vat_rate>22</vat_rate> <vat_value>21</vat_value> <working_date>2026-03-07T13:14:01.773Z</working_date> </job_non_part_usage>
Response Information
Resource Description :
job_non_part_usage| Name | Description | Type | Additional 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 |
Response Formats
application/json, text/json
{
"id": "94537623-45f9-4555-9b25-8906239e7548",
"jobs_id": "680b4066-64c0-4068-89a6-9b2573c78c15",
"user_id": "3f84a72b-ef03-4ab7-ae3e-38da18263b02",
"source_db_table_id": "98c199c2-6a09-4095-b2f1-9a00e8c41b1f",
"source_id_in_table": "5fa2ccc7-4890-47b1-a6fc-80bef1f642ae",
"working_date": "2026-03-07T13:14:01.807076+00:00",
"timesheet_date_from": "2026-03-07T13:14:01.807076+00:00",
"timesheet_date_to": "2026-03-07T13:14:01.807076+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": "df40df49-8b54-40ba-9b08-69ab2ae683f6",
"hour_type_id": "09c63878-b0a9-4079-a19e-318554d2ecb3",
"is_under_warranty": true,
"no_warranty_reason": "sample string 19",
"company_vat_id": "0a606c82-383b-437a-b085-00b488151fbe",
"vat_value": 21.0,
"vat_rate": 22.0,
"invoice_id": "09e190ba-a8a0-4939-90ea-be5f2cd9d024",
"invoice_details_id": "2154fe3a-6fb3-4f5a-a84e-ac1879bcc595",
"modified_dateutc": "2026-03-07T13:14:01.807076+00:00"
}
application/xml, text/xml
<job_non_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <company_vat_id>0a606c82-383b-437a-b085-00b488151fbe</company_vat_id> <description>sample string 11</description> <discount>14</discount> <hour_type_id>09c63878-b0a9-4079-a19e-318554d2ecb3</hour_type_id> <id>94537623-45f9-4555-9b25-8906239e7548</id> <invoice_details_id>2154fe3a-6fb3-4f5a-a84e-ac1879bcc595</invoice_details_id> <invoice_id>09e190ba-a8a0-4939-90ea-be5f2cd9d024</invoice_id> <is_under_warranty>true</is_under_warranty> <job_approval_id>df40df49-8b54-40ba-9b08-69ab2ae683f6</job_approval_id> <jobs_id>680b4066-64c0-4068-89a6-9b2573c78c15</jobs_id> <line_code>sample string 10</line_code> <line_memo>sample string 15</line_memo> <modified_dateutc>2026-03-07T13:14:01.807Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <quantity>12</quantity> <source_db_table_id>98c199c2-6a09-4095-b2f1-9a00e8c41b1f</source_db_table_id> <source_id_in_table>5fa2ccc7-4890-47b1-a6fc-80bef1f642ae</source_id_in_table> <timesheet_date_from>2026-03-07T13:14:01.807Z</timesheet_date_from> <timesheet_date_to>2026-03-07T13:14:01.807Z</timesheet_date_to> <type_code>sample string 9</type_code> <user_id>3f84a72b-ef03-4ab7-ae3e-38da18263b02</user_id> <vat_rate>22</vat_rate> <vat_value>21</vat_value> <working_date>2026-03-07T13:14:01.807Z</working_date> </job_non_part_usage>