Updates the purchase order order lines with the specified key

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters :

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

Request Formats :

application/json, text/json

Sample:
{
  "id": "2815ea19-717e-4457-9028-f0695d415c29",
  "purchase_order_id": "c73b5e1e-f82a-4031-8219-b58bd5a64ae2",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "b4662b38-8aef-4bc8-bbb9-6162af94be36",
    "id2": 2,
    "jobs_id": "a07a13dc-05fe-4cb2-b2dc-62c094e9dd34",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "2d7b6955-0b1d-4415-a3cb-decb9857feea",
    "supplier_company_code": "sample string 6",
    "user_id": "bc714f7c-fed7-4b41-829b-c480742b92f2",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-04-09T17:43:05.3629785+00:00",
    "date_update": "2026-04-09T17:43:05.3629785+00:00",
    "date_delivery": "2026-04-09T17:43:05.3629785+00:00",
    "confirmed_date_delivery": "2026-04-09T17:43:05.3629785+00:00",
    "delivery_db_address_id": "37ab51a1-1e64-4811-98a0-7abce859d54b",
    "approved_by_user_id": "7681431d-61e8-44dd-a9d4-a0b4dba94bff",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "4e9bb9c4-aa0c-45b2-af50-df9cba278afe",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "ba4d6e76-c8f2-4ba4-8e41-45c33af0495e",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "5d11fe3a-f3fe-4221-8f7b-f08e1024b510",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-04-09T17:43:05.3629785+00:00"
  },
  "article_id": "0e6d6c05-dd96-40a8-93bc-6a523e221e0a",
  "article_code": "sample string 5",
  "article": {
    "id": "e6d53117-edd6-46d1-a026-7701eaac5fda",
    "article_category_id": "e80b829e-8b6e-4210-9b55-f88f64989df8",
    "article_category": {
      "id": "01565e34-2c8f-426c-b306-9545566295d1",
      "parent_id": "e6049e66-f56b-4252-8414-6a7d924956ce",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-04-09T17:43:05.3786148+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "62c24fc6-057c-43c5-87c4-c8e2e19ba468",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "25513d09-09df-465e-b959-6ce4f569263f",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "dfbd870a-9f0c-4b2c-adbd-9fefdd37dac0",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "6c52401a-166e-4b63-bfb2-52e76a1f693f",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "2f364b71-7c9c-4da0-9b13-35e07866d364",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "4f8e0f5b-899e-4f4b-b830-f385328342bb",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-04-09T17:43:05.3786148+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": "2026-04-09T17:43:05.394271+00:00",
    "date_update": "2026-04-09T17:43:05.394271+00:00",
    "modified_dateutc": "2026-04-09T17:43:05.394271+00:00",
    "article_color_id": "83ce56a6-cddc-4461-a8f3-cd2f61b6097f",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "80372a42-4026-44a3-b433-43af720d9dda",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-04-09T17:43:05.394271+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "36d9a293-6501-4b3e-b467-074ed74272b4",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "60db25af-86c5-473a-8481-ed07d88cfddb",
    "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": "2026-04-09T17:43:05.394271+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.