Webservices - Insert a Salesorder

 

 

 
REQUEST

{

 

   "Proxy": {   

      "Function":"HeliosWs",

      "HostName":"xxxxx",

      "UserName":"yyyyy",

      "Password":"zzzzz",

      "ReportName":"webservice"

   },

   

   "AuthenticationType":"SYSTEM",

   "UserName":"16984205",

   "Password":"8G56A2NrB",

   "Function":"InsertSalesOrder",

   "OrderHead":

   {"Type":"";

    "CustomerNo":"44570088",

    "CustomerName":"",

    "CustomerAddress":"",

    "CustomerPostCode":"",

    "CustomerCity":"",

    "CustomerMobile":"",

    "VehicleRegNo":"DG23969",

    "Salesman":"WEB",

    "Vin":""},

   "OrderLines":

   [{"ArticleNo":"O",

     "Text":"Titan GT1 Pro Flex 5W-30 Olie",

     "Quantity":4.2,

     "Salesprice":192.95,

     "DiscountPct":10}]

}

 

 
RESPONSE

{

   "OrderNo": 37608,

   "OrderHead": {

      "CustomerNo": "44570088",

      "CustomerName": "RST ApS",

      "CustomerAddress":"Tølløsevej 47",

      "CustomerPostCode":"2700",

      "CustomerCity": "Brønshøj",

      "CustomerMobile":"",

      "VehicleRegNo": "",

      "SalespriceIncVat": 911.69

   },

   "OrderLines": [{

      "ArticleNo": "O",

      "Text": "Titan GT1 Pro Flex 5W-30 Olie",

      "Quantity": 4.2,

      "Salesprice": 192.95,

      "DiscountPct":10

   }],

   "WebserviceInfo": {

      "Name": "HELIOSWEBSERVICE",

      "Version": 1,

      "Build": 2001

   },

   "AuthenticationType": "SYSTEM",

   "ErrorCode": 0,

   "ErrorText": "",

   "Success": "true",

   "Proxy": {

   "AgentName": "WSPROXY",

   "AgentVersion": "1.00.1015",

   "AgentCopyright": "Copyright (C) 2017-2018 Torben Ring. All rights reserved.",

   "ErrorCode": 0,

   "Success": true

   }

}

 

 
COMMENTS

  • If Type is set as QUOTE a quote will be created, otherwise an order will be created.
  • CustomerNo must exist in Helios.
  • Customers name and address information on sales order can be set by including data in request. If no name and address information is included, name and address information from Helios will be used on the sales order.
  • Salesman must exist if salesman is to be included in the query
  • All ArticleNo's must exist in Helios.
  • If no Text or Salesprice is entered in the request default values will be taken from Helios.
  • The OrderNo of the new order is returned in the response.