Retrieves all the purchase order order lines

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult

purchase_order_details
NameDescriptionTypeAdditional 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

Sample:
{
  "id": "c73b0b0c-3f44-4b92-98a7-160026dd3c57",
  "purchase_order_id": "dc97d48e-5cf2-460d-ad22-0339b2b65dc4",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "ae46c474-88c0-4830-9fe2-1a83b68997d6",
    "id2": 2,
    "jobs_id": "fe694df0-e0e0-4c07-b24f-11eaa1f45874",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "0ded77ec-4587-4df0-8ac9-9cff7325689c",
    "supplier_company_code": "sample string 6",
    "user_id": "d04b65e9-938a-4bdf-9273-da759c3939f5",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-09-03T17:18:10.882295+00:00",
    "date_update": "2025-09-03T17:18:10.882295+00:00",
    "date_delivery": "2025-09-03T17:18:10.882295+00:00",
    "confirmed_date_delivery": "2025-09-03T17:18:10.882295+00:00",
    "delivery_db_address_id": "d329d58e-227e-4722-a8c4-bd7f595d550d",
    "approved_by_user_id": "39a11817-497e-4d54-96d8-57b1e8a84731",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "498d1be6-145b-4865-9d4f-92063d8a8f48",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "e4ed86ee-ab32-4294-8e25-ea8c2d2dd33c",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "da4d6e41-70b4-46ab-9d30-992da6c6155b",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-09-03T17:18:10.882295+00:00"
  },
  "article_id": "d82f17b3-2f1d-4058-9e2b-552f43ab2812",
  "article_code": "sample string 5",
  "article": {
    "id": "525cb36e-7c43-415e-86e9-1bc1a4003273",
    "article_category_id": "b054110c-4489-4eec-bf3c-dcc2688a2532",
    "article_category": {
      "id": "07109b5c-5416-460a-ac0e-a38776da2ad6",
      "parent_id": "2bf79542-a221-46bb-bb14-60549de6add2",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-09-03T17:18:10.882295+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "0d3c8438-23ed-4566-aa1a-2e82a580fb1b",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "a2d4a392-3393-4d70-baa5-96568ae49e27",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "a42d78fd-7d46-4a8f-8e52-ed27abde9372",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "111e5153-db37-4d71-affc-5a00e429d3d0",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "938f200f-77f4-4e0a-87f6-2c84fd41e352",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "30cb4290-6a21-4e39-be27-0ada3adb3d91",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-09-03T17:18:10.882295+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-09-03T17:18:10.882295+00:00",
    "date_update": "2025-09-03T17:18:10.882295+00:00",
    "modified_dateutc": "2025-09-03T17:18:10.882295+00:00",
    "article_color_id": "c4b0fe89-6544-46dc-991b-039fda00d9aa",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "2eb25116-29fb-4005-9655-3e2f3a3947a1",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-09-03T17:18:10.882295+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "6681021f-4763-41ee-a694-adff1225e02b",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "fac20885-7f17-4a4a-9492-1162a1cf992e",
    "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-09-03T17:18:10.882295+00:00"
}