Creates a new purchase order order line
Request Information
URI Parameters :
None.
Body Parameters :
purchase_order_detailsName | 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": "f26e58a3-01ec-4ad8-bc7d-39011169f165", "purchase_order_id": "79d4fab9-d3a2-4b0e-96af-fe4e5688505e", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "ad84c39d-08fe-41e4-909e-e187782a86eb", "id2": 2, "jobs_id": "7df590e5-5dd5-4305-9062-ee543872d463", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "270632a8-e2ec-48d9-b5c9-e91304f5b0d3", "supplier_company_code": "sample string 6", "user_id": "6a6c1f59-8fed-485e-bd26-bc0fa174fc03", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-05-18T01:09:37.3902713+00:00", "date_update": "2025-05-18T01:09:37.3902713+00:00", "date_delivery": "2025-05-18T01:09:37.3902713+00:00", "confirmed_date_delivery": "2025-05-18T01:09:37.3902713+00:00", "delivery_db_address_id": "085471c5-4350-40ac-ab59-65facb1499ba", "approved_by_user_id": "38ac02dd-dd30-4adc-bd3a-3eb3f20853d2", "approved_by_user_code": "sample string 18", "technical_user_id": "d575416e-a6bc-47b7-bd84-a6e4bdd12c5d", "technical_user_code": "sample string 20", "purchase_order_status_id": "eb9d6897-8df6-4135-a522-9e9c7ba2cb6b", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "d3e78e27-d51f-4dc4-8481-8d3e7ef40c2f", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-05-18T01:09:37.3902713+00:00" }, "article_id": "18cd3911-95cd-4ac2-9e8f-f272d9c7b32c", "article_code": "sample string 5", "article": { "id": "590e3675-83a1-4c02-92bd-82cf3fbb3b5f", "article_category_id": "8c3439df-cd11-4ac7-b772-9656188a61df", "article_category": { "id": "431fb494-4a6b-40bb-97b1-8036b0bb3725", "parent_id": "b53a6b54-5d55-4c45-a3a4-d77193579ef6", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-05-18T01:09:37.3902713+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "cc7d81d1-9bce-4065-86a0-844c92155c8f", "article_group_1_code": "sample string 5", "article_group_2_id": "d7f967df-f8d3-40d7-b3a9-fadf36c5b4b2", "article_group_2_code": "sample string 7", "article_group_3_id": "c4c772c5-9291-4b19-86b1-ba835e8a0d19", "article_group_3_code": "sample string 9", "article_group_4_id": "4dbce095-55ae-4799-b2e9-7fc258ec8433", "article_group_4_code": "sample string 11", "article_group_5_id": "ebca94d0-1d3c-4267-b05a-4f7ea787ad7d", "article_group_5_code": "sample string 13", "article_group_6_id": "6b5ba1c0-f543-474b-ae19-7f018cdea469", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-05-18T01:09:37.3902713+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": "2025-05-18T01:09:37.3902713+00:00", "date_update": "2025-05-18T01:09:37.3902713+00:00", "modified_dateutc": "2025-05-18T01:09:37.3902713+00:00", "article_color_id": "477c149a-a4af-4b0c-921d-6736616a5b9b", "article_color_code": "sample string 38", "article_color": { "id": "e549f624-de66-4597-b30b-68be8dc5b894", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-05-18T01:09:37.3902713+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "d59c66d1-a6d7-4341-b432-238007da0bba", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "b9ed34fb-ba2c-4464-943b-c58198d44f5a", "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": "2025-05-18T01:09:37.3902713+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.