• David Leal

    (@davidvexel)


    Hey guys, I’ve been struggling with a Rest API question these days, haven’t found any solution right now.

    I have a custom product type on my site, and I’m trying to list all those product types with the API. Not luck so far, this is a extract of my product information:

    
    { id: 1034,
        name: 'TOUR Cancun',
        slug: 'tour-cancun',
        permalink: 'https://www.example.com/tours/tour-cancun/',
        date_created: '2016-09-04T20:48:52',
        date_modified: '2017-02-21T18:08:31',
        type: 'tour',
        status: 'publish',
        featured: false,
    ...
    

    And this is my endpoint:

    products?filter[tax_query][0][0]=product_type&filter[tax_query][0][1]=slug&filter[tax_query][0][2]=tour

    Any idea of how I can solve this?

    Thanks in advance.

  • The topic ‘How to get custom product type in WC REST-API?’ is closed to new replies.