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": "579a588d-7325-4af0-96e3-c3f047022068", "purchase_order_id": "b5b8cc28-bd33-44ba-ae0b-60e36e5b1f8d", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "f48b338c-48bd-40f9-b7f7-5fa7ea1cd0f5", "id2": 2, "jobs_id": "d1909dc6-e942-47b9-9e71-bfadf773d093", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "2ff6132f-2691-4712-958c-0ef0d97de3d5", "supplier_company_code": "sample string 6", "user_id": "962b879e-c8e0-45cb-92fc-5b4b758e5f44", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2024-12-28T18:46:16.7007225+00:00", "date_update": "2024-12-28T18:46:16.7007225+00:00", "date_delivery": "2024-12-28T18:46:16.7007225+00:00", "confirmed_date_delivery": "2024-12-28T18:46:16.7007225+00:00", "delivery_db_address_id": "2687f81d-48be-4331-9ed3-de3e875b954e", "approved_by_user_id": "f7cdbd00-eb80-42f5-882c-3f1c45de6b9b", "approved_by_user_code": "sample string 18", "technical_user_id": "3f623782-8f26-4911-a345-ed4e2c36d13e", "technical_user_code": "sample string 20", "purchase_order_status_id": "2190f160-d982-4b18-8c79-e78c621e3f22", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "3952a5d0-0e87-4e39-930e-c8cac4e8e29c", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2024-12-28T18:46:16.7007225+00:00" }, "article_id": "b2c495ee-1910-411b-b4ed-138d95d6ee25", "article_code": "sample string 5", "article": { "id": "00e2f0a0-3fad-4a82-8c23-6bd9f5567c9b", "article_category_id": "bc8072b4-4cc2-4058-a451-750483326479", "article_category": { "id": "84e2840c-5fe7-423c-8f8b-43c05bd978f6", "parent_id": "fb94762b-2975-4343-8f46-0b07c1bf4402", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2024-12-28T18:46:16.7007225+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "36986123-b795-41c4-ad9b-120646432fb3", "article_group_1_code": "sample string 5", "article_group_2_id": "49e5ffd5-242a-44e2-8e66-413dcbe7c034", "article_group_2_code": "sample string 7", "article_group_3_id": "d7247f4d-7cd1-4a3e-961a-945b43398efb", "article_group_3_code": "sample string 9", "article_group_4_id": "53ca0fe2-e9b2-4503-a7fa-fbb16223f945", "article_group_4_code": "sample string 11", "article_group_5_id": "897e7cdb-863b-4ad2-8050-a20a98055af5", "article_group_5_code": "sample string 13", "article_group_6_id": "51a31c96-60f3-4eea-865a-63b13aef0d92", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2024-12-28T18:46:16.7007225+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": "2024-12-28T18:46:16.7007225+00:00", "date_update": "2024-12-28T18:46:16.7007225+00:00", "modified_dateutc": "2024-12-28T18:46:16.7007225+00:00", "article_color_id": "96ba9fe9-ed21-434e-8342-b127eb7bb4e5", "article_color_code": "sample string 38", "article_color": { "id": "0b4044ba-60d1-4ba0-8130-f7803087a487", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2024-12-28T18:46:16.7007225+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "6eb12270-b14d-4147-8618-fb1c74245bea", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "125e3eff-6055-46b6-95c7-95ba08619f06", "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": "2024-12-28T18:46:16.7007225+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.