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": "ab37854e-e604-47bb-b6d8-8dba75810581",
  "purchase_order_id": "b658140b-cc4d-4748-8a65-3aa99d13cfd9",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "d798204a-301e-4f26-8c96-8154de7af5c1",
    "id2": 2,
    "jobs_id": "65930e84-ed5f-41d2-9f5b-f6c8aa68a93d",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "a42e2139-4035-43e8-aa07-9c9ab622d79b",
    "supplier_company_code": "sample string 6",
    "user_id": "1044c408-7d92-4755-af43-6c6b34ef3977",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-09-16T11:50:54.3511488+00:00",
    "date_update": "2025-09-16T11:50:54.3511488+00:00",
    "date_delivery": "2025-09-16T11:50:54.3511488+00:00",
    "confirmed_date_delivery": "2025-09-16T11:50:54.3511488+00:00",
    "delivery_db_address_id": "1b90b2ae-be42-4f9c-a377-d5615187bee4",
    "approved_by_user_id": "6226f767-4277-4bc9-951d-4461de058961",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "bbab73da-c651-4f1f-aa17-953f57c84865",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "4673d81a-5173-4f30-8f32-b99b280e486f",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "46eeca89-feff-47c2-a24d-d4d90ac74bd6",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-09-16T11:50:54.3511488+00:00"
  },
  "article_id": "2b49af34-1ae8-4e32-8d56-5654050932a4",
  "article_code": "sample string 5",
  "article": {
    "id": "429fb0ba-86ad-4ad5-a206-12e30244cd5e",
    "article_category_id": "8cddd18f-6d26-438d-a13f-b8275d2ffc94",
    "article_category": {
      "id": "eddf0457-6042-4fbf-a5c0-bb3de1774e7f",
      "parent_id": "0f30825e-283f-434b-8402-05f730476f54",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-09-16T11:50:54.3511488+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "163cdaf4-e376-456f-bc6e-f9ed0a75c3ea",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "0314fa14-384d-484b-aa31-df4f0af5d064",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "8e9abf9f-e2a5-4846-9fdc-7ed172a3aa72",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "ef7576ac-919b-4a78-ab38-ce3250bd8f72",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "2a20f4dc-d1f1-4358-806a-5902a748b0c7",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "24660f13-ff75-49da-9359-2fbd4925722b",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-09-16T11:50:54.3511488+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": "2025-09-16T11:50:54.3511488+00:00",
    "date_update": "2025-09-16T11:50:54.3511488+00:00",
    "modified_dateutc": "2025-09-16T11:50:54.3511488+00:00",
    "article_color_id": "c7eb9cca-3792-49e9-9584-357ce433a10b",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "a465aad8-cc25-4a69-9131-93f3d5351747",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-09-16T11:50:54.3511488+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "c2b5a81c-7577-4568-9e4f-0cd3e1f92bb7",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "310ec2f4-2e2a-44e7-a5bc-c8e079435130",
    "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": "2025-09-16T11:50:54.3511488+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.