One of our customers requested that the saved payment information on their account be removed, and they do not want new payment info to be saved on their account. I understand that this information can only be removed via the API. I looked at the docs and have been trying to perform this action with CURL via command line. I am able to do a successful customer_get action, but I haven't been able to figure out from the docs the proper syntax for deleting the saved payment attributes. Here's what I've tried:
curl -d "api_token=MY_API_KEY&api_action=attribute_delete&type=customer&identifier=MY_CUSTOMER_ID&name=cc_number" https://secure.verdanttea.com/api
Returns: ERROR -- Attribute Not Found
curl -d "api_token=MY_API_KEY&api_action=customer_save&customer_id=MY_CUSTOMER_ID&save_cc=false" https://secure.verdanttea.com/api
Returns: SUCCESS -- Customer Updated ... BUT the cc_type, cc_number_masked, cc_exp_month, and cc_exp_year are still all returning saved data.
What am I doing wrong here?
As an aside, I wish there were a more straightforward way to perform this action. One other thing I want to mention is that at checkout (in ver. 2.0) it seems that the customer is only given the option of saving BOTH their payment info and their addresses. The message next to the checkbox reads "Save my address & payment info for next time." Is it really the case that customer address info can only be saved if payment info is also saved, or is this just a default in the language customizations? In the case of the customer I'm working with now, it would be preferable for them to have the option of saving ONLY their addresses and not their payment info. In previous FC versions it seemed that customers had the option of checking the box to save just their payment information specifically rather than both their payment and address information. Can you clarify this for me? I'd like to understand better so I can explain to the customer whether they need to use guest checkout every time, or if there's a way for them to save only their address information and not the payment information.
Thanks for your help!