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": "62a6995a-337e-4998-a704-1bd6d4d1b004",
  "purchase_order_id": "d6ef314c-ec04-4b05-9c1b-d2c201e8057e",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "56def5ef-2cd5-4e07-b085-5346a191b52c",
    "id2": 2,
    "jobs_id": "4512267a-eb67-4e63-888f-fa0d15f00656",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "c9a57048-885c-40bd-b93a-c2eb9d6eefd4",
    "supplier_company_code": "sample string 6",
    "user_id": "e37a6bd4-c688-48e2-bcd2-470ef5c9d1b8",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2025-05-18T01:47:57.0500928+00:00",
    "date_update": "2025-05-18T01:47:57.0500928+00:00",
    "date_delivery": "2025-05-18T01:47:57.0500928+00:00",
    "confirmed_date_delivery": "2025-05-18T01:47:57.0500928+00:00",
    "delivery_db_address_id": "81a46e86-7350-457a-8699-5c21997fd2e0",
    "approved_by_user_id": "aa8cd2a5-f62f-4b4f-a519-045fd9e5d7f3",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "0fe617c6-c55d-46e3-8e94-a4f15fba53a5",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "75d1c126-a541-48d2-abea-6c858c1417ae",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "b0fac320-36fa-45ca-b02d-510d05af6bdd",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2025-05-18T01:47:57.0500928+00:00"
  },
  "article_id": "32e4d30c-0b54-4426-8620-d5d545b2cbb1",
  "article_code": "sample string 5",
  "article": {
    "id": "0cd0d1a0-540d-463e-96c7-b915965be6fa",
    "article_category_id": "7cf43ef8-c096-4c90-a33b-82d044356b40",
    "article_category": {
      "id": "488eb0c5-90d2-4696-8694-d3a766de39cc",
      "parent_id": "278947cb-ef8c-4713-b325-ba0d5b4503b7",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2025-05-18T01:47:57.0500928+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "739f8e65-e003-4800-bed4-81c8c7e4475b",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "8d3ede1e-c966-4e92-b928-16353fe15c0f",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "f8045dfe-816e-4914-9f83-b015c963d745",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "c2f679df-faa8-4f5f-9130-cc4802feeca6",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "d61acbee-f9ac-4e19-b8bc-b5781f71ef5f",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "2ffd0d10-248e-4e72-a987-694ce0d00140",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2025-05-18T01:47:57.0500928+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-05-18T01:47:57.0500928+00:00",
    "date_update": "2025-05-18T01:47:57.0500928+00:00",
    "modified_dateutc": "2025-05-18T01:47:57.0500928+00:00",
    "article_color_id": "ac189b14-9e17-41e8-9a60-0960d676bf9b",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "76b0b56f-4233-49b2-8ecd-1f1d0f00cfe2",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2025-05-18T01:47:57.0500928+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "438889f9-df2f-4c79-a338-d04f26bae4e2",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "284401df-3db0-4f33-b95a-fad070416384",
    "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-05-18T01:47:57.0500928+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.