WooCommerce
Paste an API keyPull order data from your WordPress store into document flows.
What you can do
- Look up a WooCommerce order — full order JSON lands in {{sX.data.*}}
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
- 1Trigger: When a webhook arrives. WooCommerce sends Order created to the flow's URL.
- 2Look up a WooCommerce order, with Order ID {{trigger.body.id}}.
- 3Create an invoice PDF, using the order number, the billing name and the total from the lookup.
- 4Save to Google Drive, in your invoices folder.
- 5Add a row to Google Sheets, with the order number, {{s1.data.billing.email}} and {{s1.data.total}}.
- 6Result: Every order gets an invoice PDF in Drive and a line in your bookkeeping sheet.
Get your WooCommerce credentials
- 1In WP Admin go to WooCommerce → Settings → Advanced → REST API → Add key.
- 2Set Permissions to Read and generate.
- 3Copy the Consumer key (ck_…) and Consumer secret (cs_…).
Add the connection in ASHDOCS
- 1Open the Connections page in the flows console.
- 2Click “Connect with a key” and pick WooCommerce.
- 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
FAQ
WooCommerce → Settings → Advanced → Webhooks → add Order created pointing at your flow's webhook URL, then template {{trigger.body.id}}.
No — the step is read-only.
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.
Under data.billing, for example {{s1.data.billing.email}}. The rest of the order, such as its total, is under data as well.