WooCommerce draft orders are temporary checkout records, not paid purchases. If they disappear from a REST order list, establish whether the record exists and its current status before changing the integration. Since WooCommerce 10.8, status=any excludes checkout-draft; a diagnostic consumer must request that status explicitly.
First Decide Whether There Is an Order to Find
The current order-status documentation explains that a fresh Checkout block session stores interaction state before the shopper attempts Place Order. Ordinary page visits and field edits do not necessarily create a draft. A retry may reuse an eligible pending or failed order.
On staging, record the order ID and status after opening checkout, after entering details and after a test submission. If the record has moved to Pending payment, an explicit draft query should not return it. Do not move a paid order back to Draft to manufacture a test fixture.
| What you observe |
What to inspect next |
| No ID before Place Order |
Session lifecycle, not missing REST rows. |
| Known ID is now Pending payment |
Query its actual status. |
| Known checkout-draft ID is absent from status=any |
Compare an explicit draft request. |
| Known draft absent from both requests |
Permissions, filters, pagination and the correct site. |
| Admin and API counts differ |
Compare IDs and identical time windows, not only totals. |
Compare Two Read-Only Requests
Use a read-only WooCommerce API key authorized for the test store. These examples ask curl to prompt for the secret when only the consumer key is supplied. Do not paste the secret into a URL, ticket or shared terminal transcript. Replace the example hostname and key variable with your approved test configuration.
curl -sS --fail --max-time 20 --user "$WC_CONSUMER_KEY" \
'https://store.example/wp-json/wc/v3/orders?status=any&per_page=100&page=1'
curl -sS --fail --max-time 20 --user "$WC_CONSUMER_KEY" \
'https://store.example/wp-json/wc/v3/orders?status=checkout-draft&per_page=100&page=1'
The 10.8 developer advisory documents this status-filter change. A successful empty response is different from a 401 or 403. Resolve authentication and authorization errors before interpreting an empty list as missing order data.
Keep credentials in your approved secret store for automated jobs. A diagnostic command is not a production credential-management design. Redact customer details from response samples.
Reconcile IDs, Pages and Time Windows
Record the expected fixture ID before running either request. Follow the endpoint's pagination and total-page response headers instead of assuming the first page contains every match. Apply the same date filters on both comparisons, accounting for the timestamp format and timezone expected by your integration.
If the order changes status between requests, rerun with a stable fixture or report the timing limitation. A lower count is not evidence of deletion when the comparison crossed a status transition. Test the same authentication role and HPOS configuration used by the failing consumer; do not switch storage modes merely to make a count match.
Keep Drafts Out of Business Events
Classify the caller before changing its status filter. A support tool may legitimately need drafts. Fulfillment, paid-sales reporting and advertising conversions usually need a narrower business event, not every temporary order record.
- Support diagnostic: request drafts intentionally and retain only the fields needed to investigate.
- Sales or fulfillment: preserve the accepted order and payment-state rules.
- Abandoned-checkout workflow: recognize that drafts do not represent every visitor who opened checkout.
- Cleanup job: follow the supported retention path rather than deleting records based on a mismatched count.
Use the stock reservation and cleanup guide when inventory is the symptom. Use the explicit-status privacy and retention guide before copying draft data into a CRM or warehouse. For advertising, check the draft-order purchase-attribution boundary.
Prove the Integration Change
Run a fixture with a known draft and a separate submitted order. The draft-specific diagnostic should find the draft when it still has that status; the sales feed must not count it as a purchase. Then complete the approved test checkout and verify the intended downstream event occurs once.
Retain the query parameters, timestamp, fixture IDs, statuses and redacted response evidence. If the explicit request still cannot find an established draft, have HandL WP inspect the order integration before adding broad permissions or changing every consumer to include drafts.
For related implementation work, see WooCommerce draft checkout cleanup and Checkout Blocks tracking. The goal is to recover the specific diagnostic view without turning temporary checkout state into revenue.
API comparison and checkout lifecycle reviewed October 21, 2026. Original publication date retained.