User Tools

Site Tools

  • en

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

NameTypeDescription
orderRequestSendOrderContractObject containing order parameters

SendOrderContract

NameTypeDescription
OrderNumstringOrder number in the MONT system. It is created on the partner's side and must be unique within the entire pool of partner orders.
SendOrderLinesarray of SendOrderLineContractArray containing all lines of this order

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 <Data> tag):

TypeDescription
OrderContractObject with the placed order containing current order status and numbers of created subscriptions

Possible errors

КодТекст ошибки
2Product not found
4Order with that number (order line) is already exists in the MONT system
6Credit limit exceeded
8Order line number field is not specified
10Product is blocked
12The license form has not been specified
16Reseller is blocked
17Quantity is incorrect
25Invalid format for the order line number. For Microsoft products, the line number must not exceed 32 characters.
61Subscription not yet activated
71Order number field is not set
72There are no order lines in the order
75Subscriber with the specified code was not found
76Subscriber with the specified code was not activated
87No subscriber specified for a subscription
101Internal service error
200Incorrect EndUserInfo Data
900You do not need an activation form for that product
6000Operation not allowed
6005It is forbidden to order products with personal licenses
7022Unisafe phone check not passed
7023Unisafe phone check error

Sample requests and replies for AddOrder method

XmlOverHttp request without licence form

XmlOverHttp response without licence form


XmlOverHttp request with licence form

XmlOverHttp response with licence form


SOAP request without licence form

SOAP response without licence form


SOAP request with licence form

SOAP response with licence form