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": "8038c33e-ad87-4916-93e5-a45fe78e42bc",
  "purchase_order_id": "04c2b58e-6b21-4e0a-9f1e-5dac61cc384d",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "ba46f09c-91df-4f12-97b7-537abf8f6432",
    "id2": 2,
    "jobs_id": "af3f169d-5be8-4be8-8cec-9e82e1974fea",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "7fca1518-1d89-463b-a2af-0e662d47606b",
    "supplier_company_code": "sample string 6",
    "user_id": "e4f15061-64b1-4d7f-9017-73b843ffebb5",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-02-19T09:56:07.4665958+00:00",
    "date_update": "2025-02-19T09:56:07.4665958+00:00",
    "date_delivery": "2025-02-19T09:56:07.4665958+00:00",
    "confirmed_date_delivery": "2025-02-19T09:56:07.4665958+00:00",
    "delivery_db_address_id": "52c1274c-334e-49b4-9f28-710d82ef9cbb",
    "approved_by_user_id": "083206e1-3086-4552-8b1d-579287813a9e",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "14d369ce-3f4e-4f32-b0c3-025ba731099b",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "e79a38c8-c4f5-4881-befc-d055f079a1c4",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "5d8dffa9-edbb-448c-8b31-0db07ccb2be3",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-02-19T09:56:07.4665958+00:00"
  },
  "article_id": "b05fee5d-6be1-4a25-9beb-baa021d0dfcc",
  "article_code": "sample string 5",
  "article": {
    "id": "c927b341-3f1c-4d63-ba3e-659ea79c6e4f",
    "article_category_id": "b12d662b-4740-47ef-91d4-ffaca33dea05",
    "article_category": {
      "id": "10775ca9-5c3d-4e8b-8f3d-42a73ce35520",
      "parent_id": "bb7a8064-2e4d-4475-a009-e7592ab483ab",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-02-19T09:56:07.4665958+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "5688995d-9117-4eb8-8949-1fe9ac2389d2",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "d8c1c129-25bc-4a53-a0fe-2f012de269de",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "62d1d78d-bc8c-4424-9806-d91af72756aa",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "3c80907d-a70f-4079-b267-b2bee142878e",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "d2a4acf9-01c9-4789-8609-bd2678921e16",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "dff103f4-e796-43c4-9987-4658c26a7510",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-02-19T09:56:07.4665958+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-02-19T09:56:07.4665958+00:00",
    "date_update": "2025-02-19T09:56:07.4665958+00:00",
    "modified_dateutc": "2025-02-19T09:56:07.4665958+00:00",
    "article_color_id": "c84cffb6-2e87-4624-bedb-fd70cd55c7ff",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "8763f9b7-2740-4a69-ba73-cfb8d4b062ed",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-02-19T09:56:07.4665958+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "d017d604-266d-4c6c-97a3-49e71d5e64e0",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "625509e2-5c10-4f42-a18c-d4ae9d00db74",
    "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-02-19T09:56:07.4665958+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.