Spree Admin SDK
Delete a customer
Deletes a customer. Returns 422 if the customer has any orders.
Required scope: write_customers (for API-key authentication).
DELETE
Spree Admin SDK
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
import { createAdminClient } from '@spree/admin-sdk'
const client = createAdminClient({
baseUrl: 'https://your-store.com',
secretKey: 'sk_xxx',
})
await client.customers.delete('cus_UkLWZg9DAJ')spree api delete /customers/{id}Deletes a customer. Returns 422 if the customer has any orders.
Required scope: write_customers (for API-key authentication).
import { createAdminClient } from '@spree/admin-sdk'
const client = createAdminClient({
baseUrl: 'https://your-store.com',
secretKey: 'sk_xxx',
})
await client.customers.delete('cus_UkLWZg9DAJ')spree api delete /customers/{id}Was this page helpful?
