Retrieves all the purchase order order lines
Request Information
URI Parameters :
None.
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": "0de265f3-fc97-40a8-b087-e76c3d3654ce", "purchase_order_id": "83838aa1-dad3-4756-89ed-bf404dc85e05", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "6f2d9aec-2d9d-4b1b-9ecc-d1548284d9b2", "id2": 2, "jobs_id": "15699a2d-1ec7-4f4b-8a08-8476fd7197be", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "0b4d6d68-014a-4c40-9402-4b12a4e5a03c", "supplier_company_code": "sample string 6", "user_id": "9aed47c4-9477-49d9-939a-ee9e7fe4bde8", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2023-03-30T20:10:13.2524731+00:00", "date_update": "2023-03-30T20:10:13.2524731+00:00", "date_delivery": "2023-03-30T20:10:13.2524731+00:00", "confirmed_date_delivery": "2023-03-30T20:10:13.2524731+00:00", "delivery_db_address_id": "db43b1eb-3f61-48d7-94f5-36e53495d0f0", "approved_by_user_id": "6bf62984-8d04-4d4e-81dd-a32ea014f92b", "approved_by_user_code": "sample string 18", "technical_user_id": "2ac2d083-ec34-425e-9874-717a7636c1e8", "technical_user_code": "sample string 20", "purchase_order_status_id": "75d3952a-efce-428a-8144-704e8a27d1d7", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "e5e1cc98-d0f6-43df-9396-c36e3f8d79c9", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2023-03-30T20:10:13.2524731+00:00" }, "article_id": "791f2b42-32e3-428c-b3dd-4ba581c12644", "article_code": "sample string 5", "article": { "id": "ab6f0f1d-2497-431f-9a65-242c97a09896", "article_category_id": "bc1285e2-067e-4da6-ba63-ba4f99e1a863", "article_category": { "id": "0a7fdd1f-6271-4f0d-ab89-d0ade4111e5b", "parent_id": "3c277802-018a-4244-840f-1de54e8a2d84", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2023-03-30T20:10:13.2524731+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "81b86099-b378-4e2e-bb8a-6a453f880482", "article_group_1_code": "sample string 5", "article_group_2_id": "9b493548-53aa-4751-9c7a-535e09946a1d", "article_group_2_code": "sample string 7", "article_group_3_id": "dfacd7c8-a135-45cf-8493-d4ac172a861e", "article_group_3_code": "sample string 9", "article_group_4_id": "f99c852b-fdea-4aeb-b973-acf897a5c188", "article_group_4_code": "sample string 11", "article_group_5_id": "3d09d389-f118-4f5b-9cc6-ea49bc907369", "article_group_5_code": "sample string 13", "article_group_6_id": "23d0bccc-ce14-4424-bb1b-a2db5c6f81eb", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2023-03-30T20:10:13.2524731+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": "2023-03-30T20:10:13.2680904+00:00", "date_update": "2023-03-30T20:10:13.2680904+00:00", "modified_dateutc": "2023-03-30T20:10:13.2680904+00:00", "article_color_id": "e2177881-6880-48dd-90c0-469d6d600d29", "article_color_code": "sample string 38", "article_color": { "id": "e1eb23c7-1264-467f-9740-52a9c5709b1d", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2023-03-30T20:10:13.2680904+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "823695b3-beb9-49e3-8a80-dfd56ea62805", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "b1ff0a34-3cd2-407c-8d70-ddaf5849ff9a", "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": "2023-03-30T20:10:13.2680904+00:00" }