{"id":12280300,"date":"2019-12-30T16:07:27","date_gmt":"2019-12-30T16:07:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/subscription-action-for-api-call\/"},"modified":"2019-12-30T16:07:27","modified_gmt":"2019-12-30T16:07:27","slug":"subscription-action-for-api-call","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/subscription-action-for-api-call\/","title":{"rendered":"Subscription Action for API Call"},"content":{"rendered":"<p>Hey all,<\/p>\n<p>Just wondering what the most appropriate action to use when trying to post to an external API when a subscription is renewed.<\/p>\n<p>Should we use: wcs_renewal_order_created or woocommerce_subscription_renewal_payment_complete?<\/p>\n<p>From the docs (and based on the end user requirement), we should probably be using woocommerce_subscription_renewal_payment_complete as we only want to call the API function once the renewal subscription is paid for.<\/p>\n<p>Your help is greatly appreciated!<\/p>\n","protected":false},"template":"","class_list":["post-12280300","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12280300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12280300\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12280300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}