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": "2c20f1e2-7f2b-4146-aeae-891b9147daf9",
  "purchase_order_id": "cdb70b8c-ca96-4534-9949-b6d5647804b6",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "90d80664-4925-41cb-a360-470929bd3945",
    "id2": 2,
    "jobs_id": "4d0cf1da-42f2-4406-a307-a6890f9211c2",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "4a336655-19c4-4978-9396-8011a70da01b",
    "supplier_company_code": "sample string 6",
    "user_id": "96ade034-ccfc-47b2-ac53-dc0af670dc1f",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-07-10T20:54:15.4650125+00:00",
    "date_update": "2025-07-10T20:54:15.4650125+00:00",
    "date_delivery": "2025-07-10T20:54:15.4650125+00:00",
    "confirmed_date_delivery": "2025-07-10T20:54:15.4650125+00:00",
    "delivery_db_address_id": "a0183d00-270e-4b1b-93e2-c792e22021a3",
    "approved_by_user_id": "ecb95bcd-43fd-4fb9-8610-6c5a5f38e71c",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "b285fe9d-52fb-44d9-8c2c-00007ce4254b",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "3a74ac69-4330-43d2-88d6-6bba64c3ecf1",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "50fcb003-c0b3-4b12-97c9-85377e16dbeb",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-07-10T20:54:15.4650125+00:00"
  },
  "article_id": "48482daa-8730-4c0e-a8e6-f771ef429b37",
  "article_code": "sample string 5",
  "article": {
    "id": "3388372b-6baa-4bac-9141-55a57bf28b6a",
    "article_category_id": "40934bf0-2838-4638-8028-b89c8f95ffdf",
    "article_category": {
      "id": "cf754533-05eb-4d15-9711-7e92c984d4a1",
      "parent_id": "506bd333-fda5-4df1-835e-69710c64d683",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-07-10T20:54:15.4650125+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "495b86b3-ea04-453d-8c29-1026a0da117c",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "926a9a7b-7c0a-4230-a350-cb1f599fac10",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "ea675015-c932-4aa7-afd5-36b6286eddf6",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "d71a050c-efc0-4391-ade8-8644741759bc",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "4db7405d-2612-4fe9-9291-0c2ce09e8b66",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "513a767c-eb6a-411c-b7ab-49153f3bac72",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-07-10T20:54:15.4650125+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-07-10T20:54:15.4650125+00:00",
    "date_update": "2025-07-10T20:54:15.4650125+00:00",
    "modified_dateutc": "2025-07-10T20:54:15.4650125+00:00",
    "article_color_id": "250c6e1a-eec2-4a9a-bbf8-3361cd6bff67",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "f4a072a7-7b9a-4a4b-bb66-021d28957a5b",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-07-10T20:54:15.4650125+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "8e3de380-3e1f-4ab6-b8a6-abc6b78a78b5",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "558b928c-ee0e-4aa8-a339-c1635b5c9e54",
    "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-07-10T20:54:15.4650125+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.