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": "8d3e78b7-ba52-499d-be7b-2b4cfb07b0ee",
  "purchase_order_id": "f1703101-667a-4532-803f-9aeb707b05c1",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "ba01a4a6-9b9f-4a51-9d57-27165edf403b",
    "id2": 2,
    "jobs_id": "e47dc9a1-a9ac-4f03-995e-08cf90080edd",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "0573ecdc-ce64-49e1-afb0-956a86ce9985",
    "supplier_company_code": "sample string 6",
    "user_id": "c002dc11-b2c2-449d-b517-cc7e9281e98b",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-07-10T15:37:35.164477+00:00",
    "date_update": "2026-07-10T15:37:35.164477+00:00",
    "date_delivery": "2026-07-10T15:37:35.164477+00:00",
    "confirmed_date_delivery": "2026-07-10T15:37:35.164477+00:00",
    "delivery_db_address_id": "10e3adc7-3648-4d9e-b076-1f393bfbb7d7",
    "approved_by_user_id": "11c80a15-83de-44c3-b220-bc59d6433668",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "f1f23ba6-b515-4b70-8871-b22db6e5dd6e",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "46d3759c-61c5-402d-835b-96ae8600a5ea",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "30ca02bb-1269-4847-8dc3-5318115da35b",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-07-10T15:37:35.164477+00:00"
  },
  "article_id": "9f68d2c6-7519-411f-94c1-20304cc785ca",
  "article_code": "sample string 5",
  "article": {
    "id": "71aa4f75-29f3-4dd3-a377-a917b67ee9f4",
    "article_category_id": "3c76fa12-309b-4f8f-90c4-57a95fef228f",
    "article_category": {
      "id": "ac3cde8e-c5b1-4367-a31c-611ccb8ac55c",
      "parent_id": "10f2d523-26c6-4a26-adde-5a2917bfeba0",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-07-10T15:37:35.164477+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "f8a227ff-835a-4ef2-8a5e-a108c1dd97c4",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "d0d99b56-a950-48a9-8a3b-eed0c0a838cf",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "288145cf-b9ba-4570-a0f6-cd6a1143a2a5",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "5dccfaea-a5d8-413e-b06a-e0658292f245",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "aab098a1-cd3a-4971-a7d2-61b2d9b6ccb4",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "9d79a900-f7bb-47cd-8e81-57b6471b3f34",
    "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-10T15:37:35.164477+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-10T15:37:35.164477+00:00",
    "date_update": "2026-07-10T15:37:35.164477+00:00",
    "modified_dateutc": "2026-07-10T15:37:35.164477+00:00",
    "article_color_id": "1f7752c0-981c-4758-ba4a-508d58d63c90",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "e672fcf9-16a2-49fe-8f5c-cbe6f0202a1b",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-07-10T15:37:35.164477+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "9a8829fe-83b8-4dcf-86ac-ba8f8a21a5d1",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "e8f35f8c-6441-491c-a976-f37cd0df1346",
    "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-10T15:37:35.164477+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.