/
REST - Create sales order API

REST - Create sales order API

calling the API to create sales order

1) createSO


            URL :  
http://tbm-test.wavelet.systems/ws/api/salesOrderService/createSO

            Type : application/json

Notes :

  • Please take note for the customer selection the priority goes for customer id then customer code then customer phone number.
  • The delivery date will be auto set for the next working day

 

Compulsory Data :

Key

Type

sample

username

String

Developer

password

String

Pass

referenceNo

String

20144

BranchCode

String

LHQ

CustomerId OR customerCode

CustomerId→Integer
customerCode→String

CustomerId→10021
customerCode→”krea”

custPhoneNumber

String

60175006824

docRemarks

String

Remarks

soItemList

itemCode

quantity

UnitPriceInclusiveTax

taxCode

String

BigDecimal

BigDecimal

String

“Refegerator”

5

300

SR

 

Sample Json:
{

   "username":"developer",

   "password":"S5Fx2D*AW&ZwcC8w",

   "token":"anything",

   "referenceNo":"25418",

   "soId":"",

   "branchCode":"LHQ",

   "custPhoneNumber":"60166529491",

   "shipAddress1":"24, Jalan USJ 10/1b ",

   "shipAddress2":"Jl. Pademangan 2 Gg 28/22B",

   "shipCity":"Subang Jaya",

   "shipState":"Selangor",

   "shipCountry":"Malysia",

   "shipPostCode":"47500",

   "custEmail":"Tri@yahoo.com",

   "custName":"Tri Yatmo Noveary",

   "custFirstName":"Tri",

   "custLastName":"Noveary",

   "marketPlace":"Lazada",

   "trxDate":"2017-02-11",

   "customerId":0,

   "customerCode":"",

   "salesManCode":"",

   "docRemarks":"",

   "soItemList":[

      {

         "itemCode":"635753485912",

         "itemName":"",

         "quantity":"3",

         "unitPriceInclusiveTax":300,

         "taxCode":"SR"

      },

      {

         "itemCode":"635753485912",

         "itemName":"",

         "quantity":"8",

         "unitPriceInclusiveTax":250,

         "taxCode":"SR"

      },

      {

         "itemCode":"635753485912",

         "itemName":"",

         "quantity":"9",

         "unitPriceInclusiveTax":204,

         "taxCode":"SR"

      }

   ]

}

 

 

 Sample Response  Json:

Failed :
{

  "rtn_msg": "Failed : Invalid branch code!"

}

Success:

{

  "rtn_msg": "Success : Successfully created SO 114869"

}
 DocumentEdit file

Private & Confidential