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": "88c3ff8a-4900-4347-b7f1-90bf9e8bf8ea",
  "purchase_order_id": "d1867bae-4b51-41e9-a4e8-f89830741b91",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "3635fd18-017a-4e00-a896-a9bafbbb412c",
    "id2": 2,
    "jobs_id": "3fd5a3e6-32c1-4fd7-aed5-4ee1b21e1036",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "9b6ec9c9-d951-4d5e-825c-6d8432435b33",
    "supplier_company_code": "sample string 6",
    "user_id": "696af2ea-e7c2-4af2-8025-a12da5cb997b",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2024-12-20T04:17:16.0420174+00:00",
    "date_update": "2024-12-20T04:17:16.0420174+00:00",
    "date_delivery": "2024-12-20T04:17:16.0420174+00:00",
    "confirmed_date_delivery": "2024-12-20T04:17:16.0420174+00:00",
    "delivery_db_address_id": "f294741f-ec68-4222-b87d-2888bdf9a006",
    "approved_by_user_id": "e9eab834-6a52-4909-a4af-256db8a46eee",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "9d3d2d56-3007-4c92-9338-cc48266dd02c",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "e0f844cd-0e67-4866-9855-fe100f47b869",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "521734b8-d4bf-410c-b81c-9e3480be7c22",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2024-12-20T04:17:16.0420174+00:00"
  },
  "article_id": "b5bb8655-f871-4b3b-8988-28c80b0dc21f",
  "article_code": "sample string 5",
  "article": {
    "id": "aafbd114-7c1d-4112-b33d-a5daf51656e4",
    "article_category_id": "699fadba-fefe-4878-a0b9-585d423431ca",
    "article_category": {
      "id": "10adf897-6827-4f20-8a8d-ebc809f85b6d",
      "parent_id": "82ed8965-a01e-43b9-97ea-0ab2744ab40e",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2024-12-20T04:17:16.0576422+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "78843ea1-a284-451c-9894-38e73848c955",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "23475fa8-2bb1-4559-a159-a87642edd812",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "58bc9ee6-044b-4618-9aaf-1da3ae710cf0",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "ef7a1274-152f-4aea-921e-1e438d9c436e",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "e87b3392-76a5-4175-b848-4aa71f7eb83c",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "4a0515ab-2ff0-41a3-a1ee-bab7ac392643",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2024-12-20T04:17:16.0576422+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": "2024-12-20T04:17:16.0576422+00:00",
    "date_update": "2024-12-20T04:17:16.0576422+00:00",
    "modified_dateutc": "2024-12-20T04:17:16.0576422+00:00",
    "article_color_id": "cb57f381-041a-4001-8d00-ff9bbf53dacd",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "ef2dc95d-ca3b-4092-a62f-b3007ebe9299",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2024-12-20T04:17:16.0576422+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "53866c6b-1820-49bb-b5ac-16e4c6e3c1c4",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "f71906bd-78d9-4514-93be-7dce84124661",
    "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": "2024-12-20T04:17:16.0576422+00:00"
}