/
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 Name | Error Code | Description |
---|---|---|
GENERAL ERROR(Generally for Exception, Checked Exception only) | E00 | General Error due to Exception Thrown by Java |
USER VALIDATION FAILED | E01 | userid/password combination is invalid |
SO NOT FOUND | E02 | Submitted Sales Order not found in database |
SO ITEM NOT FOUND | E03 | Submitted Sales Order Item not found |
SO CANCELLED | E04 | Sales Order has been cancelled |
SO REQUIRE APPROVAL | E05 | Sales Order Require Approval |
SO CONVERTED | E06 | Sales Order has been fully Converted |
SO BEING EDITED | R01 | Sales Order is Being Edited |
SO CUSTOMER INVALID | E07 | Sales Order Customer is invalid |
SO CUSTOMER INACTIVE | E08 | Sales Order Customer is inactive |
STOCK PROBLEM(From not enough stock to serial number problem) | E09 | Problem on Stock |
TIMING PROBLEM(Problem on date, whether due to financial Year or due to locked filing cycle) | E10 | Problem on invoice date |
DEPOSIT PROBLEM | E11 | Payment settled is higher than invoice amount |
PERMISSION_UNABLE TO SELL BELOW COST | E12 | Problem with permission, unable to sell below cost |
SETTING_GL DIMENSION PROBLEM | E13 | GL dimension not found when GLDimension is required |
SO ITEM SERIAL NUMBER NOT MATCH | E14 | Serial number submitted is not same as qty given |
SETTLEMENT PAYMENT INVALID | E15 | Payment amount higher than invoice amount |
SETTLEMENT INVALID DOCUMENT | E16 | Payment not used to settle Sales Order, unable to use for settlement |
SO ITEM OUTSTANDING INVALID | E17 | Sales Order Outstanding Qty is lower than submitted Qty |
Private & Confidential