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": "55ef1562-2bd5-4a0f-90be-b24c15179cf5", "purchase_order_id": "220357b9-8a32-4d35-a7d5-3916970a434d", "purchase_order_reference_back_office": "sample string 3", "purchase_order": { "id": "74931baa-f02b-49d0-8821-cae9cbe4bb7c", "id2": 2, "jobs_id": "a32dae32-9873-44c3-b366-7d7f128fe8e4", "jobs_reference_back_office": "sample string 4", "supplier_company_id": "50c54453-3552-411f-94e4-20d429448444", "supplier_company_code": "sample string 6", "user_id": "5ed91cee-c7a7-4c68-b569-3f8deeb8e25d", "user_code": "sample string 8", "description": "sample string 9", "memo": "sample string 10", "total_lines": 11, "date_create": "2024-04-26T15:27:54.1350922+00:00", "date_update": "2024-04-26T15:27:54.1350922+00:00", "date_delivery": "2024-04-26T15:27:54.1350922+00:00", "confirmed_date_delivery": "2024-04-26T15:27:54.1350922+00:00", "delivery_db_address_id": "b4413e8f-c04b-484b-bb4b-08b92fcdf1ff", "approved_by_user_id": "f8d64447-f834-4873-a54e-3300ebb8da0d", "approved_by_user_code": "sample string 18", "technical_user_id": "16025b73-c4a8-435b-9aa6-6769d0979966", "technical_user_code": "sample string 20", "purchase_order_status_id": "c9cc2af0-0b7e-412d-baf2-d9e6b98aed29", "purchase_order_status_code": "sample string 22", "article_stock_location_id": "bcfccd46-bd4f-4355-851d-8db67e3636a6", "is_pickup": true, "reference_back_office": "sample string 25", "modified_dateutc": "2024-04-26T15:27:54.1350922+00:00" }, "article_id": "f3888e15-9ee5-467a-85aa-fc347d5b4779", "article_code": "sample string 5", "article": { "id": "fc00ad71-b2f6-4be0-8f1e-3e851d4e1399", "article_category_id": "a994ee0f-e303-440f-b1ed-21e6e7a3fb5e", "article_category": { "id": "a119febf-5457-46e5-937a-98fc79729ddd", "parent_id": "290c073f-a91c-486c-aa77-b343a7c4c5c1", "parent_code": "sample string 3", "code": "sample string 4", "name": "sample string 5", "modified_dateutc": "2024-04-26T15:27:54.1350922+00:00" }, "article_category_code": "sample string 3", "article_group_1_id": "30fbe63d-456a-479b-b91a-9d840f3345f8", "article_group_1_code": "sample string 5", "article_group_2_id": "5fcdd254-a6b1-441a-bbe9-df6b03c0b098", "article_group_2_code": "sample string 7", "article_group_3_id": "55fe1352-dab4-43ae-b7af-5a4c9f68b25e", "article_group_3_code": "sample string 9", "article_group_4_id": "5254109f-31d4-4272-9507-33936199c1a0", "article_group_4_code": "sample string 11", "article_group_5_id": "e0fe498d-f8e7-4319-ab82-27e831687ed2", "article_group_5_code": "sample string 13", "article_group_6_id": "30e76ee7-d050-407e-92ea-c55e2586850e", "article_group_6_code": "sample string 15", "physical_stock": 16, "back_order_client": 17, "back_order_supplier": 18, "expected_delivery_date_bo_supplier": "2024-04-26T15:27:54.1350922+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-04-26T15:27:54.1350922+00:00", "date_update": "2024-04-26T15:27:54.1350922+00:00", "modified_dateutc": "2024-04-26T15:27:54.1350922+00:00", "article_color_id": "00b17d9d-6756-44c4-a70c-858bc9594e61", "article_color_code": "sample string 38", "article_color": { "id": "49ce7489-8406-444a-b84e-baf16a0b320a", "name": "sample string 2", "code": "sample string 3", "modified_dateutc": "2024-04-26T15:27:54.1350922+00:00" }, "warranty_period_nb_months": 39, "use_serial": true, "_replace_id": "15dce6d7-22cd-4f04-a71b-affc5dd6a6e6", "replace_article_code": "sample string 42", "db_unit_of_measure_id_selling": "8591e0f7-ecb5-4b15-b28b-8989d5a69013", "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-04-26T15:27:54.1507185+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.