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": "9ea18163-a856-4ff4-a23e-5e7d96491201",
  "purchase_order_id": "81a8d22d-7209-42ca-922d-8465bbabbe68",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "c960d587-b280-4074-ad50-b171c65186ff",
    "id2": 2,
    "jobs_id": "7f822e8f-a092-417a-a03f-9d58d5848791",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "8b2f2902-bdd5-4d96-873e-8f927d16ef60",
    "supplier_company_code": "sample string 6",
    "user_id": "8126ba08-5f7e-4f2c-87da-664e8e6fabfa",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-03-03T03:19:14.0665348+00:00",
    "date_update": "2026-03-03T03:19:14.0665348+00:00",
    "date_delivery": "2026-03-03T03:19:14.0665348+00:00",
    "confirmed_date_delivery": "2026-03-03T03:19:14.0665348+00:00",
    "delivery_db_address_id": "d92449b1-e444-42ad-96a6-06b38836b90e",
    "approved_by_user_id": "7ef278cd-3617-4d9a-8a95-8f63d8aa167c",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "57533e91-441f-4c17-a69b-118fc4dc7ed8",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "c6e4ead1-4daa-47e4-9b7a-cfc040e2c59f",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "56a9745e-fb23-4072-af6f-c5625ed9b14c",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-03-03T03:19:14.0665348+00:00"
  },
  "article_id": "9db34d28-6c8e-45c9-a351-368d5459621f",
  "article_code": "sample string 5",
  "article": {
    "id": "03bbbcca-c84c-45d1-8332-132f00a4eb3a",
    "article_category_id": "0186fdac-8129-4cd3-a370-f444e100a0e9",
    "article_category": {
      "id": "05baf98a-2913-4502-b1d3-d27487f0a37d",
      "parent_id": "d0067dd4-ccbc-40e4-af7d-56070b0476e2",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-03-03T03:19:14.082153+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "6f65aa2c-df72-4b83-9ab1-43c6e9df4c73",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "4da11b33-9d8c-4e47-bdd8-454b695791b3",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "676c0bb7-fe73-409d-94db-f5a073a62bee",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "73a0ef1c-5d80-43f1-b7a9-f1cfe1f14a72",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "fdcf0236-3bcf-4cb0-a7bb-ffe48cf0becc",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "46256d4d-3a3f-45f4-b2d8-e081a0f5dac8",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-03-03T03:19:14.082153+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-03-03T03:19:14.082153+00:00",
    "date_update": "2026-03-03T03:19:14.082153+00:00",
    "modified_dateutc": "2026-03-03T03:19:14.082153+00:00",
    "article_color_id": "1e267ec5-5779-48dc-829d-d75cbd544d55",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "8e2520f8-01c7-4193-b8fd-c7e923cfe5f8",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-03-03T03:19:14.082153+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "df3f27e1-e2fd-425b-b58b-4f6daa5eb4aa",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "027b0c65-ed13-434a-a62f-170c266cd6d3",
    "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-03-03T03:19:14.082153+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.