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": "a2dac980-d91f-4ba5-ad30-114ad0dc2dc5", "purchase_order_id": "6186e616-af3b-4e4f-aba5-9c3c55dfe2c5", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "b0495aeb-70eb-494a-b4bd-491dc008598a", "id2": 2, "jobs_id": "c16760d7-2d05-4d2a-8391-18c8801534a9", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "7b8679e3-7a97-4fe6-bfe1-dc318adc6777", "supplier_company_code": "sample string 6", "user_id": "59aca9a7-9df4-40a0-b37c-1a06c19cf9aa", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2023-09-16T08:20:29.6743823+00:00", "date_update": "2023-09-16T08:20:29.6743823+00:00", "date_delivery": "2023-09-16T08:20:29.6743823+00:00", "confirmed_date_delivery": "2023-09-16T08:20:29.6743823+00:00", "delivery_db_address_id": "b1b21b85-6a4e-44b7-8cf3-98712483240e", "approved_by_user_id": "e42c0415-5bca-489a-9f97-fd2cba82c2d4", "approved_by_user_code": "sample string 18", "technical_user_id": "215db575-9f58-49d7-9a0e-70a6f95585e3", "technical_user_code": "sample string 20", "purchase_order_status_id": "fe26d112-5a9a-4a6d-a8d0-f1bd97fd5310", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "bb86c13f-f929-4573-b15d-9c32e78ccdb7", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2023-09-16T08:20:29.6743823+00:00" }, "article_id": "842b0eb3-6f18-467c-9885-31df5a6d9f18", "article_code": "sample string 5", "article": { "id": "9cb95fa5-9e43-43f1-98db-8633ba61fad8", "article_category_id": "9dd19443-4c61-41b0-8c64-f1f6030748b1", "article_category": { "id": "2bc39738-05be-4b3a-84ba-0b26ab6a64a8", "parent_id": "2df7be29-8a07-4259-8cfd-32ab9f23ef23", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2023-09-16T08:20:29.6743823+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "c914f047-30d8-409c-a09a-ad62f4ec6ae5", "article_group_1_code": "sample string 5", "article_group_2_id": "25908b46-83f6-4032-9056-8cb4c1009d30", "article_group_2_code": "sample string 7", "article_group_3_id": "2dd0b776-dab0-4e4e-884f-2683eb01ce54", "article_group_3_code": "sample string 9", "article_group_4_id": "d154e54d-93bc-42e2-ac00-98531e5e6cea", "article_group_4_code": "sample string 11", "article_group_5_id": "862b049a-81f8-4849-a298-5414d5ae0d0d", "article_group_5_code": "sample string 13", "article_group_6_id": "ba3e8d50-c489-489f-a844-60e958eb1afc", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2023-09-16T08:20:29.6743823+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": "2023-09-16T08:20:29.6743823+00:00", "date_update": "2023-09-16T08:20:29.6743823+00:00", "modified_dateutc": "2023-09-16T08:20:29.6743823+00:00", "article_color_id": "a5c28a7d-25d7-4a0a-ad0f-b7ce5de61754", "article_color_code": "sample string 38", "article_color": { "id": "a0b5b07c-f3b2-4f56-b922-b6898995cca2", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2023-09-16T08:20:29.6743823+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "26de6109-8261-41c8-b272-1ce8dbf7cd13", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "37030e32-909c-498e-8859-c3e88d21c4fc", "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": "2023-09-16T08:20:29.6743823+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.