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": "03603c59-f29a-4afb-b4cb-c04d40aa2a79",
  "purchase_order_id": "d1e2a7fc-03b4-4e27-ba90-0c5b9ed352f9",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "b9497910-4a86-409f-a3f1-7df4d77522d9",
    "id2": 2,
    "jobs_id": "d0a9b0da-a0ad-4b33-b43b-023b8463f6bd",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "541afe4b-487e-43db-92eb-ae085109ae35",
    "supplier_company_code": "sample string 6",
    "user_id": "692f6de9-03aa-416f-bb43-1d17c1b865d9",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-01-28T22:09:15.7247726+00:00",
    "date_update": "2025-01-28T22:09:15.7247726+00:00",
    "date_delivery": "2025-01-28T22:09:15.7247726+00:00",
    "confirmed_date_delivery": "2025-01-28T22:09:15.7247726+00:00",
    "delivery_db_address_id": "38f3d4f2-6cef-4277-8571-87593feb05ee",
    "approved_by_user_id": "13278cbf-74a0-48bd-96f2-ce3d80983f5f",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "99955df2-ef60-4d03-aa76-33ef289a6de3",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "d711a801-103f-4957-9845-837223649c84",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "268b0256-bfc7-4c08-9977-5effc6276384",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-01-28T22:09:15.7247726+00:00"
  },
  "article_id": "a12cf5fe-e262-4f65-9f22-48b4aac665f3",
  "article_code": "sample string 5",
  "article": {
    "id": "bb63e833-1fb0-42f9-9a6a-6741d27dcaf3",
    "article_category_id": "f75f1ee0-37bd-42f6-81f2-993e5ed1ac1b",
    "article_category": {
      "id": "875f5613-b882-4ea5-97e6-4661158702c0",
      "parent_id": "a4f17d1e-aacc-4519-a32d-66190f6662b6",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-01-28T22:09:15.7247726+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "5d7e7575-7712-4213-a4e9-000f5abeb67d",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "50a28bee-8bc0-41a9-93d2-b25721e9f4c4",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "77f22881-0467-47d2-8744-ad4db07210c9",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "c9007818-e5b3-464a-ab23-08a9b355079d",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "6c42f6e9-8b15-4c94-adcb-f0a4fcac7200",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "8bfb673a-419b-4f9f-9a1d-302780311a30",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-01-28T22:09:15.7247726+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-01-28T22:09:15.7247726+00:00",
    "date_update": "2025-01-28T22:09:15.7247726+00:00",
    "modified_dateutc": "2025-01-28T22:09:15.7247726+00:00",
    "article_color_id": "7d19c1e7-8090-4478-9563-cc71c63047c3",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "3f60e405-1294-4710-ba18-9f0f95742e54",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-01-28T22:09:15.7247726+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "9638c6ad-b764-40c4-8848-2c42370d10c7",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "d1319871-b533-4be5-a097-295d137dcd05",
    "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-01-28T22:09:15.7403963+00:00"
}