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": "06411bb2-3870-4df6-b386-2f200deea6c8",
  "purchase_order_id": "5a2a078c-ee2b-454e-be3b-001ec8d87f9e",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "2e98a22e-110d-4a4c-8f63-acca2a634129",
    "id2": 2,
    "jobs_id": "c93a885d-0061-401a-bf4b-16c65ec957fe",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "4739b0bb-0262-43eb-b7a4-047f480e6f25",
    "supplier_company_code": "sample string 6",
    "user_id": "095eba9e-42cb-41b8-8e8b-625487b30c71",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-07-10T16:42:55.0863061+00:00",
    "date_update": "2025-07-10T16:42:55.0863061+00:00",
    "date_delivery": "2025-07-10T16:42:55.0863061+00:00",
    "confirmed_date_delivery": "2025-07-10T16:42:55.0863061+00:00",
    "delivery_db_address_id": "a99486af-ef71-4665-adc3-7885c765bdd5",
    "approved_by_user_id": "755d0ad5-ca88-41f7-a34e-d5a7b92db335",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "4e51c387-b09a-4eb4-b2c8-27d48bc4dd81",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "5d2aa791-c327-449f-b086-6ce69afa57a7",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "8aee6749-89a8-41f3-8afd-15aa0d7f06f2",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-07-10T16:42:55.0863061+00:00"
  },
  "article_id": "0e927c95-c0bf-41e9-a0f8-c3a59f94380a",
  "article_code": "sample string 5",
  "article": {
    "id": "d19aed8e-9fc8-4291-b69b-967bbed9554e",
    "article_category_id": "66aea8a5-754b-4a4b-8f47-a3c598defaad",
    "article_category": {
      "id": "683f7bbb-1eec-495e-a563-67f9383a4322",
      "parent_id": "ecb9fe71-949f-4057-8ebd-b77a353cabff",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-07-10T16:42:55.0863061+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "23f8570d-b1af-4eb8-af31-cb5a02f596a6",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "4df020b1-9eea-472c-b1c3-69b311b1f011",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "d8f5de34-fd77-4dcf-a6c1-03524ff0c815",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "d0d0b7e4-9775-4c10-8417-73fa8802c361",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "8b3f96e3-6bee-4254-bff5-491b2b088140",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "1e2d571e-92a9-4f73-b2bb-d5de8e4108b1",
    "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-10T16:42:55.0863061+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-10T16:42:55.0863061+00:00",
    "date_update": "2025-07-10T16:42:55.0863061+00:00",
    "modified_dateutc": "2025-07-10T16:42:55.0863061+00:00",
    "article_color_id": "3fb17c1c-bdf6-4d9a-8d90-68086d6a7471",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "4cf05037-177e-40b4-b3a0-795982e95ebe",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-07-10T16:42:55.0863061+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "3f91ebaf-f86a-4562-9707-2ec5b0389e51",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "9ebde41f-68f7-456c-a7cb-b5500cf36b03",
    "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-10T16:42:55.1019291+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.