# at.happyproto.admin.removeCustomer

> Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.admin.removeCustomer)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.admin.removeCustomer/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.admin.removeCustomer/examples)

## Definitions

### `at.happyproto.admin.removeCustomer`

**Type**: `procedure`

Stop an account being a customer: remove it from the customers space. Removing a non-member succeeds. Staff only.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **AuthRequired**: This endpoint requires an authenticated caller.
- **Forbidden**: The caller is not HappyProto staff, or may not change the customers space's members: only its creator or a HappyView super user may.
- **InvalidRequest**: did is not a DID.
- **Upstream**: The customers space is not configured, or could not be changed.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Stop an account being a customer: remove it from the customers space. Removing a non-member succeeds. Staff only.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not HappyProto staff, or may not change the customers space's members: only its creator or a HappyView super user may.",
          "name": "Forbidden"
        },
        {
          "description": "did is not a DID.",
          "name": "InvalidRequest"
        },
        {
          "description": "The customers space is not configured, or could not be changed.",
          "name": "Upstream"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "at.happyproto.admin.removeCustomer",
  "lexicon": 1
}
```
