Retrieves all the purchase order order lines
Request Information
URI Parameters :
None.
Body Parameters :
None.
Response Information
Resource Description :
IHttpActionResult
purchase_order_details| Name | 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": "ea9e5a5b-bcbb-4868-b91c-abd46da60036",
"purchase_order_id": "b775fc4c-e483-4f2f-9ee0-9f3e4e06ad04",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "ff7785c4-67d3-4724-b177-c270940cdcc2",
"id2": 2,
"jobs_id": "fd804917-7aa7-426c-ae2d-e727655efba3",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "30ef08fb-f2eb-4828-9c46-3b69b7cc8448",
"supplier_company_code": "sample string 6",
"user_id": "f903a262-4bf9-4c2c-ad04-794e4af20c2e",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2025-12-08T00:07:14.5881436+00:00",
"date_update": "2025-12-08T00:07:14.5881436+00:00",
"date_delivery": "2025-12-08T00:07:14.5881436+00:00",
"confirmed_date_delivery": "2025-12-08T00:07:14.5881436+00:00",
"delivery_db_address_id": "e7f1813a-05c1-455f-8d29-c63620cc3355",
"approved_by_user_id": "20b10afb-e0bc-4f92-b2e4-5f4514eb49ef",
"approved_by_user_code": "sample string 18",
"technical_user_id": "7ed2b9d3-6bd2-4f7d-85da-7f967532a7ef",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "0409b552-f981-44d2-911e-0fb4cdbca7d5",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "17308ddf-77ee-4243-98af-5c959afe7d1d",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2025-12-08T00:07:14.5881436+00:00"
},
"article_id": "3c5dcdc2-df2f-47f7-9513-2e6b6b65c745",
"article_code": "sample string 5",
"article": {
"id": "3168ecc2-8761-400a-9a9e-6b9af8b4cbb2",
"article_category_id": "43856dbf-a76b-4b85-8b45-bd54742c19e4",
"article_category": {
"id": "10faad54-7742-4b3e-a1e8-e37922ec89b5",
"parent_id": "e46ea1b4-5bb7-4423-bc04-d733d0f24aee",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2025-12-08T00:07:14.5881436+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "10811a69-bbdb-48a2-a09b-54a8059b79fd",
"article_group_1_code": "sample string 5",
"article_group_2_id": "c4314c82-9ef8-4cf9-af3b-c651c9b82f0a",
"article_group_2_code": "sample string 7",
"article_group_3_id": "431618bb-977d-4a48-b09e-3ba85efb88c7",
"article_group_3_code": "sample string 9",
"article_group_4_id": "0aaf5efa-211b-4102-8e65-7e41aa3bd4df",
"article_group_4_code": "sample string 11",
"article_group_5_id": "31737e87-710c-4392-9548-c8494e08ca6f",
"article_group_5_code": "sample string 13",
"article_group_6_id": "72a82148-2d27-429d-b281-b12e8151a236",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2025-12-08T00:07:14.5881436+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-12-08T00:07:14.5881436+00:00",
"date_update": "2025-12-08T00:07:14.5881436+00:00",
"modified_dateutc": "2025-12-08T00:07:14.5881436+00:00",
"article_color_id": "1b14cba6-f67a-440e-ae90-d8f3f24805a6",
"article_color_code": "sample string 38",
"article_color": {
"id": "3556bd1b-35a3-4fee-9abf-2a4576da2610",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2025-12-08T00:07:14.5881436+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "43857fe0-a084-400e-9495-c8aec3945c2d",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "ea4b44df-ec0b-44c5-9d8a-ad287b467836",
"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-12-08T00:07:14.5881436+00:00"
}