Retrieves the purchase order order lines with the specified key
Request Information
URI Parameters :
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters :
None.
Response Information
Resource Description :
IHttpActionResult
purchase_order_detailsName | Description | Type | Additional information |
---|---|---|---|
id |
Primary Key |
globally unique identifier | |
purchase_order_id |
Foreign key of the purchase_order |
globally unique identifier |
Optionally required : purchase_order_id, purchase_order_reference or purchase_order must be provided |
purchase_order_reference_back_office |
Embedded entity "purchase_order" using ERP PK when adding/updating |
string |
Optionally required : purchase_order_id, purchase_order_reference_back_office or purchase_order must be provided |
purchase_order |
Embedded entity "purchase_order" when adding/updating |
purchase_order |
Optionally required : purchase_order_id, purchase_order_reference_back_office or purchase_order must be provided |
article_id |
Foreign key of article |
globally unique identifier |
Optionally required : article_id, article_code or article must be provided |
article_code |
Embedded entity "article" using ERP PK when adding/updating |
string |
Optionally required : article_id, article_code or article must be provided |
article |
Embedded entity "article" when adding/updating |
article |
Optionally required : article_id, article_code or article must be provided |
line_number |
Line Number, auto filled with (Highest+1) if value is 0/null |
integer | |
code |
Code of the article (auto filled if empty) |
string |
Max length: 255 |
supplier_code |
Code of the supplier for this article |
string |
Max length: 255 |
name |
Article Name (will be auto filled if article.name+description are empty) |
string |
Max length: 255 |
description |
Article description (will be auto filled by article.short_description if name+description are empty) |
string |
Max length: 255 |
price |
Unit Price |
decimal number |
Matching regular expression pattern: ^[0-9]\d*(\.\d+)?$ Range: inclusive between 0.1 and 1.79769313486232E+308 |
quantity |
Quantity |
decimal number |
Required Range: inclusive between 0.1 and 1.79769313486232E+308 |
memo |
Line memo/remark |
string | |
cost_price |
Unit Cost Price (statistic purpose) |
decimal number |
Matching regular expression pattern: ^[0-9]\d*(\.\d+)?$ |
reference_back_office |
Field used for Embedded entity (store there your ERP PK) |
string |
Max length: 50 |
modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Response Formats
application/json, text/json
{ "id": "0113371b-be2b-4db3-a5bc-a549ff1eacb5", "purchase_order_id": "5010138e-d4ee-4dc1-9522-87414ecf379c", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "f112a720-b194-45e2-a911-73ce9b5d8f9d", "id2": 2, "jobs_id": "11f1a562-e63e-4a04-b84e-76043b029982", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "309acb52-1906-40b6-8d73-a21e25c97582", "supplier_company_code": "sample string 6", "user_id": "fde78a24-a677-466f-84e9-ec65540c0b86", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-06-03T08:31:45.3646526+00:00", "date_update": "2025-06-03T08:31:45.3646526+00:00", "date_delivery": "2025-06-03T08:31:45.3646526+00:00", "confirmed_date_delivery": "2025-06-03T08:31:45.3646526+00:00", "delivery_db_address_id": "72e134fb-6ae7-4922-91da-fb2706c90809", "approved_by_user_id": "09c5aed1-8eb9-487f-b120-f2e54a3c6a2b", "approved_by_user_code": "sample string 18", "technical_user_id": "adef6d3d-8887-470c-9504-7d251199a873", "technical_user_code": "sample string 20", "purchase_order_status_id": "b532c468-a77a-44b2-a82b-3b3ed91472dc", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "74eab208-0e41-45de-8106-75e6609f061d", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-06-03T08:31:45.3646526+00:00" }, "article_id": "7d8a6296-c712-458e-87c3-44543044c28c", "article_code": "sample string 5", "article": { "id": "2742f3a6-0f09-4f73-b36d-2278a98ab5be", "article_category_id": "9728e785-774d-4905-9e98-1589acce4b63", "article_category": { "id": "62d55a1d-6da6-4cb0-b5c8-eb66d9308899", "parent_id": "e8fd5fc0-c0ee-41b2-bbfd-e73ae3a58419", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-06-03T08:31:45.3646526+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "ef2964c6-769f-48a8-8fd3-58534d972654", "article_group_1_code": "sample string 5", "article_group_2_id": "f45a9552-c4fd-45dd-a84b-8d2b28a29da6", "article_group_2_code": "sample string 7", "article_group_3_id": "e8ea22b9-94d8-455a-a766-7e8432da9f1b", "article_group_3_code": "sample string 9", "article_group_4_id": "c7ab3f3b-863d-47a8-8dce-9b2f843761ce", "article_group_4_code": "sample string 11", "article_group_5_id": "fe6f6033-fb31-412d-9507-7e111e81e652", "article_group_5_code": "sample string 13", "article_group_6_id": "fa073a43-9a8c-4090-935e-7d08aff4c37f", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-06-03T08:31:45.3646526+00:00", "article_increment": 20, "min_article_quantity": 21, "entered_price": 22.0, "cost_price": 23.1, "no_stock": true, "archived": true, "is_travel_fee": true, "is_mileage_fee": true, "code": "sample string 28", "name": "sample string 29", "description_short": "sample string 30", "description_long": "sample string 31", "barcode": "sample string 32", "notes": "sample string 33", "date_create": "2025-06-03T08:31:45.3646526+00:00", "date_update": "2025-06-03T08:31:45.3646526+00:00", "modified_dateutc": "2025-06-03T08:31:45.3646526+00:00", "article_color_id": "1c99eeb2-9dfc-42c4-a825-17bde7abcf4b", "article_color_code": "sample string 38", "article_color": { "id": "7096e90f-213d-4e44-9eeb-21d9dd6f05dc", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-06-03T08:31:45.3646526+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "2c791299-0f56-466b-832f-c90ea9819936", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "068b9462-3e35-4ccf-907f-ab7171a52520", "db_unit_of_measure_code_selling": "sample string 44", "translations": [ { "field_name": "sample string 1", "language_code": "sample string 2", "value_translated": "sample string 3" }, { "field_name": "sample string 1", "language_code": "sample string 2", "value_translated": "sample string 3" } ] }, "line_number": 6, "code": "sample string 7", "supplier_code": "sample string 8", "name": "sample string 9", "description": "sample string 10", "price": 11.0, "quantity": 12.0, "memo": "sample string 13", "cost_price": 14.0, "reference_back_office": "sample string 15", "modified_dateutc": "2025-06-03T08:31:45.3646526+00:00" }