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": "d26d9709-8aa5-4a46-8fd5-6ca5787f4c7b",
"purchase_order_id": "beb4c1b0-a29a-4871-987e-28bd3f619b4e",
"purchase_order_reference_back_office": "sample string 3",
"purchase_order": {
"id": "07d24e6e-81c1-402d-a70c-c645f9221221",
"id2": 2,
"jobs_id": "016275db-cd2c-47ba-832a-2017945e1ab3",
"jobs_reference_back_office": "sample string 4",
"supplier_company_id": "c72d24ce-13a1-4e72-89b8-5d34fd361ab1",
"supplier_company_code": "sample string 6",
"user_id": "ad69d964-8d08-45fb-8d43-76f9d27b1dbe",
"user_code": "sample string 8",
"description": "sample string 9",
"memo": "sample string 10",
"total_lines": 11,
"date_create": "2026-07-22T01:24:04.5873984+00:00",
"date_update": "2026-07-22T01:24:04.5873984+00:00",
"date_delivery": "2026-07-22T01:24:04.5873984+00:00",
"confirmed_date_delivery": "2026-07-22T01:24:04.5873984+00:00",
"delivery_db_address_id": "2ba4b867-aa42-42a9-9837-910e1bfa9a39",
"approved_by_user_id": "b436af99-8b84-4c5c-bfbf-6f68154e5077",
"approved_by_user_code": "sample string 18",
"technical_user_id": "16ad0f7c-f1e3-4d64-b905-3d5962b4d33d",
"technical_user_code": "sample string 20",
"purchase_order_status_id": "283ae42f-008b-453c-931d-d2475e008bf9",
"purchase_order_status_code": "sample string 22",
"article_stock_location_id": "a5d81f0e-85e2-4173-8714-a7d507ce1502",
"is_pickup": true,
"reference_back_office": "sample string 25",
"modified_dateutc": "2026-07-22T01:24:04.5873984+00:00"
},
"article_id": "09ae7f73-062e-48a8-b5c2-7a08adaba660",
"article_code": "sample string 5",
"article": {
"id": "d93a992d-5ae5-44b4-89fe-afcafad8210e",
"article_category_id": "228419cf-2984-4a9d-9d88-54e2ba2d235d",
"article_category": {
"id": "1fe8d13e-83e6-4d77-967f-cc40e8773d2b",
"parent_id": "ab4facac-862d-4ce7-9233-e800d3548e92",
"parent_code": "sample string 3",
"code": "sample string 4",
"name": "sample string 5",
"modified_dateutc": "2026-07-22T01:24:04.5873984+00:00"
},
"article_category_code": "sample string 3",
"article_group_1_id": "521b35cf-1b64-4a76-aedd-cb2eb4426e2b",
"article_group_1_code": "sample string 5",
"article_group_2_id": "0eadf841-2e4b-4803-a43b-4ced3b49e7bd",
"article_group_2_code": "sample string 7",
"article_group_3_id": "5816a107-d2f1-410f-ac1c-d159501de9ca",
"article_group_3_code": "sample string 9",
"article_group_4_id": "9bd5edd0-8bda-41ea-9b95-340e55a68799",
"article_group_4_code": "sample string 11",
"article_group_5_id": "35cfdf0d-e5e7-4d5d-9f45-e7b7fbaffb96",
"article_group_5_code": "sample string 13",
"article_group_6_id": "35c034a7-d1e9-4222-857b-2aa7a2821d28",
"article_group_6_code": "sample string 15",
"physical_stock": 16,
"back_order_client": 17,
"back_order_supplier": 18,
"expected_delivery_date_bo_supplier": "2026-07-22T01:24:04.5873984+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-07-22T01:24:04.5873984+00:00",
"date_update": "2026-07-22T01:24:04.5873984+00:00",
"modified_dateutc": "2026-07-22T01:24:04.5873984+00:00",
"article_color_id": "4bbcee68-098c-4247-8917-933dcafd59a8",
"article_color_code": "sample string 38",
"article_color": {
"id": "ae4e7d88-7a83-4f2c-8d2a-71314658fd88",
"name": "sample string 2",
"code": "sample string 3",
"modified_dateutc": "2026-07-22T01:24:04.5873984+00:00"
},
"warranty_period_nb_months": 39,
"use_serial": true,
"_replace_id": "a8219e04-7b56-4be3-90fc-63096d2d198e",
"replace_article_code": "sample string 42",
"db_unit_of_measure_id_selling": "19dea22f-0186-45b4-8fff-1285a6694a93",
"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-07-22T01:24:04.5873984+00:00"
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.