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": "86b27f7c-3874-4c0d-8864-526e8befd6e6",
  "purchase_order_id": "7a0960e8-bef0-46f1-88be-3467b78b63ae",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "82e914ee-629f-469c-8cbd-523c6fedc360",
    "id2": 2,
    "jobs_id": "75815968-99ff-4bcb-9129-7063bb2067e9",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "247d71c7-6089-4fc9-8d02-4b60c7f72fb9",
    "supplier_company_code": "sample string 6",
    "user_id": "6608f02d-2310-4bfe-8c17-4618877fd623",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-07-30T23:28:56.4542211+00:00",
    "date_update": "2026-07-30T23:28:56.4542211+00:00",
    "date_delivery": "2026-07-30T23:28:56.4542211+00:00",
    "confirmed_date_delivery": "2026-07-30T23:28:56.4542211+00:00",
    "delivery_db_address_id": "596f430a-eeac-4351-aeb2-1f04d396d1d6",
    "approved_by_user_id": "857e5723-1104-45cc-938d-7863e9933bfa",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "082116ae-baea-48cb-ac0d-78206e83a6f9",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "3ce32552-ef70-45b7-abcb-0cf56740d644",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "da883544-9297-49be-bf97-8741e5f45c4e",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-07-30T23:28:56.4542211+00:00"
  },
  "article_id": "f8dd1889-e8b4-46d0-945a-c37060f54940",
  "article_code": "sample string 5",
  "article": {
    "id": "b875981b-9078-4db3-943a-370e49519af0",
    "article_category_id": "48ec6297-753a-449a-861e-4911d1baac78",
    "article_category": {
      "id": "846580ab-e947-4eef-b6da-fcbff418636c",
      "parent_id": "960af415-dfde-4dd9-a2d3-e6b8a70ac981",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-07-30T23:28:56.4542211+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "6baec634-6c49-474a-b23a-710149342418",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "3507db5f-5b05-44e1-bcaa-9af25300f366",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "54ab61a2-60be-4870-bfc0-4c138f0eca24",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "8f5e0777-8d2f-41ed-86c3-b0ab2e7575a6",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "e51514d5-883c-470f-8a03-d3cf1855d642",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "312bdb61-576a-46f3-9fac-d92cb40ad453",
    "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-30T23:28:56.4542211+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-30T23:28:56.4542211+00:00",
    "date_update": "2026-07-30T23:28:56.4542211+00:00",
    "modified_dateutc": "2026-07-30T23:28:56.4542211+00:00",
    "article_color_id": "ee4bd29f-2d09-4304-b2af-d1e5589b7e83",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "43c6516d-505c-49ea-abde-066555acdeca",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-07-30T23:28:56.4542211+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "2edd1bbc-8d81-48f4-b5e0-18b6e0e00337",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "fe2f57e8-5f04-49bc-97ce-a68c0526702d",
    "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-30T23:28:56.4698467+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.