• Resolved moonlightsoft

    (@moonlightsoft)


    Hi,
    is it possible to read the generated codes by WooCommerce REST API ?
    And, if possible, to set a coupon as used?
    We would like to read the codes while payment in our Point of Sale Software.
    If not, is it planned ?
    Best regards
    Markus

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi Markus

    thank you for your message!

    You may use WooCommerce API for them (they are available as other coupons):
    https://woocommerce.github.io/woocommerce-rest-api-docs/#coupons

    You may try to change the price to 0 (amount). The usage_limit is set to 1 (which is the lowest possible value, O is treated as infinite).

    The usage_count is currently READ-ONLY so you may use the above method.

    If you have further questions let me know.

    Best regards,

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi @moonlightsoft

    I presume that the previous steps were helpful (I mark the thread as resolved).

    Let me know if you have any further questions – I will reopen the ticket.

    Have a good day!

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘API Access’ is closed to new replies.