WooCommerce

Paste an API key

Pull order data from your WordPress store into document flows.

What you can do

What can you do with WooCommerce and ASHDOCS?

For a WordPress store, the Look up a WooCommerce order step reads an order through the WooCommerce REST API with a read-only key and passes the whole order along. Billing details, line items and totals are all there for an invoice, a delivery note or a row in a sheet.

Example flow

  1. 1Trigger: When a webhook arrives. WooCommerce sends Order created to the flow's URL.
  2. 2Look up a WooCommerce order, with Order ID {{trigger.body.id}}.
  3. 3Create an invoice PDF, using the order number, the billing name and the total from the lookup.
  4. 4Save to Google Drive, in your invoices folder.
  5. 5Add a row to Google Sheets, with the order number, {{s1.data.billing.email}} and {{s1.data.total}}.
  6. 6Result: Every order gets an invoice PDF in Drive and a line in your bookkeeping sheet.

Get your WooCommerce credentials

  1. 1In WP Admin go to WooCommerce → Settings → Advanced → REST API → Add key.
  2. 2Set Permissions to Read and generate.
  3. 3Copy the Consumer key (ck_…) and Consumer secret (cs_…).

Add the connection in ASHDOCS

  1. 1Open the Connections page in the flows console.
  2. 2Click “Connect with a key” and pick WooCommerce.
  3. 3Paste: Site URL, Consumer key, Consumer secret. ASHDOCS validates the credentials against WooCommerce before saving — a bad key is rejected with a plain-English reason, never stored.

Use it in a flow

In the flow builder, add the WooCommerce step, pick your connection, and fill the fields — values from earlier steps drop in as {{s1.field}} placeholders. Then hit Test this step in the step's panel to run it on its own before switching the flow on.

Troubleshooting

401 “cannot list resources”
The key's permission is set below Read, or your site blocks REST auth over query strings — ASHDOCS uses basic auth, ensure HTTPS.
404 on lookups
Check the Site URL has no trailing path and the order ID is the numeric WooCommerce ID.

FAQ

How do I trigger on new orders?

WooCommerce → Settings → Advanced → Webhooks → add Order created pointing at your flow's webhook URL, then template {{trigger.body.id}}.

Is anything written to my store?

No — the step is read-only.

Why would every order lookup fail with a 404?

Usually the WordPress REST routes aren't reachable. Set your WordPress permalinks to Post name, and check that the Site URL on the connection has no extra path.

Where are the billing details in the lookup's output?

Under data.billing, for example {{s1.data.billing.email}}. The rest of the order, such as its total, is under data as well.

Connect WooCommerce →All 28 integrations