Magento REST icon

Magento REST

Consume Magento REST API

Customer → Delete

AI-generated

Summary

Deletes a customer from Magento by ID.

Inputs

  • customerId (required) — Customer ID
  • websiteCode — Store view code for multi-store Magento instances (used in URL like /rest/{code}/V1/...). Options are loaded from your Magento store, but you can enter any custom store view code.
  • simplifyOutput — When enabled, flattens the response structure. Converts custom_attributes array to an object, flattens extension_attributes, and simplifies nested structures.

Output shape

json

The Magento API response, optionally simplified per the simplifyOutput setting.

Examples

Example 1: Delete customer ID 42 with default URL

customerId=42, websiteCode=''

Links

Discussion