• Resolved khilliard1952

    (@khilliard1952)


    When a subscription is first purchased woocommerce makes a “New Order” webhook call. I will use this webhook to provision the customer, storing the customer details in our database. For each subscription renewal woocommerce also makes a “New Order” webhook call. I want to flag these later webhook calls as “renewals” of the original subscription purchase and not new subscriptions. It looks like the “cart_hash” webhook parameter stays constant in all webhook calls for a given subscription (along with the customer/CC details, of course). I want to use the “cart_hash” as a kind of “subscription id”, a way to associate a “New Order” webhook call with an existing subscription. Is this a correct interpretation?

    Note: Our customer can purchase multiple subscriptions, at different times, so we cannot use the customer name, email, etc. to associate a webhook to a given subscription.

Viewing 1 replies (of 1 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    I’m not familiar enough with Subscriptions to advise on how to tell the difference between a new order and a renewal order via the webhook, but I would definitely imagine there is a meta of some sort to define a renewal.

    I would recommend contacting WooCommerce.com marketplace support if you’ve purchased Subscriptions from there.

Viewing 1 replies (of 1 total)
  • The topic ‘Using New Order Webhook for Subscriptions’ is closed to new replies.