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": "b39c43f1-81bd-40c5-a89e-a5a923697605",
  "purchase_order_id": "3fda9e21-bb8a-4966-98a3-787b503fae02",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "32f9a92d-4e92-4443-b095-fc1c25448dad",
    "id2": 2,
    "jobs_id": "e9d16460-1994-4edd-9aa5-188fddb3c95e",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "3ad7d776-7cda-4a90-87e0-4f22bb84ef6f",
    "supplier_company_code": "sample string 6",
    "user_id": "73e3a3b3-1960-4495-a655-2a22d998d683",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-09-04T14:35:33.9047366+00:00",
    "date_update": "2025-09-04T14:35:33.9047366+00:00",
    "date_delivery": "2025-09-04T14:35:33.9047366+00:00",
    "confirmed_date_delivery": "2025-09-04T14:35:33.9047366+00:00",
    "delivery_db_address_id": "a368a4ef-cc3e-43ac-85ec-3af2e0c6bb1d",
    "approved_by_user_id": "27aa6fc6-7c59-4919-b1fc-eeb4ae48ae44",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "1b957a03-ef64-477f-bd9a-863304b8ec9f",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "2d95023f-d661-4d56-b2e0-4d6d9a7499ca",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "03e96f74-84f5-428a-be2b-820aefa12948",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-09-04T14:35:33.9047366+00:00"
  },
  "article_id": "ba685258-c1ea-4aa7-a90f-9771c6d7fe1c",
  "article_code": "sample string 5",
  "article": {
    "id": "6130e58b-e531-42f2-940c-7af91c985c3b",
    "article_category_id": "8133f234-b497-484d-bb2d-0dd2ccaa3b84",
    "article_category": {
      "id": "c4a6e59b-8053-4a46-9fa4-97e01fb431a2",
      "parent_id": "a4283884-0a4e-4de7-aa55-41a22ec2e7bf",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-09-04T14:35:33.9047366+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "618ea14e-038c-4f31-917d-6f4826a979b4",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "ffb2ecc7-d65e-474f-8334-ccc3b0575026",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "4870996c-565f-4635-aae8-8554b71b850d",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "3307b440-0083-4a3c-9765-b56e5cdb5d54",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "540de93b-3fe1-46f0-8bb3-c6f411861e5a",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "9a3ca8c4-ba8d-4dcc-8500-bd63479bfbe5",
    "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-04T14:35:33.9047366+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-04T14:35:33.9047366+00:00",
    "date_update": "2025-09-04T14:35:33.9047366+00:00",
    "modified_dateutc": "2025-09-04T14:35:33.9047366+00:00",
    "article_color_id": "9f55a03f-e1cc-4598-8abc-565971416867",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "941af854-60f6-4086-913c-886b00a237fa",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-09-04T14:35:33.9047366+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "440b3aac-b78a-4169-956d-70d84a63f5b5",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "9554fc24-681f-4eaf-81fb-53829941f28e",
    "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-04T14:35:33.9047366+00:00"
}