# Spree Commerce documentation: v6.x API Reference Admin API Endpoints Customers > Spree Commerce is an open-source headless commerce platform. The backend runs as a Docker image (ghcr.io/spree/spree) and exposes REST Store and Admin APIs with OpenAPI specs, TypeScript SDKs (@spree/sdk, @spree/admin-sdk), webhooks and an MCP server with read and write tools, plus a React admin dashboard, a Next.js storefront, B2B and wholesale (companies, customer-specific catalogs and price lists) and a built-in multi-vendor marketplace. Start with `npx create-spree-app@latest my-store`: you need only Node.js, Git and Docker. ## Customers - [List customer custom fields](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-customer-custom-fields.md): Returns the customer's custom field values. - [Export a customer's personal data](https://spreecommerce.org/docs/api-reference/admin-api/customers/export-a-customers-personal-data.md): Returns everything the store holds about this customer, for answering a GDPR right-of-access request (Art. 15) that reached the merchant directly. - [Erase a customer's personal data](https://spreecommerce.org/docs/api-reference/admin-api/customers/erase-a-customers-personal-data.md): Carries out a GDPR right-to-erasure request (Art. 17). Personal data is replaced across the account, its addresses, the address snapshots on past orders, saved cards, connected identities and live sessions. - [List consent records](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-consent-records.md): Returns the consents customers gave or withdrew, newest first, as evidence of what each one agreed to and when. - [List data requests](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-data-requests.md): Returns the requests customers made to export or erase their personal data, newest first. - [Record a data request](https://spreecommerce.org/docs/api-reference/admin-api/customers/record-a-data-request.md): Records a request a customer made to the merchant directly, to export or erase their personal data, and starts answering it. A request of the same kind already in progress for the customer is returned instead of a second one. - [List customer addresses](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-customer-addresses.md): Returns the customer's saved addresses. - [Create a customer address](https://spreecommerce.org/docs/api-reference/admin-api/customers/create-a-customer-address.md): Adds a new address to the customer's address book. Pass `is_default_billing: true` or `is_default_shipping: true` to set as the default — the previous default loses its flag in the same transaction. - [Delete a customer address](https://spreecommerce.org/docs/api-reference/admin-api/customers/delete-a-customer-address.md): Deletes the address. If it was a default, the customer loses that default (no auto-promotion). - [Update a customer address](https://spreecommerce.org/docs/api-reference/admin-api/customers/update-a-customer-address.md): Updates a customer address. - [List customer credit cards](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-customer-credit-cards.md): Returns the customer's saved credit cards. Useful for off-session admin charges via `POST /admin/orders/:id/payments { source_id }`. - [Show a customer credit card](https://spreecommerce.org/docs/api-reference/admin-api/customers/show-a-customer-credit-card.md): Returns a saved credit card by ID. - [Delete a customer credit card](https://spreecommerce.org/docs/api-reference/admin-api/customers/delete-a-customer-credit-card.md): Deletes a saved credit card. - [List customer store credits](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-customer-store-credits.md): Returns store credits issued to the customer. - [Issue a store credit to a customer](https://spreecommerce.org/docs/api-reference/admin-api/customers/issue-a-store-credit-to-a-customer.md): `created_by` is set automatically from the authenticated admin. - [Delete a store credit](https://spreecommerce.org/docs/api-reference/admin-api/customers/delete-a-store-credit.md): Deletes an unused store credit (amount_used == 0). Returns 422 otherwise. - [Update a store credit](https://spreecommerce.org/docs/api-reference/admin-api/customers/update-a-store-credit.md): Update memo / amount. The amount can only be changed if `amount_used == 0`. - [List customer tax registrations](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-customer-tax-registrations.md): Returns the customer's own tax registrations, one per kind. - [Update a customer tax registration](https://spreecommerce.org/docs/api-reference/admin-api/customers/update-a-customer-tax-registration.md): Corrects a registration number. A changed number is checked again before it counts as verified. - [Re-check a customer tax registration](https://spreecommerce.org/docs/api-reference/admin-api/customers/re-check-a-customer-tax-registration.md): Asks the registry again. Manual because a registry answers only "valid now" — a number verified last year may have been deregistered since — and because a check that came back unavailable cannot otherwise be retried without editing the number. - [List customers](https://spreecommerce.org/docs/api-reference/admin-api/customers/list-customers.md): Returns a paginated list of customers. Supports Ransack search/filters. - [Create a customer](https://spreecommerce.org/docs/api-reference/admin-api/customers/create-a-customer.md): Creates a customer. No welcome email is sent automatically. - [Show a customer](https://spreecommerce.org/docs/api-reference/admin-api/customers/show-a-customer.md): Returns full customer details including computed order stats (orders_count, total_spent, last_order_completed_at). - [Delete a customer](https://spreecommerce.org/docs/api-reference/admin-api/customers/delete-a-customer.md): Deletes a customer. Returns 422 if the customer has any orders. - [Update a customer](https://spreecommerce.org/docs/api-reference/admin-api/customers/update-a-customer.md): Updates customer attributes. `tags` replaces the full set. - [Bulk-add customers to groups](https://spreecommerce.org/docs/api-reference/admin-api/customers/bulk-add-customers-to-groups.md): Attaches each customer in `ids` to every group in `customer_group_ids`. Idempotent — customers already in a group are skipped server-side. Groups from sibling stores are silently ignored. Returns counts of customers and groups that were processed (post store-scoping). - [Bulk-remove customers from groups](https://spreecommerce.org/docs/api-reference/admin-api/customers/bulk-remove-customers-from-groups.md): Detaches each customer in `ids` from every group in `customer_group_ids`. No-op for non-members. Groups from sibling stores are silently ignored. - [Bulk-add tags to customers](https://spreecommerce.org/docs/api-reference/admin-api/customers/bulk-add-tags-to-customers.md): Adds each tag name in `tags` to every customer in `ids`. Tags are upserted by name; re-adding an existing tag is a no-op. - [Bulk-remove tags from customers](https://spreecommerce.org/docs/api-reference/admin-api/customers/bulk-remove-tags-from-customers.md): Removes each tag name in `tags` from every customer in `ids`. No-op for customers that don't carry the tag. ## OpenAPI Specs - [admin](/docs/api-reference/admin.yaml)