How to remove access to an user from a product using API

API reference: https://developers.productdyno.com/c/members-api-383109

Use the ‘ Get Member’ API to get the member's active ‘payment_gateway_ids.’ After getting the response call the ‘Update Member’ API but exclude the Payment Gateway ID for which the member has refunded.

If you want to revoke specific product access from the Collection member, you can use the ‘Update Member’ API method and pass only those ‘payment_gateway_ids’ to which the member should have access. This way, the member will only have access to products associated with the given ‘payment_gateway_ids.’ And access will be removed for any products for which the ‘payment_gateway_ids’ is not specified

This way, the member’s other Payment Gateways access will remain the same and only remove the Payment Gateway access for the order that has been refunded.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.