Add/update job_part_usage
Request Information
URI Parameters :
None.
Body Parameters :
job_part_usage| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier |
Required |
| jobs_id |
Foreign key of jobs |
globally unique identifier | |
| job_approval_id |
Job approval Id |
globally unique identifier | |
| article_stock_location_id |
In case of stock management enabled, the stock that has been used |
globally unique identifier | |
| article_id |
Foreign key of article. Can be empty if user keys in manually the object |
globally unique identifier | |
| is_dummy |
In case of dummy |
boolean | |
| article_code |
Article code |
string |
Max length: 255 |
| article_name |
Article name |
string |
Max length: 255 |
| article_description |
Article description |
string |
Max length: 255 |
| working_date |
Date when the part has been used |
date | |
| quantity |
Quantity |
decimal number | |
| serial_number |
When the article.use_serial then the serial should be saved here |
string |
Max length: 255 |
| price |
Unit price of the part. Computed with the price logic or filled via purchase_order_details.price |
decimal number | |
| is_under_warranty |
In case the logic detect that the parts was in warranty, this field will be set to true and the discount will be set equal to the price |
boolean | |
| discount |
Manual discount , in money, added by the technician |
decimal number | |
| purchase_order_details_id |
Foreign key of purchase_order_details, if the line was generated based on a purchase_order_details |
globally unique identifier | |
| user_id |
User Id |
globally unique identifier | |
| remark | string |
Max length: 255 |
|
| no_warranty_reason | string |
Max length: 255 |
|
| db_unit_of_measure_id | globally unique identifier | ||
| included_on_last_stock_compute | boolean | ||
| signed_by_company |
Needed for integration |
boolean | |
| 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 | ||
| is_customized | boolean | ||
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Request Formats :
application/json, text/json
{
"id": "022e324b-d5b4-468f-8299-76a5afb8231e",
"jobs_id": "2c5a20d2-fa4c-4a70-a156-a08ec8b93c9f",
"job_approval_id": "3a7a5a28-214b-4bc7-ab74-69d328341dec",
"article_stock_location_id": "64df14d1-ae21-4f5a-ae63-7eb27f5e7652",
"article_id": "77ac6fc0-812e-4f40-8cf7-71566df524e5",
"is_dummy": true,
"article_code": "sample string 7",
"article_name": "sample string 8",
"article_description": "sample string 9",
"working_date": "2026-03-07T13:13:35.562991+00:00",
"quantity": 11.0,
"serial_number": "sample string 12",
"price": 13.0,
"is_under_warranty": true,
"discount": 15.0,
"purchase_order_details_id": "b4179a94-30bb-4bf0-825d-a2e29949c923",
"user_id": "f92af825-e6d7-4bac-af81-bfa676dd7750",
"remark": "sample string 18",
"no_warranty_reason": "sample string 19",
"db_unit_of_measure_id": "98dfe340-04a2-45e3-b647-017d7306eccb",
"included_on_last_stock_compute": true,
"signed_by_company": true,
"company_vat_id": "4d7c5986-4682-47e0-9958-82cd2d78bc78",
"vat_value": 24.0,
"vat_rate": 25.0,
"invoice_id": "ed828f8e-7557-4c4c-93eb-ca95fcf610a9",
"invoice_details_id": "7f326f65-136a-4303-9462-a639daa0e44b",
"is_customized": true,
"modified_dateutc": "2026-03-07T13:13:35.562991+00:00"
}
application/xml, text/xml
<job_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <article_code>sample string 7</article_code> <article_description>sample string 9</article_description> <article_id>77ac6fc0-812e-4f40-8cf7-71566df524e5</article_id> <article_name>sample string 8</article_name> <article_stock_location_id>64df14d1-ae21-4f5a-ae63-7eb27f5e7652</article_stock_location_id> <company_vat_id>4d7c5986-4682-47e0-9958-82cd2d78bc78</company_vat_id> <db_unit_of_measure_id>98dfe340-04a2-45e3-b647-017d7306eccb</db_unit_of_measure_id> <discount>15</discount> <id>022e324b-d5b4-468f-8299-76a5afb8231e</id> <included_on_last_stock_compute>true</included_on_last_stock_compute> <invoice_details_id>7f326f65-136a-4303-9462-a639daa0e44b</invoice_details_id> <invoice_id>ed828f8e-7557-4c4c-93eb-ca95fcf610a9</invoice_id> <is_customized>true</is_customized> <is_dummy>true</is_dummy> <is_under_warranty>true</is_under_warranty> <job_approval_id>3a7a5a28-214b-4bc7-ab74-69d328341dec</job_approval_id> <jobs_id>2c5a20d2-fa4c-4a70-a156-a08ec8b93c9f</jobs_id> <modified_dateutc>2026-03-07T13:13:35.562Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <purchase_order_details_id>b4179a94-30bb-4bf0-825d-a2e29949c923</purchase_order_details_id> <quantity>11</quantity> <remark>sample string 18</remark> <serial_number>sample string 12</serial_number> <signed_by_company>true</signed_by_company> <user_id>f92af825-e6d7-4bac-af81-bfa676dd7750</user_id> <vat_rate>25</vat_rate> <vat_value>24</vat_value> <working_date>2026-03-07T13:13:35.562Z</working_date> </job_part_usage>
Response Information
Resource Description :
job_part_usage| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier |
Required |
| jobs_id |
Foreign key of jobs |
globally unique identifier | |
| job_approval_id |
Job approval Id |
globally unique identifier | |
| article_stock_location_id |
In case of stock management enabled, the stock that has been used |
globally unique identifier | |
| article_id |
Foreign key of article. Can be empty if user keys in manually the object |
globally unique identifier | |
| is_dummy |
In case of dummy |
boolean | |
| article_code |
Article code |
string |
Max length: 255 |
| article_name |
Article name |
string |
Max length: 255 |
| article_description |
Article description |
string |
Max length: 255 |
| working_date |
Date when the part has been used |
date | |
| quantity |
Quantity |
decimal number | |
| serial_number |
When the article.use_serial then the serial should be saved here |
string |
Max length: 255 |
| price |
Unit price of the part. Computed with the price logic or filled via purchase_order_details.price |
decimal number | |
| is_under_warranty |
In case the logic detect that the parts was in warranty, this field will be set to true and the discount will be set equal to the price |
boolean | |
| discount |
Manual discount , in money, added by the technician |
decimal number | |
| purchase_order_details_id |
Foreign key of purchase_order_details, if the line was generated based on a purchase_order_details |
globally unique identifier | |
| user_id |
User Id |
globally unique identifier | |
| remark | string |
Max length: 255 |
|
| no_warranty_reason | string |
Max length: 255 |
|
| db_unit_of_measure_id | globally unique identifier | ||
| included_on_last_stock_compute | boolean | ||
| signed_by_company |
Needed for integration |
boolean | |
| 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 | ||
| is_customized | boolean | ||
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Response Formats
application/json, text/json
{
"id": "2add0918-b601-4c29-910f-c677a238a6c1",
"jobs_id": "2408d6a7-b3ae-49af-90f6-4dbad4860c09",
"job_approval_id": "5345ee59-48d0-40ac-996b-b031449e9f48",
"article_stock_location_id": "02698b64-3f96-405d-895a-d53a8dc11eee",
"article_id": "f03bfbcb-a900-496b-9983-2185c69818c4",
"is_dummy": true,
"article_code": "sample string 7",
"article_name": "sample string 8",
"article_description": "sample string 9",
"working_date": "2026-03-07T13:13:35.6232706+00:00",
"quantity": 11.0,
"serial_number": "sample string 12",
"price": 13.0,
"is_under_warranty": true,
"discount": 15.0,
"purchase_order_details_id": "5a1cd649-738e-4df2-9e28-fb3480ffa48e",
"user_id": "67cb88c1-8d0d-4764-a68a-b9b92e2391c2",
"remark": "sample string 18",
"no_warranty_reason": "sample string 19",
"db_unit_of_measure_id": "1117d6b5-5e5a-420b-b005-5bace195ca23",
"included_on_last_stock_compute": true,
"signed_by_company": true,
"company_vat_id": "296c9485-60ff-4cb1-b84c-6952570780ac",
"vat_value": 24.0,
"vat_rate": 25.0,
"invoice_id": "0a012364-7870-40e2-a434-3e1e9af0f67c",
"invoice_details_id": "03576f0b-7993-4fd7-86b1-b07d24f3514f",
"is_customized": true,
"modified_dateutc": "2026-03-07T13:13:35.6232706+00:00"
}
application/xml, text/xml
<job_part_usage xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <article_code>sample string 7</article_code> <article_description>sample string 9</article_description> <article_id>f03bfbcb-a900-496b-9983-2185c69818c4</article_id> <article_name>sample string 8</article_name> <article_stock_location_id>02698b64-3f96-405d-895a-d53a8dc11eee</article_stock_location_id> <company_vat_id>296c9485-60ff-4cb1-b84c-6952570780ac</company_vat_id> <db_unit_of_measure_id>1117d6b5-5e5a-420b-b005-5bace195ca23</db_unit_of_measure_id> <discount>15</discount> <id>2add0918-b601-4c29-910f-c677a238a6c1</id> <included_on_last_stock_compute>true</included_on_last_stock_compute> <invoice_details_id>03576f0b-7993-4fd7-86b1-b07d24f3514f</invoice_details_id> <invoice_id>0a012364-7870-40e2-a434-3e1e9af0f67c</invoice_id> <is_customized>true</is_customized> <is_dummy>true</is_dummy> <is_under_warranty>true</is_under_warranty> <job_approval_id>5345ee59-48d0-40ac-996b-b031449e9f48</job_approval_id> <jobs_id>2408d6a7-b3ae-49af-90f6-4dbad4860c09</jobs_id> <modified_dateutc>2026-03-07T13:13:35.623Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <purchase_order_details_id>5a1cd649-738e-4df2-9e28-fb3480ffa48e</purchase_order_details_id> <quantity>11</quantity> <remark>sample string 18</remark> <serial_number>sample string 12</serial_number> <signed_by_company>true</signed_by_company> <user_id>67cb88c1-8d0d-4764-a68a-b9b92e2391c2</user_id> <vat_rate>25</vat_rate> <vat_value>24</vat_value> <working_date>2026-03-07T13:13:35.623Z</working_date> </job_part_usage>