====== Customers Resource ====== The Customers Resource allows read/write access to the Sage 100 Customer table for Customer linked Users, read access to the other Resource Tables. ^Resource Method List^^^^^ ^Action^HTTP^URI^Admin?^Description^ |[[#get|get]]|GET|/customers||Retrieve Customer data for the currently logged in User| |[[#list|list]]|GET|/customers[?ARDivisionNo=&customerNo=]|Only|Administrators can retrieve Customer data from one or many Customers| |[[#update|update]]|POST|/customers[?ARDivisionNo=&customerNo=]|Yes|Update Customer information| |[[#create|create]]|POST|/customers|Only|Create a new Customer| **Resource Table List** \\ Click on the table to view detail. {{page>enhancements:sage100:modules:sde:api:tables:ar_customer&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_division&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_terms_code&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_customer_primary_contact&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_salesperson&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_payment_type&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_customer_credit_card&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ar_billto_soldto&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:so_shipping_rate&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:so_customer_primary_ship_to_address&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ci_inactive_reason_code&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:sy_sales_tax_schedule&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:sy_slaes_tax_class&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:sy_country_code&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:sy_zipcode&inline&noheader&nofooter}} \\ ===== Resource Methods ===== ==== Get ==== Users can retrieve their own data from the Customer Resource. This can include data from any of the tables associated with the resource. ==== List ==== Administrators can retrieve any Customer data from the Customer Resource by specifying an ARDivisionNo and CustomerNo in the URI. If the Administrator leaves those fields off the URI, then a list of all Customers is returned. ==== Update ==== The Customer table can be updated through the Customer Resource. Users can update their own Customer data, while Administrators can update any Customers data. ==== Create ==== Only an Administrator can create a new Customer. On a successful Create, the key values, Division Number and Customer Number, are returned.