1. Home
  2. Ecommerce Rest Api
  3. WordPress WooCommerce
  4. Reports

Reports

Prerequisites

  • WooCommerce API Keys: You need Consumer Key and Consumer Secret.
  • Base URL: Replace https://yourstore.com with your actual WooCommerce store URL.
  • Authorization: Basic Auth with your Consumer Key and Consumer Secret.

Authorization Setup in Postman

  1. Go to the Authorization tab.
  2. Select Type: Basic Auth.
  3. Username: Enter your Consumer Key.
  4. Password: Enter your Consumer Secret.

Retrieve Reports

  • URL: https://yourstore.com/wp-json/wc/v3/reports
  • Method: GET
  • Headers:
    • Authorization: Basic Auth

Example in Postman:

  1. Set method to GET.
  2. Enter URL: https://yourstore.com/wp-json/wc/v3/reports
  3. Go to the Authorization tab and set Type to Basic Auth.
  4. Enter Consumer Key and Consumer Secret.
  5. Send the request.

Notes:

  • The /wp-json/wc/v3/reports endpoint is used to retrieve various reports available in WooCommerce.
  • You may receive different types of reports based on your WooCommerce store’s configuration and installed plugins.
  • The response format will depend on the specific report requested and can include data such as sales, orders, products, customers, etc.

By following these instructions, you can test the WooCommerce Reports endpoint in Postman. Make sure to configure the Authorization header with Basic Auth using your Consumer Key and Consumer Secret. Adjust the base URL and endpoint as needed based on your WooCommerce store setup and the specific reports you want to retrieve.

How can we help?