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": "a4b0fa0b-94ee-4a8b-9e38-8e7efe76e834",
  "purchase_order_id": "ab9cd09d-230f-495d-907a-de67c0defcbe",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "784279c4-75bb-4545-866f-1a96512f308f",
    "id2": 2,
    "jobs_id": "705c3696-c35e-4b22-a6e5-f59cdc79f28c",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "92f1fb1f-8cd6-488b-aab1-2a1f5e6e94a7",
    "supplier_company_code": "sample string 6",
    "user_id": "0c85a6f0-6a05-49ce-b5c3-349de9b551ad",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-05-17T02:18:49.084972+00:00",
    "date_update": "2026-05-17T02:18:49.084972+00:00",
    "date_delivery": "2026-05-17T02:18:49.084972+00:00",
    "confirmed_date_delivery": "2026-05-17T02:18:49.084972+00:00",
    "delivery_db_address_id": "5b7b9cb1-4b8b-4d1a-810f-e1c0e1285072",
    "approved_by_user_id": "263c0849-9d46-4d14-87fc-3a319deb46d9",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "bcf039a9-46ef-4d37-b1b4-a7b66f692b12",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "2714fce7-04e3-40b2-a22a-ecc379b2cc53",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "0862380f-894c-4906-a576-9df467e717b2",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-05-17T02:18:49.084972+00:00"
  },
  "article_id": "f07cda4c-ead0-4b15-bbbf-1c7901b7fb7d",
  "article_code": "sample string 5",
  "article": {
    "id": "cf981e8e-e87c-488c-a093-47b1f2862118",
    "article_category_id": "76a37f5a-c220-469c-9e7c-d4d2404225a6",
    "article_category": {
      "id": "d377232e-bde6-48c5-b510-f812e95fb4af",
      "parent_id": "43741e12-78f6-4d7c-a79e-f9593b69fdab",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-05-17T02:18:49.084972+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "0b2ab056-9547-4588-ba6c-4640d97c7618",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "34eb1e34-687a-4bab-98eb-c0aae2b86412",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "d3db980c-f32e-4e22-86a9-1c46e56b6657",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "4d78a770-d04a-4d31-8471-b310e15be496",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "62a28fb5-afa1-4ff4-8008-12938c77bb00",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "4f53b941-2f21-44ea-ab36-8e5d603540ab",
    "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-17T02:18:49.084972+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-17T02:18:49.084972+00:00",
    "date_update": "2026-05-17T02:18:49.084972+00:00",
    "modified_dateutc": "2026-05-17T02:18:49.084972+00:00",
    "article_color_id": "60e43356-244f-434e-a2f8-b5da78d40e4f",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "ed451692-d149-46e0-8666-162792cbab6f",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-05-17T02:18:49.084972+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "8836e6e1-9c97-47de-a469-f4c7acd730e5",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "83a80afc-a4f0-4b79-a0d5-a7d06ad6103b",
    "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-17T02:18:49.084972+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.