Skip to content

Bulk Customer Actions

Apply one action to many customers in a single request. Only delete is supported today.

POST /v1/customers/bulk

Request Body

json
{
  "ids": ["cus_xxx", "cus_yyy"],
  "action": "delete"
}
FieldRequiredTypeDescription
idsYesstring[]Customer IDs to act on
actionYesstringOnly delete is supported

Response

json
{
  "data": {
    "success": true,
    "affected": 2
  }
}

Example

bash
curl -X POST "https://api.packedge.dev/v1/customers/bulk" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["cus_xxx", "cus_yyy"],
    "action": "delete"
  }'

Notes

  • Deletion is a hard delete and cannot be undone
  • IDs that don't belong to your account are silently skipped (reflected in the affected count)