Purchase deletion is the process by which the activity associated with a purchase is deleted via the Connectif API from the Connectif database. This process means that the purchase ceases to affect the Store for all purposes, in addition to disappearing from the analytics.
1. Properties
1.1. What is included in purchase deletion
- Deleting a purchase will remove a purchase from the Connectif database, as well as the activity associated with it.
- This process recalculates the purchase data associated with the contact's purchases:
- It also recalculates the aggregated product data that is used in the "Fetch products" node to obtain the best-selling products.
- Purchase deletion recalculates the data associated with the CLV and, if bulk purchases are deleted, may result in the Store not reaching the minimum number of purchases to generate the CLV template:
- Purchase deletion may also affect the Store RFM.
- When a purchase is deleted, it also disappears from all Store analytics.
1.2. What is NOT included in purchase deletion
- Purchase deletion does not delete the contact who made the purchase.
- Purchase deletion does not reverse the contact's activity in a Workflow.
- This process does not remove the product from the catalog.
- The cart that was created and marked as "Purchased" will remain with that status, i.e. the status is not changed and an abandoned cart is not generated.
- The products related to the deleted purchase will also not be recalculated. If a product is purchased together with another product and the purchase is deleted, the "Automatically related" algorithm will not make any changes.
2. How it’s used in Connectif
Purchases are deleted via the Connectif API one by one, i.e. if you want to delete 1,000 purchases, you must make 1,000 requests to the API.
2.1. Deletion of purchases by Store ID
1. Access the Connectif API documentation.
2. In the left-hand menu, go to "Purchases > Delete purchase by purchase store identifier".
3. Create the Connectif API call with the parameters contained in this section.
2.2. Deletion of purchases by Connectif ID
1. Access the Connectif API documentation.
2. In the left-hand menu, go to "Purchases > Delete purchase by ID".
3. Create the Connectif API call with the parameters contained in this section.
Keep learning!
To make the most of your Connectif account, we recommend reading these articles next:
-
Events that use your Activities allowance, to better understand your account consumption.
- Imports via API, to automate bulk imports of contacts, products and vouchers using the Import API.
- Automatically related products, to understand how Connectif's automatic product matching mechanism works.
- “Fetch products” node, to learn about the use cases of this node that may be affected by the deletion of purchases.