====== Vendors Resource ====== The Vendors Resource allows read/write access to the Sage 100 Vendor table for Vendor linked Users, read access to the other Resource Tables. ^Resource Method List^^^^^ ^Action^HTTP^URI^Admin?^Description^ |[[#get|get]]|GET|/vendors||Retrieve Vendor data for the currently logged in User| |[[#list|list]]|GET|/vendors[?APDivisionNo=&vendorNo=]|Only|Administrators can retrieve Vendor data from one or many Vendors| |[[#update|update]]|POST|/vendors[?APDivisionNo=&vendorNo=]|Yes|Update Vendor information| |[[#create|create]]|POST|/vendors|Only|Create a new Vendor| **Resource Table List** \\ Click on the table to view detail. {{page>enhancements:sage100:modules:sde:api:tables:ap_vendor&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ap_division&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ap_terms_code&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ap_vendor_primary_contact&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:ci_inactive_reason_code&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:po_vendor_primary_purchase_address&inline&noheader&nofooter}} {{page>enhancements:sage100:modules:sde:api:tables:gl_account&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 Vendor Resource. This can include data from any of the tables associated with the resource. ==== List ==== Administrators can retrieve any Vendor data from the Vendor Resource by specifying an APDivisionNo and VendorNo in the URI. If the Administrator leaves those fields off the URI, then a list of all Vendors is returned. ==== Update ==== The Vendor table can be updated through the Vendor Resource. Users can update their own Vendor data, while Administrators can update any Vendors data. ==== Create ==== Only an Administrator can create a new Vendor. On a successful Create, the key values, Division Number and Vendor Number, are returned.