Order section with all orders form single vendor

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 3 reply threads
  • Author
    Posts
    • #61380
      Altin
      Guest

      https://docs.wclovers.com/wcfm-app/

      5.2.Orders #

      Order section will show all orders for their products and most important details.
      They also know what will be their commission for the order.

      Is that any API that I can use in order to get this result, because this one GET <site_base_url>/wp-json/wcfmmp/v1/orders/
      This API helps you to view all the orders and need a lot of parsing in order to get the response, and for sure, for a lot of data it’s not
      a solution.

    • #61730
      WCFM Forum
      Member

      HI,

      GET /wp-json/wcfmmp/v1/orders/

      – This returns all vendor orders. What additional data you are looking for.

      Thank You

    • #62038
      Altin
      Guest

      I was looking for a solution in order to get only the orders corresponding to one specific vendor, maybe passing the id of the user? Because returning only all orders by all vendors will need a log of parsing, and when the website will have more users and vendors will take longer and longer to find the orders only for one vendor

    • #62452

      Hello,
      As I understand you are looking to get orders of specific vendor. For that you need to make the api request with the access token or credentials of the specific vendor. Our app works in that way. When the vendor logs in the app and make the api request for the orders with his access token only the orders specific to the vendor is being fetched.
      And on the other hand if you are fetching the orders with admin credentials all the orders of all the vendors are being fetched.
      Let me know if you need further details. We can provide you an example if you want.

      Thank you.

Viewing 3 reply threads
  • The topic ‘Order section with all orders form single vendor’ is closed to new replies.