• Resolved morphiaz

    (@morphiazz)


    I activated WooCommerce REST-API (not using webhooks) and im trying to get X-WP-Total and X-WP-TotalPages back.

    When I try to access the result with this: example.com/wp-json/wc/v2/taxes?consumer_key=ck_xxxxxxxxxxxxxxx&consumer_secret=cs_xxxxxxxxxxxxxxx X-WP-Total and X-WP-TotalPages always has this result:

    X-WP-Total: 10
    X-WP-TotalPages: 1

    It should be 6 TotalPages and 56 single results. This should be the correct result.

    I tried a lot of things, like disabling plugins to check if some are causing this, but I cant get it.

    What am I doing wrong? I should be able to get the correct results through normal REST-API without webhooks, right?!

    Anyone of you with some idea why this is happening?

    Thanks in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @morphiazz,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    There has been no activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution and the above resources for developers were helpful. Feel free to open a new topic if you have further questions.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘X-WP-Total and X-WP-TotalPages showing wrong results’ is closed to new replies.