WooCommerce
Interact with your WooCommerce WordPress E-Commerce website using SQL Server
- Install the SQLHTTP database on your SQL Server
 - Install the WordPress WP REST API – OAuth 1.0a Server
 - Obtain a Consumer Key and Consumer Secret by following these steps
 - Create the stored procedures documented below
 - Execute the following SQL statement:
 
| 
					 1 2 3 4 5 6  | 
						EXEC usp_WooCommerce_v2_Auth_Init @Profile = 'enter-profile-name-of-your-choosing',                   @RootURL = 'enter-root-web-address',                   @ConsumerKey = 'enter-consumer-key',                   @ConsumerSecret = 'enter-consumer-secret'  | 
					
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14  | 
						CREATE PROCEDURE usp_WooCommerce_v2_Auth_Init(    @Profile nvarchar(100),                             @RootURL nvarchar(200),                             @WC_ConsumerKey varchar(4000),                              @WC_ConsumerSecret varchar(4000)) AS SET NOCOUNT ON EXEC SQLHTTP.net.AuthParamSet @Profile = @Profile, @Name = 'RootURL', @Value = @RootURL EXEC SQLHTTP.net.AuthParamSet @Profile = @Profile, @Name = 'WC_ConsumerKey', @Value = @WC_ConsumerKey EXEC SQLHTTP.net.AuthParamSet @Profile = @Profile, @Name = 'WC_ConsumerSecret', @Value = @WC_ConsumerSecret GO  | 
					
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  | 
						CREATE PROCEDURE usp_WooCommerce_v2_Auth_Header(@HttpSessionID uniqueidentifier,                              @Profile nvarchar(100),                              @URL nvarchar(4000),                              @Method varchar(10)) AS DECLARE @WC_ConsumerKey varchar(4000)  DECLARE @WC_ConsumerSecret varchar(4000) SET @WC_ConsumerKey = SQLHTTP.net.AuthParam(@Profile, 'WC_ConsumerKey') SET @WC_ConsumerSecret = SQLHTTP.net.AuthParam(@Profile, 'WC_ConsumerSecret') EXEC SQLHTTP.net.OAuthHeader    @HttpSessionID = @HttpSessionID,                 @URL = @URL,                 @Method = @Method,                 @ConsumerKey = @WC_ConsumerKey,                 @ConsumerSecret = @WC_ConsumerSecret,                 @Token = NULL,                  @TokenSecret = NULL GO  | 
					
- Attribute – Create
 - Attribute – Delete
 - Attribute – Fetch
 - Attribute – Update
 - Attribute Term – Create
 - Attribute Term – Delete
 - Attribute Term – Fetch
 - Attribute Term – Update
 - Attribute Terms – Batch Operations
 - Attribute Terms – Fetch
 - Attributes – Batch Operations
 - Attributes – Fetch
 - Categories – Batch Operations
 - Categories – Fetch
 - Category – Create
 - Category – Delete
 - Category – Fetch
 - Category – Update
 - Coupon – Create
 - Coupon – Delete
 - Coupon – Fetch
 - Coupon – Update
 - Coupons – Batch Operations
 - Coupons – Fetch
 - Customer – Create
 - Customer – Delete
 - Customer – Fetch
 - Customer – Update
 - Customer Downloads – Fetch
 - Customers – Batch Operations
 - Customers – Fetch
 - Order – Create
 - Order – Delete
 - Order – Fetch
 - Order – Update
 - Order Note – Create
 - Order Note – Delete
 - Order Note – Fetch
 - Order Notes – Fetch
 - Orders – Batch Operations
 - Orders – Fetch
 - Payment Gateway – Fetch
 - Payment Gateway – Update
 - Payment Gateways – Fetch
 - Product – Create
 - Product – Delete
 - Product – Fetch
 - Product – Update
 - Products – Batch Operations
 - Products – Fetch
 - Refund – Create
 - Refund – Delete
 - Refund – Fetch
 - Refunds – Fetch
 - Reports – Fetch
 - Review – Fetch
 - Reviews – Fetch
 - Sales Report – Fetch
 - Setting Option – Fetch
 - Setting Option – Update
 - Setting Options – Batch Operations
 - Setting Options – Fetch
 - Settings Groups – Fetch
 - Shipping Class – Create
 - Shipping Class – Delete
 - Shipping Class – Fetch
 - Shipping Class – Update
 - Shipping Classes – Batch Oprations
 - Shipping Classes – Fetch
 - Shipping Method – Fetch
 - Shipping Methods – Fetch
 - Shipping Zone – Create
 - Shipping Zone – Delete
 - Shipping Zone – Fetch
 - Shipping Zone – Update
 - Shipping Zone Method – Create
 - Shipping Zone Method – Delete
 - Shipping Zone Method – Fetch
 - Shipping Zone Method – Update
 - Shipping Zone Methods – Fetch
 - Shipping Zones – Fetch
 - System Status Tool – Fetch
 - System Status Tool – Run
 - System Status Tools – Fetch
 - Tag – Create
 - Tag – Delete
 - Tag – Fetch
 - Tag – Update
 - Tags – Batch Operations
 - Tags – Fetch
 - Tax Class – Create
 - Tax Class – Delete
 - Tax Classes – Fetch
 - Tax Rate – Create
 - Tax Rate – Delete
 - Tax Rate – Fetch
 - Tax Rate – Update
 - Tax Rates – Batch Operations
 - Tax Rates – Fetch
 - Top Sellers Report – Fetch
 - Variation – Create
 - Variation – Delete
 - Variation – Fetch
 - Variation – Update
 - Variations – Batch Operations
 - Variations – Fetch
 - Webhook – Create
 - Webhook – Delete
 - Webhook – Fetch
 - Webhooks – Batch Operations
 - Webhooks – Fetch
 
IMPORTANT DISCLAIMER
CODE/SQL ON THESE PAGES ARE PROVIDED AS-IS AND ARE AVAILABLE FOR ILLUSTRATIVE PURPOSES ONLY.
USERS ARE REQUIRED TO ABIDE BY THE TERMS AND CONDITIONS FOR USING REFERENCED THIRD PARTY WEBSITES AND/OR APIs FROM THEIR RESPECTIVE WEBSITES. WE DO NOT CONDONE ANY VIOLATION OF THIRD PARTY WEBSITES AND/OR APIs TERMS AND CONDITIONS USING OUR SOFTWARE.
USERS SHALL BE SOLELY RESPONSIBLE AND BE SOLELY LIABLE FOR VIOLATION OF ANY RULES SPECIFIED BY THIRD PARTIES FOR USING THEIR WEBSITES AND/OR APIs, OR INFRINGEMENT OF RIGHTS OF SUCH THIRD PARTIES.