Skip to content

Connect WooCommerce to Infograph

What it brings in: orders, trashed orders, order line items, refunds, order refunds and 21 more.

What you need

  • A WooCommerce store on WordPress, served over https. WordPress accepts a REST API key only over https.
  • An Administrator or Shop manager login to the store's WordPress admin.
  • Pretty permalinks. Under Settings, Permalinks in WordPress, any choice but Plain works. With Plain, the store's REST API is not at the address Infograph uses.

Steps

  1. Find your store's address

    In WordPress, open Settings, then General, and copy Site Address (URL). Use it as it is, starting https://, with any folder WordPress lives in, such as https://example.com/shop. Leave out /wp-admin and any page after it.

    https://shop.example.com
  2. Open REST API in WooCommerce

    In WordPress, open WooCommerce, then Settings, then the Advanced tab, and REST API. Click Add key, or Create an API key on a store that has none yet.

  3. Create a read key

    Under Key details, type Infograph as the Description. As User, choose an Administrator or Shop manager, as the key reads what that user may see. Set Permissions to Read, then click Generate API key. A Read key cannot change anything in your store.

  4. Copy the key and secret

    WooCommerce shows a Consumer key, starting ck_, and a Consumer secret, starting cs_. Copy both now: the secret is shown only once.

  5. Paste them in Infograph and choose your tables

    Open WooCommerce in Infograph, type your address into Store address, paste the key into Consumer key and the secret into Consumer secret, then press Connect. Pick the tables you want and Infograph starts loading them, with your store's full history.

What it syncs

Each becomes a table in Infolake that you can chart, report on or ask about. You choose which to sync.

Ordersorders

Every order of any status, read while it is not in the trash, with the customer, billing and shipping details, totals, tax, discounts, shipping, payment method, line items and dates. Each amount also comes as an exact decimal. The base for sales, product and customer dashboards.

Ask: “What were our sales each week this quarter?”

Trashed orderstrashed_orders

Orders in the trash, with the same fields as Orders. A restored order leaves this table.

Ask: “How many orders did we trash last month?”

Order linesorder_line_items

Each product line on each order, with the product, variation, SKU, quantity, price, subtotal, tax and total. A line removed when an order is edited leaves on a later sync.

Ask: “Which products sold the most units last month?”

Refundsrefunds

Every refund across the store, with its amount, reason, the order it belongs to and when it was made. Offered on WooCommerce 9.0 and later.

Ask: “How much did we refund each month this year?”

Refunds, read per orderorder_refunds

Refunds read order by order, with the amount, reason and when. Offered instead of Refunds on stores older than WooCommerce 9.0, or when the store hides its list of endpoints.

Ask: “Which orders were refunded last month, and for how much?”

Show all 26 tables
Order notesorder_notes

The notes on each order, such as status changes and messages to the customer, with who wrote them and when. Shows each order's history.

Ask: “How long do orders take to go from processing to completed?”

Customerscustomers

Every registered user of any role, usually customers but also staff such as administrators, with their name, email, billing and shipping details and when they signed up. Guests are not here, see Orders.

Ask: “How many customers registered each month this year?”

Productsproducts

Every product, trashed ones included, with its name, SKU, type, status, prices, stock, categories and tags. Ties orders back to what you sell.

Ask: “Which products are low on stock?”

Product variationsproduct_variations

The variations of each variable product, such as a size or colour, with SKU, prices and stock.

Ask: “Which sizes of our best seller sell most?”

Couponscoupons

Every coupon, read while it is not in the trash, with its code, discount type, amount, limits, expiry and how many times it has been used.

Ask: “Which coupons were used most this year?”

Trashed couponstrashed_coupons

Coupons in the trash, with the same fields as Coupons. A restored coupon leaves this table.

Ask: “Which coupons did we trash?”

Product categoriesproduct_categories

Your product categories, with their name, parent and product count.

Ask: “How much did each category sell last month?”

Product tagsproduct_tags

Your product tags, with their name and product count.

Ask: “Which product tags are on the most products?”

Product attributesproduct_attributes

The global attributes products use, such as Size or Colour.

Ask: “Which attributes do our products use?”

Product attribute termsproduct_attribute_terms

The values of each attribute, such as Small, Medium and Large.

Ask: “Which sizes do we offer?”

Shipping classesproduct_shipping_classes

Your shipping classes, such as Bulky, and how many products are in each.

Ask: “How many products are in each shipping class?”

Product reviewsproduct_reviews

Every product review, approved or not, with the product, rating, reviewer, whether they are a verified buyer, and the date.

Ask: “What is the average rating of each product?”

Tax ratestax_rates

Your tax rates, with the country, state, postcode, rate, name and class.

Ask: “Which tax rates do we charge in each country?”

Tax classestax_classes

Your tax classes, such as Standard and Reduced rate.

Ask: “Which tax classes do we use?”

Shipping zonesshipping_zones

Your shipping zones, with their names and order.

Ask: “Which shipping zones do we have?”

Shipping zone locationsshipping_zone_locations

The countries, states and postcodes in each shipping zone.

Ask: “Which countries are in each shipping zone?”

Shipping zone methodsshipping_zone_methods

The shipping methods offered in each zone, such as flat rate or free shipping, with whether they are enabled.

Ask: “Which zones offer free shipping?”

Shipping method typesshipping_methods

The kinds of shipping method your store can offer, such as flat rate, free shipping and local pickup.

Ask: “Which shipping methods can our store offer?”

Payment methodspayment_gateways

The payment methods your store has, with their title and whether they are enabled. Their settings, which can hold gateway secrets, are left out.

Ask: “Which payment methods are enabled at checkout?”

Store settingsstore_settings

Your store's general settings, such as its address, currency, decimals and where it sells. Gives every money column its context.

Ask: “What currency is our store in?”

Subscriptionssubscriptions

Every subscription from the WooCommerce Subscriptions extension, with the customer, status, billing period, totals, line items and its start, next payment and end dates. Offered only on stores with the extension. The base for recurring revenue and churn.

Ask: “How many active subscriptions do we have, and how many were cancelled each month?”

Troubleshooting

Each entry is the message Infograph shows when a connection fails. Open it for the fix.

Those credentials were not accepted.

WooCommerce did not accept the key and secret together. Check you pasted the Consumer key into Consumer key and the Consumer secret into Consumer secret, each in full. A key that is revoked under WooCommerce, Settings, Advanced, REST API, or whose WordPress user is deleted, stops working too, and a connection that synced before then shows this. Create a new key with Read permission, open the connection in Infograph, choose Edit configuration and paste the new key and secret.

Common problems

These happen in WooCommerce itself, where Infograph cannot see them.

The key is right but WooCommerce does not see it
Some hosts remove the Authorization header before WordPress sees it, so the store answers as if no key came. Infograph says to check the key, then to change Send the key. Open Advanced on the connect form, set Send the key to In the address and press Connect again. The key then travels inside the https address.
The store does not see the request as https
If the key is right and In the address fails too, WordPress thinks the request arrived over plain http. This happens behind a proxy or load balancer that does not tell WordPress the visitor used https. Ask your host to pass https through to WordPress, for example by forwarding the X-Forwarded-Proto header.
A firewall or security plugin blocks Infograph
If Cloudflare, your host's firewall or a security plugin such as Wordfence refuses the request before WordPress sees it, Infograph says a firewall refused it. Allow Infograph's sync servers, 51.222.152.247, to reach /wp-json on your site. In Cloudflare, add an IP Access rule with the action Allow for each address, or turn off Bot Fight Mode. Some security plugins also turn off or hide the REST API: allow it for these addresses.
The key's user cannot read orders
A key reads with its WordPress user's permissions. A key made for a Customer, or any user who cannot manage the shop, is refused when you connect. Create the key again with an Administrator or Shop manager as its User.
Subscriptions are not offered
Subscriptions comes from the WooCommerce Subscriptions extension. Infograph offers it only when the store's REST API lists the extension's subscriptions endpoint. Without the extension the table is not offered, and renewal orders still sync as ordinary orders. A security plugin that hides the REST API's list of endpoints hides it too, and refunds are then read order by order.
Customers holds only registered customers
A guest who checked out without an account is not in Customers. Their orders are in Orders with customer_id 0 and their email in the billing details. To count every buyer, count distinct billing emails in Orders.
Trashed and deleted records
An order or coupon trashed after it synced keeps its last row in Orders or Coupons, and also appears in Trashed orders or Trashed coupons, which leave out anything restored. To count only live ones, leave out the ids in the trashed tables. Trashed products stay in Products with status trash. Something deleted permanently, such as an emptied trash, a refund or a variation, is no longer listed by WooCommerce, so its last row stays in Infograph.
Syncs are slow, or pause
WooCommerce sets no limits, but many hosts do. Infograph reads one page of 100 records at a time, and when the host answers that it is busy, it waits and carries on, so the first load of a big store on shared hosting can take a while. If the limit lasts longer, the sync stops and the next one carries on.

Built with WooCommerce

Dashboards and guides built on WooCommerce data.