• Resolved bhargav8766

    (@bhargav8766)


    Hello,
    I used WooCommerce Store API,
    I have subscription products for my customers, so when users don’t have any subscriptions or their subscription status is canceled then /wc/store/v1/cart/add-item it worked fine but if users attempt failed order then the subscription status is on-hold and their cart is empty,
    How can set Pay last order using Store API, I also try to use /wc/store/v1/cart/add-item API for add to cart and re-payment for this subscription but getting a response is
    {
    “code”: “woocommerce_rest_product_not_purchasable”,
    “message”: ” ‘My_Subscription_Product’ is not available for purchase.”,
    “data”: {
    “status”: 400
    }
    }
    And also when users want to upgrade the subscription product they also get the same as above response.

    • This topic was modified 1 year, 10 months ago by bhargav8766.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“woocommerce_rest_product_not_purchasable” in /wc/store/v1/cart/add-item API.’ is closed to new replies.