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": "21995d35-5adb-4bdd-b72d-99ee77eda0ad",
  "purchase_order_id": "ba08b709-2596-4e5e-812f-fd363b9d4c25",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "0c400ac3-720f-4dc7-92c7-b9aafdf7f5f6",
    "id2": 2,
    "jobs_id": "ce98cdbe-b63c-4fdf-a00b-6dd1bd822fb2",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "0b54a45d-e522-43ec-a61e-415afa8b8b6a",
    "supplier_company_code": "sample string 6",
    "user_id": "9505bc45-69df-4b7e-8550-a3fcad5e0783",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-07-04T13:22:41.4579286+00:00",
    "date_update": "2026-07-04T13:22:41.4579286+00:00",
    "date_delivery": "2026-07-04T13:22:41.4579286+00:00",
    "confirmed_date_delivery": "2026-07-04T13:22:41.4579286+00:00",
    "delivery_db_address_id": "51ce0da5-de16-4b33-8a73-286bafc6a2be",
    "approved_by_user_id": "b757baf6-003c-4e37-b202-bc81fdde26b7",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "ce028c0a-3caa-4ffc-8d5d-a6ad6719f39a",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "65caf9e4-8c68-4205-b97f-7f2d7fb38988",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "efec66ec-b0ea-48ad-a8ff-e25e3d2faff1",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-07-04T13:22:41.4579286+00:00"
  },
  "article_id": "bb72b143-290b-44b2-a74e-90b4ee35258e",
  "article_code": "sample string 5",
  "article": {
    "id": "0d0eae5d-1b36-4a00-8d6b-cc5a04febcc3",
    "article_category_id": "a77e797f-2ac9-4fce-a6e7-14e76a81e151",
    "article_category": {
      "id": "72181798-c715-44f2-bef7-dc4d4eddb22d",
      "parent_id": "7080b1f4-122c-4ed5-8ab9-d5274bdf5b14",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-07-04T13:22:41.4579286+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "adfd40d6-f1fb-4d49-a940-784ba2f878f5",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "e7472418-74eb-4a05-aa15-38ddac33091c",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "38eae675-f049-4755-94ff-ce7692d0f3c4",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "a1e6aad5-62fc-4c93-8369-f3f3649c24b8",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "34d19afb-cef7-4b42-a137-824395aff648",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "8e3f1f3d-4577-4319-9e2c-15a5ef0eeefc",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-07-04T13:22:41.4579286+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-07-04T13:22:41.4579286+00:00",
    "date_update": "2026-07-04T13:22:41.4579286+00:00",
    "modified_dateutc": "2026-07-04T13:22:41.4579286+00:00",
    "article_color_id": "ecbd4c19-512a-4997-8d08-dce47d46c2ea",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "4daa3c77-de50-4473-ba6a-cbe704487eec",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-07-04T13:22:41.4579286+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "d6f47819-95a6-4251-af2c-3072dd48e1e8",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "5f97f3f7-6774-4d59-90ff-79cafa913bfd",
    "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-07-04T13:22:41.4579286+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.