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": "cc1a7981-8480-43c2-a2ee-3cfa0cb78ab0",
  "purchase_order_id": "c6e83ace-a04f-4c4d-ba6f-0c6584a4c3d1",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "98181230-304c-492f-ac2c-2ac68abdac3c",
    "id2": 2,
    "jobs_id": "ab28a7d5-db03-4bb1-ae8b-6f1c23decd4f",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "390319a8-5d2c-4233-91eb-e4add018f2e0",
    "supplier_company_code": "sample string 6",
    "user_id": "f74a7186-3403-4953-85b5-381d1487430f",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-07-09T21:47:01.7601504+00:00",
    "date_update": "2026-07-09T21:47:01.7601504+00:00",
    "date_delivery": "2026-07-09T21:47:01.7601504+00:00",
    "confirmed_date_delivery": "2026-07-09T21:47:01.7601504+00:00",
    "delivery_db_address_id": "119b5315-d6fd-403f-90d8-43f190ccebe5",
    "approved_by_user_id": "cfb49995-c695-4e8b-b1e0-7e0ae392faa4",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "4eab4071-72d6-4ba3-80e3-762ff513f457",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "b4cb7618-7454-463a-b2bb-c568535e342d",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "2e3bc098-7f98-443f-9128-c9c5281024de",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-07-09T21:47:01.7601504+00:00"
  },
  "article_id": "d35bb866-581e-4337-9543-f7433a9136ba",
  "article_code": "sample string 5",
  "article": {
    "id": "afde8265-ceaf-4925-b5ec-74317382aaef",
    "article_category_id": "570c5806-bca4-40b4-b6d9-b2087d2f5ea4",
    "article_category": {
      "id": "55e4d51b-d399-4db5-a4bd-c5ec8e0015ae",
      "parent_id": "ad28c20e-03ef-4212-900c-c8495784d95c",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-07-09T21:47:01.7601504+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "6cd6d624-7b6c-4000-9309-4b627dcd7fa8",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "9464ec89-4dba-4661-937f-a9042d06009a",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "e29373a9-0f65-4688-95e7-91d7751ae68b",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "30afb83a-903c-439c-aeae-dc30ff54022a",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "415afc17-ba21-499e-908c-91f0953bc07a",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "06b522ab-b55e-480b-95c8-81b867bc8930",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-07-09T21:47:01.7601504+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-07-09T21:47:01.7601504+00:00",
    "date_update": "2026-07-09T21:47:01.7601504+00:00",
    "modified_dateutc": "2026-07-09T21:47:01.7601504+00:00",
    "article_color_id": "8a392dc3-bf8f-4f49-9296-c02d582e8734",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "6e4ca380-b30d-4bee-9fed-98993e1b2d50",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-07-09T21:47:01.7601504+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "57a2ee5b-4135-4276-a448-f0e16427425a",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "d583d1ea-4fd8-41fe-9a29-5e9c4b7e27c0",
    "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-07-09T21:47:01.7601504+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.