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": "c3f633ec-5499-4843-9a9f-1940762a3660",
"purchase_order_id": "be6d1251-d662-4795-aa43-04b5b7e579fd",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "d3664370-dadc-4970-9e47-20415d0d17c5",
"id2": 2,
"jobs_id": "c452fe31-d197-44a5-a6d4-fb0ea347ad34",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "3efc8154-df71-46c1-b22f-e23cb1440035",
"supplier_company_code": "sample string 6",
"user_id": "40b008ed-e079-44dc-b5e7-d957a3bc1a30",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-08-09T21:45:31.5852699+00:00",
"date_update": "2026-08-09T21:45:31.5852699+00:00",
"date_delivery": "2026-08-09T21:45:31.5852699+00:00",
"confirmed_date_delivery": "2026-08-09T21:45:31.5852699+00:00",
"delivery_db_address_id": "94a8382a-5530-4f04-acd3-ea3a16c79827",
"approved_by_user_id": "b783ba3f-cf4a-48ee-b9eb-af6f10ee2470",
"approved_by_user_code": "sample string 18",
"technical_user_id": "3d940536-b188-41af-a93f-c7142117db66",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "268dd9bc-ba74-4d95-97e5-854de7988f00",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "9f7ee1ab-56cf-4fa8-884c-8002d465c6c4",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-08-09T21:45:31.5852699+00:00"
},
"article_id": "74d0e5dc-966d-43c5-ac1d-701e3a40ccde",
"article_code": "sample string 5",
"article": {
"id": "015fba7a-7741-4e21-8888-e23b03cbcfca",
"article_category_id": "69f262a2-5c6e-4998-a11c-f1c3854057de",
"article_category": {
"id": "ef7d7445-2cc2-492d-9848-8d57b932e997",
"parent_id": "458b1484-c935-4709-b0d2-389a5723d64a",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-08-09T21:45:31.5852699+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "78c69a47-3295-48dc-8cb7-356807008703",
"article_group_1_code": "sample string 5",
"article_group_2_id": "6d30fd26-ad73-427c-be3c-868e5cc0f78b",
"article_group_2_code": "sample string 7",
"article_group_3_id": "fe2c90ec-ae85-489e-93c0-5048ac54d5cd",
"article_group_3_code": "sample string 9",
"article_group_4_id": "40dfdbd1-136b-47cc-83cd-50a919c7a5b2",
"article_group_4_code": "sample string 11",
"article_group_5_id": "128a7f19-cfeb-4e8d-b494-f9462c823527",
"article_group_5_code": "sample string 13",
"article_group_6_id": "74f64af0-f845-43f1-a6c1-bb5eef66e73f",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-08-09T21:45:31.5852699+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-08-09T21:45:31.5852699+00:00",
"date_update": "2026-08-09T21:45:31.5852699+00:00",
"modified_dateutc": "2026-08-09T21:45:31.5852699+00:00",
"article_color_id": "e79fefa1-dafa-4c25-ae94-69db7febc3de",
"article_color_code": "sample string 38",
"article_color": {
"id": "f16663bd-3c35-4477-89ad-8a95c527ed28",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-08-09T21:45:31.5852699+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "69c9d329-a064-4fff-a154-2855820517e3",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "922484b5-2a1b-4dce-a545-aeb459ad9bca",
"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-08-09T21:45:31.5852699+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.