Support » Plugin: WooCommerce » How to find and edit custom endpoints wordpress rest api

  • Resolved anul


    I’m using this WooCommerce Rest API to get orders for my mobile app.

    I use this API “wp-json/wc/v3/orders/473” to get a order.

    On response I got below objects:

    { id: 473, name: test}
    I can’t find where i have to change it on WooCommerce folder.

    How can I put this objects into an array?
    Like this: [{ id: 473, name: test}]

    • This topic was modified 4 months, 3 weeks ago by anul.
Viewing 1 replies (of 1 total)
  • Plugin Support Jesse Pearson


    Automattic Happiness Engineer

    @ermandhoxha The API is going to return objects as it is intended, once the objects are returned you would then manipulate the data as needed. Changing an API to your needs is goes against what an API is designed for.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.