Inquiry about API Endpoint for Cost of Goods for WooCommerce Pro

Forums Cost of Goods for WooCommerce Inquiry about API Endpoint for Cost of Goods for WooCommerce Pro

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #110396
    Moshtafizur
    Participant

    Hi Rafal,

    Thank you for reaching out to us. We appreciate your interest in using the Cost of Goods for WooCommerce Pro plugin and your inquiry about retrieving data via the WooCommerce API.

    I have escalated it to our development team. They will get back to you as soon as possible if there is any available API endpoint that can retrieve the “profit total” and “cost total” data.

    Thank you for your patience and understanding.

    Kind regards,
    Moshtafizur

    #110779
    Pablo
    Moderator
    Plugin Support

    Hi Rafal,

    Sorry for the long delay.

    You can get it by using the WooCommerce REST API.

    Example: http://site.com/wp-json/wc/v3/orders.

    And then you can access the alg_wc_cog_order_profit and _alg_wc_cog_order_cost keys by checking the meta_data node.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.