====== SalesOrders Resource ====== Customer Users and Administrators can access the SalesOrders Resource. Users can retrieve one Sales Order or a list of Sales Orders for their Customer. Administrators can retrieve one Sales Order or a list of Sales Orders for any Customer. Customer Users and Administrators can create new orders, using the Create and Submit method. The Create method, creates a Sales Order Quote in order to calculate freight and sales tax without affecting inventory. The second method, Submit, changes the Quote to an Order. The Submit method also allows you to post payment information. If your website handles the credit card processing, just post a deposit on the order in a special Payment Type ("WEB"?). Payment data is not allowed on a Quote! ^Resource Method List^^^^^ ^Action^HTTP^URI^Admin?^Description^ |[[#get|get]]|GET|/salesOrders[?salesOrderNo=]| |Users can retrieve one or more of the Sales Orders belonging to their Customer| |[[#list|list]]|GET|/salesOrders||Users can retrieve one or more of the Sales Orders belonging to their Customer. Administrators can retrieve one or more Sales Order for any Customer| |[[#update|update]]|POST|/salesOrders?method=update&salesOrderNo=||The update method removes the Sales Order and creates a new entry with the same Sales Order Number| |[[#create|create]]|POST|/salesOrders?method=create||The Create method creates a new Sales Order Quote. The Sales Order Number is returned| |[[#submit|submit]]|POST|/salesOrders?method=submit||The Submit method changes the Quote to a Sales Order. The Sales Order Number is returned| |[[#delete|delete]]|POST|/salesOrders?method=delete&salesOrderNo=||Delete the Sales Order from Sage 100| **Resource Table List** \\ Click on the table to view detail. {{page>enhancements:sage100:modules:sde:api:tables:sales_order&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:sales_order_detail&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_customer&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_division&inline&noheader&nofooter}} \\ ===== Resource Methods ===== ==== Get ==== Sales Order header and detail data is available to Customer Users and Administrators. The columns to be returned are defined in Return Maintenance. ==== List ==== Customer Users can return a list of all of their Sales Orders. Administrators can return a list of all Sales Orders. ==== Update ==== Customer Users can update Sales Orders assign to their Customer, while Administrators can update any Sales Orders. ==== Create ==== Customer Users can create Sales Orders for their Customer. (Administrators can create a Sales Order for any Customer.) Sales Orders are created initially as Quotes, and then converted to Orders using the Submit method. This paradigm is in place so the order can be added without affecting inventory and still calculating sales tax and freight. This enables your application to display the sales tax and freight to a web user before submitting the order. ==== Submit ==== Customer Users can submit Sales Orders previously placed on file for their Customer as Quotes. The Quote is simply changed to an Order. Administrators can Submit any Sales Order placed on file as a Quote. ==== Delete ==== Only Administrators can change a user from Active to Inactive, removing the users access to the Sage Data Exchange API. Users cannot actually be deleted by the external application.