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": "9c2ee588-341d-4a74-bb21-efc362784919",
  "purchase_order_id": "241de13e-b887-4aa5-b5e8-2193f41114da",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "5c59b922-a687-4397-95a4-b6ea5c64f0e6",
    "id2": 2,
    "jobs_id": "b02854be-a0d9-4319-bdd3-214c55cfdc04",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "28f35906-0aa1-4720-b3af-e7d850f49851",
    "supplier_company_code": "sample string 6",
    "user_id": "f5f4c0be-9229-4d6d-b699-cff19b9ac01c",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2022-12-06T06:16:59.1739716+01:00",
    "date_update": "2022-12-06T06:16:59.1739716+01:00",
    "date_delivery": "2022-12-06T06:16:59.1739716+01:00",
    "confirmed_date_delivery": "2022-12-06T06:16:59.1739716+01:00",
    "delivery_db_address_id": "d0a43418-a2f3-4a57-94e0-89f9ab189c05",
    "approved_by_user_id": "cbe5df12-dc01-4de8-8ed8-af617e4f7911",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "f96012b1-2a1e-4f04-9798-a2ab50e056a9",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "2d9ad742-34c1-4079-800e-e42a19802009",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "7fd537aa-03cd-4175-b50b-8dcba21fbe4f",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2022-12-06T06:16:59.1739716+01:00"
  },
  "article_id": "bceea9da-eb6f-44ea-bcf1-b52c0512e84b",
  "article_code": "sample string 5",
  "article": {
    "id": "fd7d7877-6307-4805-86e9-52c1705377ed",
    "article_category_id": "8cbb9b3d-3ff6-4410-ad24-4c0ef7281768",
    "article_category": {
      "id": "299cdf81-7539-4c44-8554-4dda747d68cc",
      "parent_id": "f6e8c251-3f60-433f-8c5a-2d42be2e05cc",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2022-12-06T06:16:59.1739716+01:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "65b96699-c4a3-411b-816a-54206b99ade2",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "e85be9b4-86c6-4632-ab44-b7d160edbea3",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "ae2502fe-bd6d-41a2-b958-2efffe6a76ff",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "6ccf07ad-1399-477c-9e95-4a61e0ac92d4",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "a5831cc6-1665-49a3-88ce-4bd3ab3f27bb",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "255c2099-2c21-4b91-b225-4ec054a2efb6",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2022-12-06T06:16:59.1739716+01: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": "2022-12-06T06:16:59.1739716+01:00",
    "date_update": "2022-12-06T06:16:59.1739716+01:00",
    "modified_dateutc": "2022-12-06T06:16:59.1739716+01:00",
    "article_color_id": "16ed97ea-3123-4092-bed4-0708fbca7f2f",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "2b9cae88-1f41-4abd-8940-c51626f5b886",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2022-12-06T06:16:59.1739716+01:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "be03822f-918c-4949-a742-3323b37eb5bb",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "4b612f3c-90ee-4335-9912-839f8f3c13bf",
    "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": "2022-12-06T06:16:59.1739716+01:00"
}