Creates a new purchase order order line
Request Information
URI Parameters :
None.
Body Parameters :
purchase_order_details| Name | Description | Type | Additional 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
{
"id": "ce91aeeb-d692-4388-94d9-172b925249a1",
"purchase_order_id": "19a3d502-df4f-41be-b5b1-0c40bb8b196a",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "875d940c-e15e-4636-a4cb-460ee182058f",
"id2": 2,
"jobs_id": "5e57e03e-ebc7-47f8-9fa1-034c7019c943",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "4cea79ce-887b-4040-ac36-b3c8c2b9dff8",
"supplier_company_code": "sample string 6",
"user_id": "6d8a1fcf-e55f-4867-a498-a6ed7e6f3d93",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-03-13T03:23:44.5442902+00:00",
"date_update": "2026-03-13T03:23:44.5442902+00:00",
"date_delivery": "2026-03-13T03:23:44.5442902+00:00",
"confirmed_date_delivery": "2026-03-13T03:23:44.5442902+00:00",
"delivery_db_address_id": "6409f5ed-23e1-43d6-b319-6c766cd5c0f6",
"approved_by_user_id": "4619e6cd-88a0-4476-b496-a37d80462ee0",
"approved_by_user_code": "sample string 18",
"technical_user_id": "4386af2c-0066-4547-99bb-e8daf5f88131",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "05abc16a-786a-49fb-ae90-dfedb31ecc3a",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "354dc7dd-675a-4abd-a979-c8694d85025c",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-03-13T03:23:44.5599197+00:00"
},
"article_id": "5b5def30-3c05-437c-a144-6eb2f143f8af",
"article_code": "sample string 5",
"article": {
"id": "3d29aaf6-d35c-466c-abef-419068f6dd79",
"article_category_id": "99edb4fd-9120-4f9b-9ffa-f8c1b5b5da0f",
"article_category": {
"id": "ace262da-7aa2-4e45-bb48-fc7f4f796bb2",
"parent_id": "50a088a9-d926-41f2-a1c4-b848f9fb62c3",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-03-13T03:23:44.5599197+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "b32f5c04-9b3f-4d1a-8060-b63b79c78384",
"article_group_1_code": "sample string 5",
"article_group_2_id": "24749091-f68c-41f7-bb13-093ebe153662",
"article_group_2_code": "sample string 7",
"article_group_3_id": "3c2371ed-53b1-4dd1-8446-690c9d03f1e7",
"article_group_3_code": "sample string 9",
"article_group_4_id": "90c05f06-76e5-45e3-8bbe-1aeedc8c7e92",
"article_group_4_code": "sample string 11",
"article_group_5_id": "5039380e-f21e-483d-9437-797925e06aec",
"article_group_5_code": "sample string 13",
"article_group_6_id": "e9818b84-6e75-4e90-816d-2ff237608a69",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-03-13T03:23:44.5599197+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-03-13T03:23:44.5599197+00:00",
"date_update": "2026-03-13T03:23:44.5599197+00:00",
"modified_dateutc": "2026-03-13T03:23:44.5599197+00:00",
"article_color_id": "1ee7c3f4-9051-41c3-8811-7f30485f719b",
"article_color_code": "sample string 38",
"article_color": {
"id": "fe1509e2-1033-456d-9d2f-b884dd703b7a",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-03-13T03:23:44.5599197+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "acfb94ac-175b-4b4b-b3f8-93cea3a23f1c",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "abb2cc56-3dd2-4c55-9474-79945a43367a",
"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-03-13T03:23:44.5599197+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.