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": "97d7694e-a31c-4e34-9dde-7ba6ca288181",
  "purchase_order_id": "fe9e17ec-7361-4065-8634-3ffbe0623428",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "98d8e08e-be9c-4ae8-8e92-7a2c0c64db40",
    "id2": 2,
    "jobs_id": "868ee1dd-ff5f-4a21-b321-2da7825d286e",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "c71ef74d-b1e5-43f0-a96f-a730cce44b1e",
    "supplier_company_code": "sample string 6",
    "user_id": "12c42e63-bc9a-4aae-bab8-2f09e5520c1e",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-05-29T22:46:41.6070291+00:00",
    "date_update": "2026-05-29T22:46:41.6226532+00:00",
    "date_delivery": "2026-05-29T22:46:41.6226532+00:00",
    "confirmed_date_delivery": "2026-05-29T22:46:41.6226532+00:00",
    "delivery_db_address_id": "600407bb-d92f-4851-aa2e-a8321cfeb17f",
    "approved_by_user_id": "dfbf3526-ecef-444d-a289-4ebcdaa0fae4",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "18c4f4fd-7450-4455-a971-2d6defbc68f1",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "823c471f-41ef-489f-a721-aa3c49fbd1b8",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "170ffa2e-25b9-4af2-beb8-7fd9ca62d1d2",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-05-29T22:46:41.6226532+00:00"
  },
  "article_id": "987e21f1-b2a3-4090-8a03-bce1a94cd8ff",
  "article_code": "sample string 5",
  "article": {
    "id": "48dc90e0-ef63-4e88-a134-62ade82d13de",
    "article_category_id": "49fc4296-caaa-4e3a-9566-fb3586a7aa38",
    "article_category": {
      "id": "c2bdc766-42ef-4509-8da5-c6dd7ce2e7f0",
      "parent_id": "fd833ab2-9661-4214-bfca-bc50b7ff15bb",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-05-29T22:46:41.6226532+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "d113999b-3dbe-480f-a084-b1a541d855bf",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "08ea3dcc-eda8-4d60-832a-9ee922936303",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "b1deaa1c-3b4f-4fce-a4e6-612da5d6e199",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "7f553046-0ce5-4d6b-942f-1590828680c6",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "9df85b25-dae9-461c-b6fd-d0de4fc4a90a",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "8d800ca4-69f5-4b73-9901-6df06b739512",
    "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-29T22:46:41.6226532+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-29T22:46:41.6226532+00:00",
    "date_update": "2026-05-29T22:46:41.6226532+00:00",
    "modified_dateutc": "2026-05-29T22:46:41.6226532+00:00",
    "article_color_id": "42e6ec06-c8ee-4622-8d3e-fb6df8219074",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "bec39260-0996-4d65-981d-9a1cca4ea29a",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-05-29T22:46:41.6226532+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "5a17dfc6-6d74-4e62-80c8-3d7b6ee1e13e",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "614abb39-524b-4511-b57c-8c702cda1ec7",
    "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-29T22:46:41.6226532+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.