====== AddOrder ====== ===== Description ===== This method is used to add an order to the Mont Webstore system. The input object contains order number and a list of order lines. Each line matches a single ordered item and has a unique number. It describes: * Product ID (Partnumber); * part number of the ordered item; * quantity; * filled out license form with end user data * ID of subscriber that subscription is created for (filled out for subscriptions only). ===== Parameters ===== ^Name^Type^Description^ |orderRequest|[[ru:apiv2:types:SendOrderContract|SendOrderContract]]|Object containing order parameters| ==== SendOrderContract ==== {{section>ru:apiv2:types:sendordercontract#Список полей (EN)&noheader}} ===== Return value ===== All replies from B2BServiceV2Xml.svc and B2BServiceV2.svc web-services become a contract of the following format (the contract contains information about errors in web-service operation and a reply from the called method within the tag):{{section>ru:apiv2:types:baseresponse#Шаблон&noheader}} ^Type^Description^ |[[ru:apiv2:types:OrderContract|OrderContract]]|Object with the placed order containing current order status and numbers of created subscriptions| ===== Possible errors ===== {{section>ru:apiv2:information:start#EN&noheader}} ===== Sample requests and replies for AddOrder method ===== {{section>blocks:method:addorder:sample&noheader}} ---- [[en:content:examples:php_code|Sample scripts on PHP]] [[en:apiv2:start:soapuiexamples|Example of running REST and SOAP requests]] {{tag>methon esd}}