Retrieves the purchase order order lines with the specified key

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

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": "249da519-c851-48a5-9dd0-e7e963a72846",
  "purchase_order_id": "b1ef9e9b-3543-4ea2-87f7-64cb05a90011",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "25b4fba8-26ba-4dd6-b66d-abf5ca28df40",
    "id2": 2,
    "jobs_id": "a002d9d3-caa6-46a7-9443-bbfab07ee7da",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "ec857e55-afda-4f00-8c56-da3a9419024e",
    "supplier_company_code": "sample string 6",
    "user_id": "9fe11177-5fde-4ac9-9ab2-49a01da4a46d",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-02-22T18:00:29.6279405+00:00",
    "date_update": "2025-02-22T18:00:29.6279405+00:00",
    "date_delivery": "2025-02-22T18:00:29.6279405+00:00",
    "confirmed_date_delivery": "2025-02-22T18:00:29.6279405+00:00",
    "delivery_db_address_id": "c323a9de-9b0c-4802-94c7-d4f55641c64a",
    "approved_by_user_id": "09e681e4-59da-4e0a-98e3-253ccbbf4e69",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "ee534e81-01be-4abe-9c99-dfc3217e73c1",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "fb49bfb9-0f6f-47d4-b3e3-22b86e17044b",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "35baa422-1431-4cc4-8e48-7b51417b018b",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-02-22T18:00:29.6279405+00:00"
  },
  "article_id": "21206c3d-b0ab-4ad8-ade0-5bafabd2852f",
  "article_code": "sample string 5",
  "article": {
    "id": "fd2d8385-19ad-4480-8857-9a10875ca783",
    "article_category_id": "3701389d-5755-47ad-85fb-366debb4fbe6",
    "article_category": {
      "id": "8742b48f-4854-4b7c-8281-aa1d08042aa8",
      "parent_id": "d0c1874d-ffb9-43f9-96a4-a2c2fcebe7e7",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-02-22T18:00:29.6279405+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "bcee5343-60ef-4167-94b6-da2b9b82fb02",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "8dda6e8a-b856-4a70-aa91-227a9eef487d",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "999b9cfc-c185-464b-9980-48f50ad40542",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "cd7a756c-fa52-4bff-a537-9c9d3ab72964",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "fc5c122a-cad5-44f1-b20a-09d1e0918bba",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "daf9d0da-9219-4b8c-b37f-2d95eb91ea10",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-02-22T18:00:29.6279405+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-02-22T18:00:29.6279405+00:00",
    "date_update": "2025-02-22T18:00:29.6279405+00:00",
    "modified_dateutc": "2025-02-22T18:00:29.6279405+00:00",
    "article_color_id": "5436ef29-5e24-47ca-a07c-771002573a1c",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "0b386f2b-5a5d-42bb-a80a-fa64f40c1aa4",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-02-22T18:00:29.6279405+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "238e9e05-150c-4e91-9faf-4f6ace47a9b9",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "e367ba46-88da-45d8-b365-7a1c951d264b",
    "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-02-22T18:00:29.6279405+00:00"
}