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": "780621ac-bb8a-4684-9908-6184436f7de6",
  "purchase_order_id": "8fa5aef0-8d95-4370-9663-97f3d5005ab8",
  "purchase_order_reference_back_office": "sample string 3",
  "purchase_order": {
    "id": "49bb6809-5e75-4cf3-a866-dea9cf45b2cd",
    "id2": 2,
    "jobs_id": "bbcf4b81-25e5-4af2-b4f7-b1b90d80ea91",
    "jobs_reference_back_office": "sample string 4",
    "supplier_company_id": "4e874b68-7ce5-4240-adc1-307bf0348c88",
    "supplier_company_code": "sample string 6",
    "user_id": "6bfe5d6c-f912-458e-8b87-998aa5e46dab",
    "user_code": "sample string 8",
    "description": "sample string 9",
    "memo": "sample string 10",
    "total_lines": 11,
    "date_create": "2026-10-09T04:40:48.4302933+00:00",
    "date_update": "2026-10-09T04:40:48.4302933+00:00",
    "date_delivery": "2026-10-09T04:40:48.4302933+00:00",
    "confirmed_date_delivery": "2026-10-09T04:40:48.4302933+00:00",
    "delivery_db_address_id": "ba6ba816-3136-4846-a684-c2061b79acfd",
    "approved_by_user_id": "9b2ea4c1-74fc-4121-abe3-165f19c3d87f",
    "approved_by_user_code": "sample string 18",
    "technical_user_id": "47ebc6eb-267f-48e2-b6db-dafb56d6d7d7",
    "technical_user_code": "sample string 20",
    "purchase_order_status_id": "641c40a4-0e9e-4017-92b7-bec7b928e220",
    "purchase_order_status_code": "sample string 22",
    "article_stock_location_id": "1144e957-27f4-4785-ae96-6b2e62df999d",
    "is_pickup": true,
    "reference_back_office": "sample string 25",
    "modified_dateutc": "2026-10-09T04:40:48.4302933+00:00"
  },
  "article_id": "4783991e-bd2c-430f-98d5-6b264aba3c06",
  "article_code": "sample string 5",
  "article": {
    "id": "4415e7e6-fbac-4a1a-86c8-113c7b35fd49",
    "article_category_id": "6d53b3e6-f6ff-49f4-bb95-44245647e166",
    "article_category": {
      "id": "54dde683-e2bd-425b-a101-70a0e20f29ab",
      "parent_id": "009d303a-2dc4-4aa7-a66a-d1aeb3322d7e",
      "parent_code": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "modified_dateutc": "2026-10-09T04:40:48.4476187+00:00"
    },
    "article_category_code": "sample string 3",
    "article_group_1_id": "b52706d2-72e7-4896-b955-93b77d0d0c9e",
    "article_group_1_code": "sample string 5",
    "article_group_2_id": "bbb60c3a-b7e2-44d3-8ef3-177529080b32",
    "article_group_2_code": "sample string 7",
    "article_group_3_id": "fcdeb6e7-2d8e-4d67-a102-497fb2ea9469",
    "article_group_3_code": "sample string 9",
    "article_group_4_id": "9375ae9f-d570-4329-aa87-e202c1170cfc",
    "article_group_4_code": "sample string 11",
    "article_group_5_id": "d770e9b7-dc0a-4d75-86ea-bb23067812a4",
    "article_group_5_code": "sample string 13",
    "article_group_6_id": "7847a0e0-08ea-40a7-abdd-b1f194513cb4",
    "article_group_6_code": "sample string 15",
    "physical_stock": 16,
    "back_order_client": 17,
    "back_order_supplier": 18,
    "expected_delivery_date_bo_supplier": "2026-10-09T04:40:48.4476187+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-10-09T04:40:48.4476187+00:00",
    "date_update": "2026-10-09T04:40:48.4476187+00:00",
    "modified_dateutc": "2026-10-09T04:40:48.4476187+00:00",
    "article_color_id": "8027c55b-dc99-45e4-9e19-97d5f9063d70",
    "article_color_code": "sample string 38",
    "article_color": {
      "id": "42578fc5-bfc2-4d13-90a2-e86b2f89931d",
      "name": "sample string 2",
      "code": "sample string 3",
      "modified_dateutc": "2026-10-09T04:40:48.4476187+00:00"
    },
    "warranty_period_nb_months": 39,
    "use_serial": true,
    "_replace_id": "6be73f31-512b-4cac-ad97-7784ae7196c7",
    "replace_article_code": "sample string 42",
    "db_unit_of_measure_id_selling": "57cdd95e-2821-4869-b15b-da06c517528d",
    "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-10-09T04:40:48.4615402+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.