Skip to content

REST API /products list missing products that exist (GET by ID works) #276

@mfolonicw

Description

@mfolonicw

I’m fetching all products via GET /wp-json/wc/v3/products with pagination, but some product_ids present in orders do not appear in the list, even after iterating all pages.

Example:

GET https://site.com.br/wp-json/wc/v3/products?per_page=100&page=1&orderby=id&order=asc&status=any&include=42736 → returns empty.

GET https://site.com.br/wp-json/wc/v3/products/42736 → returns the product correctly.

Additionally, several items returned by /products in our store have "type": "variation".

Expected:

The /products list (including when using include=) should return all products that exist and are referenced in orders, including the example above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions