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": "4e6889c9-992e-4b99-8a94-7076c6726149",
  "purchase_order_id": "8d94af50-4d5b-4082-be51-6ea292890622",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "68991045-cedd-4fa3-85b7-b2a4ee466d12",
    "id2": 2,
    "jobs_id": "f6b5b411-50ce-4647-ad49-a72b15d554fa",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "bc09cc83-9d63-4808-9274-48e3741717a1",
    "supplier_company_code": "sample string 6",
    "user_id": "3f33784a-14ac-441a-8c2a-2feb2ea6e02f",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-05-21T15:56:53.5155072+00:00",
    "date_update": "2026-05-21T15:56:53.5155072+00:00",
    "date_delivery": "2026-05-21T15:56:53.5155072+00:00",
    "confirmed_date_delivery": "2026-05-21T15:56:53.5155072+00:00",
    "delivery_db_address_id": "eac61623-ea32-4b04-a851-b93caab2ca9d",
    "approved_by_user_id": "d3aa0c49-7a77-4c90-9f73-bcdd1b7147dd",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "4080bd5b-e73a-41b5-bf36-6498e1e812f9",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "55ae01be-3f31-4bc2-b524-dcee63899517",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "65eea883-8c31-4cda-8ba1-3ca4503542fb",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-05-21T15:56:53.5155072+00:00"
  },
  "article_id": "d4616997-59c9-493f-998e-02a6c1835b3f",
  "article_code": "sample string 5",
  "article": {
    "id": "0b62f989-c02c-4f41-b5c9-1ff8b045f98f",
    "article_category_id": "4761673a-791c-4e81-acf3-0364ea6c3b6e",
    "article_category": {
      "id": "988e8657-a613-439a-b05c-a2907522cc3a",
      "parent_id": "1c646080-aff1-4a33-8f6a-bacb410bd3d7",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-05-21T15:56:53.5155072+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "e13bdd07-7482-40d3-981c-b2ddfb950136",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "b015d0a8-0373-4425-ace4-d73d063b7a4c",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "19694c4b-b53c-462a-8f5c-17751a3f0d44",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "45624543-a3eb-4c1b-8974-76d7d263c42e",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "d9b41841-3f0a-4580-b89d-b9ae2aaefe2b",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "ffc6d23e-3e9b-4e6c-928c-3c63ead1bbd1",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-05-21T15:56:53.5155072+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-05-21T15:56:53.5155072+00:00",
    "date_update": "2026-05-21T15:56:53.5155072+00:00",
    "modified_dateutc": "2026-05-21T15:56:53.5155072+00:00",
    "article_color_id": "b2c2ff05-6614-49c9-8e3c-0edc3cffcd77",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "e96f72fc-cafc-44a3-8a1f-76cbcedaa9cc",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-05-21T15:56:53.5155072+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "512bd559-7eb4-49be-96fd-b2e19576f5ad",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "44633619-2da0-4220-85d0-3513a9804d12",
    "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-05-21T15:56:53.5155072+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.