WoowUp Developer Docs
Woowup
  • Getting Started (EN)
  • Primeros Pasos (ES)
  • API
    • Users
    • Purchases
    • Products
    • Benefits
    • Coupons
    • Events
      • Garantía Extendida
    • Custom Attributes
    • Branches
    • Blacklist
    • Abandoned carts
    • Reset account
    • Integration Stats
    • Categories
    • Segment Export
  • Web Tracking
    • Configuración Navegación Web
  • Push Notifications
    • Configuración Notificaciones Web Push en Magento / Web Custom
    • Configuración Push en VTEX Legacy
    • Configuración Push en VTEX IO
    • ¿Cómo saber si la configuración fue exitosa?
  • Formularios Web
    • Formulario HTML / Script JS Newsletter
  • VTEX
    • Conectar Cuenta
    • Trigger Carrito Abandonado
    • Trigger Newsletter
    • VTEX APP Instalación
    • VTEX APP Configuración
  • Magento 1
    • Conectar Cuenta
    • Extension Carrito Abandonado
  • Magento 2
    • Conectar Cuenta
  • Shopify
    • Conectar Cuenta
  • Woocommerce
    • Conectar Cuenta
    • Extensión Carrito Abandonado
  • Prestashop
    • Conectar Cuenta
  • E3
    • Conecta tu eCommerce E3
  • Tienda Nube
    • Conectar Cuenta
  • Mensajería
    • SendGrid: Conectar Cuenta
    • Perfit: Conectar Cuenta
    • Infobip: Conectar Cuenta
  • Editor de campañas
    • Motor de template de emails
  • Data Processing
    • WoowUp Connectors
    • Migración a Multi - ID
  • How To
    • SurveyKiwi: Conectar Cuenta
      • Untitled
    • Snappy: Conectar Cuenta
    • Zendesk: Conectar Cuenta
  • Integración CSV / SQL
    • Primeros pasos
    • Archivo de Tiendas
    • Archivo de Categorías
    • Archivo de Productos
    • Archivo de Clientes
    • Archivo de Ventas
    • Archivo de Medios de Pago
    • Archivo de Miembros de Familia
  • Validación de Datos
  • ¿Cómo completar el Blueprint?
Powered by GitBook
On this page

Was this helpful?

  1. API

Reset account

How to delete every customer and every purchase from my WoowUp Account.

PreviousAbandoned cartsNextIntegration Stats

Last updated 5 years ago

Was this helpful?

Delete every customer

This will also delete all the purchases since every purchase is linked to an existing customer.

If you intend to delete only purchases, please follow

The endpoint to delete customers is /apiv3/multiusers/bulk. We need a segment_id and an email to notify after deletion is finished (your email for instance).

But what is the segment_id? It's a segment's identifier (genius!). A segment is basically a group of customers that match a specific set of rules (for example, customers that live in Buenos Aires and are younger than 45 years old).

We need a segment that includes every single customer in our account. By default your WoowUp Account includes a segment called 'All your clients' (or 'Todos los clientes', or 'Todos os clientes'). If you don't have it, with no filtering rules.

Now it's time to get the segment_id. Easy way, we select it in our Customers' page and checkout the URL

The URL in your browser will look like https://admin.woowup.com/administrator/contest/{{your_app_id}}/customers?id=XXXX

XXXX is the segment_id.

If you don't have access to WoowUp's panel but you have the account's API KEY, you can send a GET request to /apiv3/segments and you'll find it.

{
    "payload": [
        {
            "id": XXXX,
            "slug": "01-todos-los-clientes",
            "title": "01. Todos los clientes",
            "type": "1",
            "definition": "{\"include\":{\"condition\":\"AND\",\"rules\":[]},\"exclude\":{}}",
            "advanced": 0
        },
        {
            "id": YYYY,
            "slug": "02-clientes-con-1-compra",
    ...

Now, let's delete those customers. We call the endpoint /apiv3/multiusers/bulk with a DELETE request, specifying in the body the segment_id and the notify_to email:

{
	"segment_id": XXXX,
	"notify_to": "myemail@example.com"
}

The cURL code is the following:

curl -X DELETE \
  https://api.woowup.com/apiv3/multiusers/bulk \
  -H 'Accept: application/json' \
  -H 'Authorization: Basic your_accounts_apikey' \
  -H 'Content-Type: application/json' \
  -d '{
	"segment_id": XXXX,
	"notify_to": "myemail@example.com"
}'
these instructions.
create a segment