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": "db79175d-38a3-40b0-a063-f1a3367d044b",
"jobs_id": "c9e60bc7-5d5b-4fbd-a608-590717a4ec52",
"job_approval_id": "e6582ae8-3f51-45f4-913c-471e14b2bafb",
"article_stock_location_id": "caf5db97-7f62-4c09-a199-a7d9b88c22ae",
"article_id": "bba806de-564d-4451-80da-cd2507109604",
"is_dummy": true,
"article_code": "sample string 7",
"article_name": "sample string 8",
"article_description": "sample string 9",
"working_date": "2026-06-16T21:16:49.2514588+00:00",
"quantity": 11.0,
"serial_number": "sample string 12",
"price": 13.0,
"is_under_warranty": true,
"discount": 15.0,
"purchase_order_details_id": "6ad519ab-604c-40a7-b57d-0638ee58b6c7",
"user_id": "88e166b9-2b2a-40ef-86c1-1e664e179f7e",
"remark": "sample string 18",
"no_warranty_reason": "sample string 19",
"db_unit_of_measure_id": "7cbffa8c-0f38-491c-a213-2477b4ef3870",
"included_on_last_stock_compute": true,
"signed_by_company": true,
"company_vat_id": "cb209e56-7238-4560-b5cb-091e953bdc46",
"vat_value": 24.0,
"vat_rate": 25.0,
"invoice_id": "e2dd55d4-63e2-490c-89c9-4715a563e074",
"invoice_details_id": "5533951a-0d98-41b9-a87d-f0fd39c21e59",
"is_customized": true,
"modified_dateutc": "2026-06-16T21:16:49.2701895+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>bba806de-564d-4451-80da-cd2507109604</article_id> <article_name>sample string 8</article_name> <article_stock_location_id>caf5db97-7f62-4c09-a199-a7d9b88c22ae</article_stock_location_id> <company_vat_id>cb209e56-7238-4560-b5cb-091e953bdc46</company_vat_id> <db_unit_of_measure_id>7cbffa8c-0f38-491c-a213-2477b4ef3870</db_unit_of_measure_id> <discount>15</discount> <id>db79175d-38a3-40b0-a063-f1a3367d044b</id> <included_on_last_stock_compute>true</included_on_last_stock_compute> <invoice_details_id>5533951a-0d98-41b9-a87d-f0fd39c21e59</invoice_details_id> <invoice_id>e2dd55d4-63e2-490c-89c9-4715a563e074</invoice_id> <is_customized>true</is_customized> <is_dummy>true</is_dummy> <is_under_warranty>true</is_under_warranty> <job_approval_id>e6582ae8-3f51-45f4-913c-471e14b2bafb</job_approval_id> <jobs_id>c9e60bc7-5d5b-4fbd-a608-590717a4ec52</jobs_id> <modified_dateutc>2026-06-16T21:16:49.270Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <purchase_order_details_id>6ad519ab-604c-40a7-b57d-0638ee58b6c7</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>88e166b9-2b2a-40ef-86c1-1e664e179f7e</user_id> <vat_rate>25</vat_rate> <vat_value>24</vat_value> <working_date>2026-06-16T21:16:49.251Z</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": "ebceb971-ccf9-4223-b198-2f1ff0a9adf0",
"jobs_id": "46bdbbae-25ca-4f7e-be95-c846d71d7f19",
"job_approval_id": "39bb0388-2a35-49a5-8037-87b675ec0880",
"article_stock_location_id": "ece1d0ee-05db-462b-a269-583dc475ead0",
"article_id": "aead67d2-a627-47f6-9924-118c9caf9a60",
"is_dummy": true,
"article_code": "sample string 7",
"article_name": "sample string 8",
"article_description": "sample string 9",
"working_date": "2026-06-16T21:16:50.0171035+00:00",
"quantity": 11.0,
"serial_number": "sample string 12",
"price": 13.0,
"is_under_warranty": true,
"discount": 15.0,
"purchase_order_details_id": "41009ab4-8f37-4421-86a1-25e67d825a3a",
"user_id": "37e96a95-d7bc-4fca-a0f7-a224b411b7fc",
"remark": "sample string 18",
"no_warranty_reason": "sample string 19",
"db_unit_of_measure_id": "d374d846-f17e-4634-8c4d-b63c79793f54",
"included_on_last_stock_compute": true,
"signed_by_company": true,
"company_vat_id": "f3f4fd80-8351-4c00-82ad-4014cacc7033",
"vat_value": 24.0,
"vat_rate": 25.0,
"invoice_id": "da4e6aaf-f5e1-4a18-be86-c904bf113a8c",
"invoice_details_id": "fff54162-980e-4308-b38e-5fab05d1b936",
"is_customized": true,
"modified_dateutc": "2026-06-16T21:16:50.0171035+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>aead67d2-a627-47f6-9924-118c9caf9a60</article_id> <article_name>sample string 8</article_name> <article_stock_location_id>ece1d0ee-05db-462b-a269-583dc475ead0</article_stock_location_id> <company_vat_id>f3f4fd80-8351-4c00-82ad-4014cacc7033</company_vat_id> <db_unit_of_measure_id>d374d846-f17e-4634-8c4d-b63c79793f54</db_unit_of_measure_id> <discount>15</discount> <id>ebceb971-ccf9-4223-b198-2f1ff0a9adf0</id> <included_on_last_stock_compute>true</included_on_last_stock_compute> <invoice_details_id>fff54162-980e-4308-b38e-5fab05d1b936</invoice_details_id> <invoice_id>da4e6aaf-f5e1-4a18-be86-c904bf113a8c</invoice_id> <is_customized>true</is_customized> <is_dummy>true</is_dummy> <is_under_warranty>true</is_under_warranty> <job_approval_id>39bb0388-2a35-49a5-8037-87b675ec0880</job_approval_id> <jobs_id>46bdbbae-25ca-4f7e-be95-c846d71d7f19</jobs_id> <modified_dateutc>2026-06-16T21:16:50.017Z</modified_dateutc> <no_warranty_reason>sample string 19</no_warranty_reason> <price>13</price> <purchase_order_details_id>41009ab4-8f37-4421-86a1-25e67d825a3a</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>37e96a95-d7bc-4fca-a0f7-a224b411b7fc</user_id> <vat_rate>25</vat_rate> <vat_value>24</vat_value> <working_date>2026-06-16T21:16:50.017Z</working_date> </job_part_usage>