/
REST - Convert Sales Order to Invoice

REST - Convert Sales Order to Invoice

PURPOSE OF SERVICE

The Webservice takes existing Sales Order and convert it to invoice based on selected items, and quantity, optionally, it will settle the invoice with selected payment.

API DOCUMENTATION

Samples of API Calls can be downloaded and imported to postman here : 

SO Conversion WMS.postman_collection.json

when posting to Server, Please use POST method and Header must include Content-Type:application/json

ERROR CODES

the following table are error codes returned by API : 

Error NameError CodeDescription
GENERAL ERROR(Generally for Exception, Checked Exception only)E00General Error due to Exception Thrown by Java
USER VALIDATION FAILEDE01userid/password combination is invalid
SO NOT FOUNDE02Submitted Sales Order not found in database
SO ITEM NOT FOUNDE03Submitted Sales Order Item not found
SO CANCELLEDE04Sales Order has been cancelled
SO REQUIRE APPROVALE05Sales Order Require Approval
SO CONVERTEDE06Sales Order has been fully Converted
SO BEING EDITEDR01Sales Order is Being Edited
SO CUSTOMER INVALIDE07Sales Order Customer is invalid
SO CUSTOMER INACTIVEE08Sales Order Customer is inactive
STOCK PROBLEM(From not enough stock to serial number problem)E09Problem on Stock
TIMING PROBLEM(Problem on date, whether due to financial Year or due to locked filing cycle)E10Problem on invoice date
DEPOSIT PROBLEME11Payment settled is higher than invoice amount
PERMISSION_UNABLE TO SELL BELOW COSTE12Problem with permission, unable to sell below cost
SETTING_GL DIMENSION PROBLEME13GL dimension not found when GLDimension is required
SO ITEM SERIAL NUMBER NOT MATCHE14Serial number submitted is not same as qty given
SETTLEMENT PAYMENT INVALIDE15Payment amount higher than invoice amount
SETTLEMENT INVALID DOCUMENTE16Payment not used to settle Sales Order, unable to use for settlement
SO ITEM OUTSTANDING INVALIDE17Sales Order Outstanding Qty is lower than submitted Qty

Private & Confidential