Creates a new purchase order order line

Request Information

URI Parameters :

None.

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": "af030966-9bbd-48f5-8c29-480ee1b7c944",
  "purchase_order_id": "2e56c69f-6fb1-41de-9c8e-480e4a649eb0",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "fc256ab8-1508-4549-b73b-e34298c9b5e3",
    "id2": 2,
    "jobs_id": "7a13d108-9621-4bcb-9eb5-1dd68350a396",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "ccb35fb3-0b19-412b-9c00-263c5bc4cdb7",
    "supplier_company_code": "sample string 6",
    "user_id": "9675cebc-ee0b-479e-b68d-c6e2c20f661d",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-05-12T05:44:33.3285579+00:00",
    "date_update": "2026-05-12T05:44:33.3285579+00:00",
    "date_delivery": "2026-05-12T05:44:33.3285579+00:00",
    "confirmed_date_delivery": "2026-05-12T05:44:33.3285579+00:00",
    "delivery_db_address_id": "b108ea3a-a176-4cad-adcb-9de5d860c0a4",
    "approved_by_user_id": "284438b0-7543-4641-bd06-274e960b16a3",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "2de74fe0-5a6e-40ae-9a9e-0a4f97828f4f",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "e259cbc7-9993-47f4-b538-5a9424a13937",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "2a93e6d3-5702-4dac-b29e-d6d591ea997e",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-05-12T05:44:33.3285579+00:00"
  },
  "article_id": "89542433-8218-4427-80eb-a456f6da63dd",
  "article_code": "sample string 5",
  "article": {
    "id": "5f41ab14-af4e-4ad4-913f-676a714f73b3",
    "article_category_id": "7d09fef6-a448-4cbf-9ef5-05c634ca9fe6",
    "article_category": {
      "id": "691f028f-4061-4700-8d5c-b8e3c5ea0e0a",
      "parent_id": "ea6d9880-bb1a-4e3b-a89d-d92a3fad33b3",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-05-12T05:44:33.3285579+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "9c494cdd-6201-4bfa-8876-d8e4e5848533",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "39f7ad0a-dc4c-437f-bef9-0b6767f1e164",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "64c419c7-fcfe-4956-ac20-a9cfacae1664",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "3b8a2162-9264-4dbf-9cdb-a42250a0ce97",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "05b1f7c0-5639-4a61-b44f-b4f659a8eec1",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "e1b7e449-3bc3-4dcb-be5e-fd05b870a894",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-05-12T05:44:33.3285579+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-05-12T05:44:33.3285579+00:00",
    "date_update": "2026-05-12T05:44:33.3285579+00:00",
    "modified_dateutc": "2026-05-12T05:44:33.3285579+00:00",
    "article_color_id": "14647524-bd24-4743-8d96-4ce695583c8a",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "b687279d-4c7f-4252-b7e7-cfc0dcfa4589",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-05-12T05:44:33.3285579+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "f7c5a5d1-e72f-411a-85cc-f4a4f2a103ec",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "07ad4dd8-0585-4057-b2e9-d959e84edcde",
    "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-05-12T05:44:33.3285579+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.