Appearance
Bulk Customer Actions
Apply one action to many customers in a single request. Only delete is supported today.
POST /v1/customers/bulkRequest Body
json
{
"ids": ["cus_xxx", "cus_yyy"],
"action": "delete"
}| Field | Required | Type | Description |
|---|---|---|---|
ids | Yes | string[] | Customer IDs to act on |
action | Yes | string | Only 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
affectedcount)
