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": "1e389c80-b7cd-4df1-abde-6cf236a52571", "purchase_order_id": "35eaee15-5455-436e-bf91-d1bd07492139", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "2c3f828d-6a98-4ebf-991c-e67a5e4970fe", "id2": 2, "jobs_id": "dd8aa4fc-ba56-4387-bcdb-7bdb216072dd", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "03eedee9-8a74-4405-b6db-6854eb3fdf8f", "supplier_company_code": "sample string 6", "user_id": "b51950c0-55f6-443b-9e3d-190843c926c8", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2025-02-22T17:42:27.6141634+00:00", "date_update": "2025-02-22T17:42:27.6141634+00:00", "date_delivery": "2025-02-22T17:42:27.6141634+00:00", "confirmed_date_delivery": "2025-02-22T17:42:27.6141634+00:00", "delivery_db_address_id": "91005883-3311-4380-b6e6-036757f468d7", "approved_by_user_id": "590f1d5f-0ca3-44d6-8000-df3bc158c9e4", "approved_by_user_code": "sample string 18", "technical_user_id": "728d2bd6-dc51-40e7-9997-362c38956edc", "technical_user_code": "sample string 20", "purchase_order_status_id": "15b51ebe-d560-4dbb-9ecf-f0d6562fb69e", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "503b9bdf-a692-4a56-9ea6-281e75b9db21", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2025-02-22T17:42:27.6141634+00:00" }, "article_id": "53c9c81e-6e31-4198-9c58-f3c1c232ebf0", "article_code": "sample string 5", "article": { "id": "dc2b7256-7118-48ad-b1ca-b26b8b17da59", "article_category_id": "4619042b-716f-4156-b413-ec63e6ead373", "article_category": { "id": "588ecd5a-fb14-4b92-9631-1ef7609a8a3d", "parent_id": "03486faf-b7c0-4506-b4e4-bb1fc661bb6e", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2025-02-22T17:42:27.6141634+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "e218068a-f725-4a5c-b9ab-b5fa23d569fb", "article_group_1_code": "sample string 5", "article_group_2_id": "02e05a85-4923-4e2f-bec6-a79d9918db00", "article_group_2_code": "sample string 7", "article_group_3_id": "2f0ee886-f267-4e7c-870a-fb8374b8bbfd", "article_group_3_code": "sample string 9", "article_group_4_id": "0ac8a7ba-c759-4b77-8f21-9dfacffe55fe", "article_group_4_code": "sample string 11", "article_group_5_id": "e392aaf3-ace5-41a5-a6b5-698616b89ec6", "article_group_5_code": "sample string 13", "article_group_6_id": "a57ee14d-a9a3-447b-9049-f2375f321887", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2025-02-22T17:42:27.6141634+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-02-22T17:42:27.6141634+00:00", "date_update": "2025-02-22T17:42:27.6141634+00:00", "modified_dateutc": "2025-02-22T17:42:27.6141634+00:00", "article_color_id": "3fb0889e-ca86-4f0f-96ee-07f677e5a693", "article_color_code": "sample string 38", "article_color": { "id": "86376f40-8db3-41bd-bfc7-e6e45e09f927", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2025-02-22T17:42:27.6141634+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "5068ec6f-4ee9-49b1-8cb9-88e55e642923", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "d982816e-b471-43f8-9521-cb7437f04ce6", "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-02-22T17:42:27.6297876+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.