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": "a115bf56-961c-49fd-abfb-dbdfd603502b",
  "purchase_order_id": "36f3f200-4680-44b1-ad46-d3154e5afdf2",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "362f9e34-28d3-4a28-9f3a-53b7f6726cb8",
    "id2": 2,
    "jobs_id": "7e171509-7b2f-4eee-961d-84e03c837ebb",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "267c5e53-7420-4f40-a12d-1e8e0e8e3359",
    "supplier_company_code": "sample string 6",
    "user_id": "b89a1f5c-db49-4a10-8801-7a2d830cbf16",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-04-18T01:01:56.8114641+00:00",
    "date_update": "2026-04-18T01:01:56.8114641+00:00",
    "date_delivery": "2026-04-18T01:01:56.8114641+00:00",
    "confirmed_date_delivery": "2026-04-18T01:01:56.8114641+00:00",
    "delivery_db_address_id": "ff1e2ad5-3855-403e-bb49-7e67787c5056",
    "approved_by_user_id": "b4dcd244-2bb2-4dcd-9d62-9acd3bb5ec7c",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "aab6640e-271a-45ab-8813-7dd4881d2a02",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "3bee4c28-059f-4b37-bf4a-7facd359c138",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "395eb6fe-7541-4d8b-a165-f0fd697dcb4a",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-04-18T01:01:56.8114641+00:00"
  },
  "article_id": "8ee0dfe5-0b6e-4ad7-bc38-fae5ceedfd73",
  "article_code": "sample string 5",
  "article": {
    "id": "ca3226b9-2fd5-44e3-b725-cfa5fe42e10d",
    "article_category_id": "9abaea99-8836-477d-a1eb-0083b1839edb",
    "article_category": {
      "id": "5975425e-c5b9-4262-a5fc-b4432ff06eee",
      "parent_id": "c5e8c411-4ed4-4208-bfea-54e709633ff1",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-04-18T01:01:56.8114641+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "788b8ec2-65e8-4754-b479-57c3c28e1ea6",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "0ffa904d-14a1-4e4f-8c36-8176e4fedf48",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "a37f4a54-c7af-4fa4-a3ef-59d1b68ebed2",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "9b6985be-a49f-4b49-b0c1-b45d23dca7b2",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "1703e8ae-0c5a-4c4c-a855-13c5708cb756",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "628c35da-1200-4bed-a246-42a828b37a20",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-04-18T01:01:56.8114641+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-04-18T01:01:56.8114641+00:00",
    "date_update": "2026-04-18T01:01:56.8114641+00:00",
    "modified_dateutc": "2026-04-18T01:01:56.8114641+00:00",
    "article_color_id": "8c847d4f-7670-4a68-ba39-999b0f9111b1",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "f8f9a21b-dcd0-462a-809c-89158b914b41",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-04-18T01:01:56.8114641+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "f2ac8ca2-17ab-45f2-8609-f2571944975c",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "2494d1a5-f882-4659-b817-88de57cb5119",
    "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-04-18T01:01:56.8114641+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.