---
agentTools:
  projectIndex: https://docs.o21.io/llms.txt
---

# Remove an account

Unassign an account of merchant shop

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "O21Pay API Reference",
    "summary": "O21Pay API Reference",
    "description": "O21Pay API Reference",
    "version": "1.0.0"
  },
  "paths": {
    "/merchants/{id_merchant}/accounts/remove/{id_account}": {
      "delete": {
        "tags": [
          "Link Account"
        ],
        "summary": "Remove an account",
        "description": "Unassign an account of merchant shop",
        "parameters": [
          {
            "name": "clientid",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "secret",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id_merchant",
            "in": "path",
            "description": "Merchant ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id_account",
            "in": "path",
            "description": "Account ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "boolean",
                      "description": ""
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Check the parameters or the syntax"
          },
          "401": {
            "description": "Unauthorized Couldn’t authenticate the request"
          },
          "404": {
            "description": "Merchant Not Found"
          }
        }
      }
    }
  },
  "security": [],
  "servers": [
    {
      "url": "https://o21c.obvious21.com/api/v1",
      "description": ""
    },
    {
      "url": "https://sandbox-o21c.obvious21.com/api/v1",
      "description": ""
    }
  ],
  "tags": [
    {
      "name": "Link Account",
      "description": "Accounts link to merchant"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 26,
      "2": 207,
      "3": 68,
      "4": 10,
      "5": 95,
      "6": 186,
      "7": 0,
      "8": 31,
      "9": 209,
      "10": 87,
      "11": 132
    }
  }
}
```