Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ssoper97470

    (@ssoper97470)

    Thanks, I have forwarded that on to the client.

    We did put in place a temporary work-around by passing the discounted price for items in the order which applies a generic discount. We are not attempting to apply any coupon codes, and we are also passing an identifier in the customer note to indicate that the order is coming from our call center for the client’s reporting purposes. That seems to be working in the meantime. I’m just noting that for anybody else viewing this thread for the same reasons.

    Thread Starter ssoper97470

    (@ssoper97470)

    To be more specific, to add a coupon code to an order we execute a PUT on the below endpoint with the below JSON payload:

    Endpoint:
    /wp-json/wc/v3/orders/<id>

    Payload:
    {“coupon_lines”:[{“code”:”[coupon code]”}]}

    The error we receive when the Advanced Coupons for WooCommerce plugin is enabled is:

    {
        "code": "internal_server_error",
        "message": "<p>There has been a critical error on this website.</p><p><a href=\"https://wordpress.org/support/article/faq-troubleshooting/\">Learn more about troubleshooting WordPress.</a></p>",
        "data": {
            "status": 500
        },
        "additional_errors": []
    }
Viewing 2 replies - 1 through 2 (of 2 total)