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": "0e8874c2-39a7-4483-bf7b-c9b0f5d1a0e1",
  "purchase_order_id": "9e52d5bf-022c-450f-8f75-3b52e7cb8e5b",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "09d61946-181d-4a3d-9cca-2da788923502",
    "id2": 2,
    "jobs_id": "bb494349-258b-4d14-a591-3cbe50273a26",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "6f0e3538-f751-4bd8-bcc3-b3cf70ef9e00",
    "supplier_company_code": "sample string 6",
    "user_id": "d18e29ea-e2f8-43fa-bc4b-70fe95302f0c",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-10-09T03:51:38.9590405+00:00",
    "date_update": "2026-10-09T03:51:38.9725869+00:00",
    "date_delivery": "2026-10-09T03:51:38.9725869+00:00",
    "confirmed_date_delivery": "2026-10-09T03:51:38.9725869+00:00",
    "delivery_db_address_id": "05e44a38-413e-41f0-acbd-d9ec9b2d335d",
    "approved_by_user_id": "46fa6c7f-4881-4e6b-b33f-0273d5d608dc",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "03b48fd2-9217-4a1e-96d5-073399231284",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "c41fe145-1812-4bcf-acf5-ed148a37e9ab",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "959ab0df-fd4f-4590-b97f-36b2d8d22207",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-10-09T03:51:38.9725869+00:00"
  },
  "article_id": "1fce871f-5a9d-4cc4-9290-828f83ba4fe2",
  "article_code": "sample string 5",
  "article": {
    "id": "fc638195-4332-4cd3-bb5f-6d9fcc82e7d4",
    "article_category_id": "bdb50027-0ec3-4b62-98ae-220a448ee92b",
    "article_category": {
      "id": "678d1abd-3d78-4cf2-8320-fa023af882c9",
      "parent_id": "9dd85eff-c84c-471d-a4f4-04176592a34f",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-10-09T03:51:38.9882128+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "8549cfdd-36a1-4944-a17d-913bd2224c26",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "eaac3272-7ff2-481e-aa24-808803be3a6e",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "026aa8b4-4a4e-4137-af8d-b91ed9738b3e",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "02d217e5-366e-4822-9f57-694a180144ad",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "6c360f89-8e76-4258-84e9-923e68fc5c17",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "f7a1ac68-6d94-4223-a6e9-8ef6594cd133",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-10-09T03:51:38.9882128+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-10-09T03:51:38.9882128+00:00",
    "date_update": "2026-10-09T03:51:38.9882128+00:00",
    "modified_dateutc": "2026-10-09T03:51:38.9882128+00:00",
    "article_color_id": "7006ee83-fbbb-479c-8d6f-e6b6959868ff",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "93c79020-9925-4b1a-98d0-1be7327ec2d1",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-10-09T03:51:38.9882128+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "f66a8e2a-9172-4c66-8fb4-9246f69a215b",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "20628c6a-1ce0-4477-b93b-0bb27d42b341",
    "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-10-09T03:51:39.019462+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.