<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bulk delete customer profiles from CIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90786#M57067</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/68785"&gt;@zgoldberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for reaching out with your question regarding bulk deletion of customer profiles in CIM. Currently, there isn't an API method for bulk deleting customer profiles directly. Profiles can only be deleted one at a time using our existing API.&lt;/P&gt;&lt;P&gt;However, I would recommend signing up for &lt;A href="https://support.authorize.net/knowledgebase/article/000001022/en-us" target="_self"&gt;Account Updater (AU)&lt;/A&gt;, which can help manage expired profiles by updating or deleting them automatically.&lt;/P&gt;&lt;P&gt;For bulk deletion, a possible workaround involves developing a utility to handle this process using the existing API endpoint: &lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-delete-customer-profile" target="_self"&gt;Delete Customer Profile API&lt;/A&gt;. Although direct bulk deletion isn't supported, you can create a script to iterate through customer profiles and delete them one by one.&lt;/P&gt;&lt;P&gt;Here is a basic example of how you might achieve this using a script in Python:&lt;/P&gt;&lt;P&gt;```python&lt;BR /&gt;&lt;BR /&gt;import requests&lt;/P&gt;&lt;P&gt;api_login_id = 'your_api_login_id'&lt;BR /&gt;transaction_key = 'your_transaction_key'&lt;BR /&gt;customer_profile_ids = ['profile_id_1', 'profile_id_2', ...] # List of profile IDs to delete&lt;/P&gt;&lt;P&gt;def delete_customer_profile(profile_id):&lt;BR /&gt;url = '&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;'&lt;BR /&gt;headers = {'Content-Type': 'application/xml'}&lt;BR /&gt;body = f"""&lt;BR /&gt;&amp;lt;deleteCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;{api_login_id}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;transactionKey&amp;gt;{transaction_key}&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;customerProfileId&amp;gt;{profile_id}&amp;lt;/customerProfileId&amp;gt;&lt;BR /&gt;&amp;lt;/deleteCustomerProfileRequest&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;response = requests.post(url, headers=headers, data=body)&lt;BR /&gt;return response.status_code, response.text&lt;/P&gt;&lt;P&gt;for profile_id in customer_profile_ids:&lt;BR /&gt;status_code, response_text = delete_customer_profile(profile_id)&lt;BR /&gt;print(f"Deleted profile {profile_id}: Status Code: {status_code}, Response: {response_text}")&lt;BR /&gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;Please note that this example is for demonstration purposes. You'll need to handle errors, retries, and possibly rate limits depending on your specific requirements.&lt;/P&gt;&lt;P&gt;If you have any further questions or need more assistance, feel free to reach out.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Authorize.NET Developer Team&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 21:28:57 GMT</pubDate>
    <dc:creator>pamahesh</dc:creator>
    <dc:date>2024-11-20T21:28:57Z</dc:date>
    <item>
      <title>Bulk delete customer profiles from CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90778#M57063</link>
      <description>&lt;P&gt;Is there a method for bulk deleting customer profiles? As far as I can tell, we can only delete them one at a time. We have almost 20,000 profiles and are hoping to cull these down by removing profiles with expired payment profiles or no recent history of payment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 19:30:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90778#M57063</guid>
      <dc:creator>zgoldberg</dc:creator>
      <dc:date>2024-11-19T19:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk delete customer profiles from CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90786#M57067</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/68785"&gt;@zgoldberg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for reaching out with your question regarding bulk deletion of customer profiles in CIM. Currently, there isn't an API method for bulk deleting customer profiles directly. Profiles can only be deleted one at a time using our existing API.&lt;/P&gt;&lt;P&gt;However, I would recommend signing up for &lt;A href="https://support.authorize.net/knowledgebase/article/000001022/en-us" target="_self"&gt;Account Updater (AU)&lt;/A&gt;, which can help manage expired profiles by updating or deleting them automatically.&lt;/P&gt;&lt;P&gt;For bulk deletion, a possible workaround involves developing a utility to handle this process using the existing API endpoint: &lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-delete-customer-profile" target="_self"&gt;Delete Customer Profile API&lt;/A&gt;. Although direct bulk deletion isn't supported, you can create a script to iterate through customer profiles and delete them one by one.&lt;/P&gt;&lt;P&gt;Here is a basic example of how you might achieve this using a script in Python:&lt;/P&gt;&lt;P&gt;```python&lt;BR /&gt;&lt;BR /&gt;import requests&lt;/P&gt;&lt;P&gt;api_login_id = 'your_api_login_id'&lt;BR /&gt;transaction_key = 'your_transaction_key'&lt;BR /&gt;customer_profile_ids = ['profile_id_1', 'profile_id_2', ...] # List of profile IDs to delete&lt;/P&gt;&lt;P&gt;def delete_customer_profile(profile_id):&lt;BR /&gt;url = '&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;'&lt;BR /&gt;headers = {'Content-Type': 'application/xml'}&lt;BR /&gt;body = f"""&lt;BR /&gt;&amp;lt;deleteCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;{api_login_id}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;transactionKey&amp;gt;{transaction_key}&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;customerProfileId&amp;gt;{profile_id}&amp;lt;/customerProfileId&amp;gt;&lt;BR /&gt;&amp;lt;/deleteCustomerProfileRequest&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;response = requests.post(url, headers=headers, data=body)&lt;BR /&gt;return response.status_code, response.text&lt;/P&gt;&lt;P&gt;for profile_id in customer_profile_ids:&lt;BR /&gt;status_code, response_text = delete_customer_profile(profile_id)&lt;BR /&gt;print(f"Deleted profile {profile_id}: Status Code: {status_code}, Response: {response_text}")&lt;BR /&gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;Please note that this example is for demonstration purposes. You'll need to handle errors, retries, and possibly rate limits depending on your specific requirements.&lt;/P&gt;&lt;P&gt;If you have any further questions or need more assistance, feel free to reach out.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Authorize.NET Developer Team&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 21:28:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90786#M57067</guid>
      <dc:creator>pamahesh</dc:creator>
      <dc:date>2024-11-20T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk delete customer profiles from CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90826#M57102</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I totally understand how managing 20,000 customer profiles can be a huge task! Unfortunately, as you've noticed, most systems tend to delete profiles one at a time by default. However, some platforms do offer bulk delete features, though they might not be immediately obvious.&lt;/P&gt;&lt;P&gt;Here’s what I’d recommend:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Check for bulk actions in your system&lt;/STRONG&gt;: Some platforms allow you to filter profiles (by expiration, payment history, etc.) and perform batch actions like deleting. If this option exists, it might be under advanced search or bulk edit features.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;APIs or automation&lt;/STRONG&gt;: If your platform has an API, you might be able to automate this process by querying for profiles with expired payment info or no recent activity, and then deleting them in bulk using a script.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Contact support&lt;/STRONG&gt;: If you’re not sure, it might be worth reaching out to the platform’s support team. They might have a tool or solution for bulk deletion that’s not immediately obvious in the UI.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope this helps, and let me know if you need more info!&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2024 01:25:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Bulk-delete-customer-profiles-from-CIM/m-p/90826#M57102</guid>
      <dc:creator>chriswilson00</dc:creator>
      <dc:date>2024-11-24T01:25:49Z</dc:date>
    </item>
  </channel>
</rss>

