chatmated
EN
Try it
WooCommerce

WooCommerce connection: what the shop's interface gives out to the owner

You can set up the WooCommerce connection yourself in the Chatmated app on the Connections page: at present it reads the sales summary (yesterday's total and number of orders) and shows paid orders waiting to be fulfilled as rows (number, amount, how many days it has waited). Reading orders, stock and refunds is something we build to order on top of the shop's own REST API. The interface gives out orders with their status and date of payment, products with stock, customers, refunds and sales reports. For reading, a key that has only the Read permission is enough.

Connect it yourself

You can set up this connection yourself in the Chatmated app. What the ready connection reads today is written at the top of the page. Below is everything the program's API allows: the rest we build on request.

Connect WooCommerceThe account takes a minute. Three days are free and no card is asked for.

What the connection reads

  • Orders: status, date of payment, payment method, total, lines, shipping method and customer note
  • Products: product code, price, stock quantity and stock status
  • Refunds on an order: amount and reason
  • Sales report for a period: sales, number of orders, number of refunded orders

What it does when you confirm

  • Can be built so that paid but unfulfilled orders reach the morning view
  • Can be built so that changing an order's status waits for your confirmation and needs a separate key with write permission for it

What it does not do

  • Does not ask for your WordPress password: the connection works with a key pair that you can revoke in the shop settings
  • Does not change anything in the shop with a key with Read permission, because the shop itself does not let it
  • Does not make parcel labels: these come from the carrier's plugin or the carrier's system

What we need from you. The key pair Consumer Key and Consumer Secret. The shop administrator creates it from the menu WooCommerce > Settings > Advanced > REST API and chooses Read as the permission. The Consumer Secret is shown only once.

Which orders are paid but not yet shipped?How much was sold in the shop yesterday?Which products are out of stock?How many orders are waiting for payment?

What the WooCommerce interface gives out

The WooCommerce REST API is part of the shop itself. The documentation lists more than twenty topics, and five of them matter for an owner's questions.

Topic What can be read from it
Orders status, date of payment, payment method name, transaction ID, total, tax total, product lines, shipping lines, customer note
Products product code (SKU), price, stock quantity, stock status, quantity sold
Customers name, e-mail, billing and shipping address
Refunds amount and reason on each order
Reports sales report, top-selling products, number of orders by status

An order has eight possible statuses: pending, processing, on-hold, completed, cancelled, refunded, failed and trash. The list can be requested by status, date range, customer or product. By default ten records come in an answer at a time, the rest have to be requested page by page. The shop gives the total number of records in the header of the answer.

About stock a product gives three things: whether stock management is switched on for that product, how many items are in stock and what the status is. The status is one of three: instock, outofstock or onbackorder. Products can also be requested by status, so the question which goods are running out can be answered from the shop's side. If stock management is not on for a product, there is no quantity and the connection cannot make one up.

The payment is in the shop, the parcel label is with the carrier

This is the place where the owner's expectation and the content of the interface most often part ways.

On the payment side WooCommerce knows a good deal. An order has the field date_paid, the date of payment, the payment method name and the transaction ID given by the payment provider. When an order is marked as paid, it moves to the status processing and the shop reduces the stock quantity.

On the shipping side WooCommerce knows less. According to the documentation, an order's shipping line has the shipping method name, the shipping method ID, the price and the tax. There is no tracking number or parcel label among these fields. The label is made and the tracking number is kept by the carrier's plugin or the carrier's own system.

So from the shop alone it can be said that an order is paid and waiting in the status processing. Whether the parcel has really been handed over can be said when the carrier is connected too, for example Omniva. How the two fit together is on the page paid but unshipped orders.

A key with read permission from the owner's view

The key is created in the shop admin from the menu WooCommerce > Settings > Advanced > REST API. There you give the key a description, choose the WordPress user the key is tied to, and choose the permission. There are three permissions.

Permission What can be done with the key
Read read the shop's data
Write create and change data
Read/Write both

For you, a key with Read permission means that the limit is in the shop, not in a promise. Even if there were a fault in the connection, an order cannot be cancelled, a price changed or a customer deleted with this key, because the shop rejects such a request. All the questions at the top of this page can be answered with a Read key.

After creation the shop shows two values: the Consumer Key and the Consumer Secret. The Secret is shown only once, so copy it at once. If you want to end the connection, you revoke the key in the same view with the Revoke Key link.

Write permission is needed only when you want the app to change something in the shop, for example to mark an order as completed. It is sensible to create a separate key for that. Every such change waits for your confirmation first.

What depends on the shop's hosting

WooCommerce is not a cloud service. The shop runs on your server or with a hosting provider, and the interface is exactly as reachable as that server allows. The documentation names four things.

  1. Versions. The current interface requires at least WooCommerce 3.5 and WordPress 4.4.
  2. Permalinks. In the WordPress settings Settings > Permalinks, some format other than Plain must be chosen. The interface does not work with default permalinks.
  3. HTTPS. Over HTTPS signing in is simple: the key pair goes along with the request. Over plain HTTP WooCommerce requires the more complex OAuth 1.0a signing, so that the key cannot be read off the line. A shop that has a valid certificate is ready to be connected.
  4. Server configuration. Some servers do not pass the sign-in header on to WordPress. In that case the key pair can be sent as part of the request address. The ModSecurity security module may answer a request with error 501.

Before building the connection we make one test request. If it does not succeed, the reason is almost always one of these four and the fix is in the hands of the hosting provider or the shop's developer, not in WooCommerce itself.

Webhooks: the shop gives notice itself

The interface does not have to be polled all the time. WooCommerce can give notice of a change itself. A webhook is created from the menu WooCommerce > Settings > Advanced > Webhooks and it can be tied to the creation, change and deletion of an order, product, customer or coupon.

Three things worth knowing about a webhook:

  • Every message is signed. The signature is an HMAC-SHA256 hash calculated from the content of the message, so the receiver can check that the message came from your shop.
  • Messages are sent in the background by default, through WordPress scheduled jobs.
  • After five failed deliveries in a row the shop switches the webhook off. The status is then Disabled and no new messages come until the hook is switched on again.

Because of the last point, a connection must not rely on webhooks alone. A proper connection also asks for the order list itself from time to time, so that a switched-off hook does not go unnoticed. The delivery log is in the shop under the menu WooCommerce > Status > Logs.

Questions

Do I need a developer to create the key?

No. The key is created in the shop admin with a few clicks. A developer is needed when the server does not let requests through, for example when permalinks are in the wrong format or a security module blocks the request.

By which time are the order dates given?

WooCommerce gives the order's date of payment and date of completion in the shop's own time zone. If the shop is set to a different time zone from your office, the boundary of yesterday shifts too.

Does the old WooCommerce interface still work?

According to WooCommerce's documentation, the old or Legacy REST API has been removed from the shop's core and works only with a separate plugin. A new connection is built on top of the current interface.

Sources

  1. WooCommerce REST API Documentation · read 12 November 2026
  2. WooCommerce REST API docs, source: Orders · read 12 November 2026
  3. WooCommerce REST API docs, source: Products · read 12 November 2026
  4. WooCommerce REST API docs, source: Customers · read 12 November 2026
  5. WooCommerce REST API docs, source: Reports · read 12 November 2026
  6. WooCommerce REST API docs, source: Webhooks · read 12 November 2026
  7. WooCommerce documentation: REST API · read 12 November 2026
  8. WooCommerce documentation: Webhooks · read 12 November 2026

Same group: online shop and till