---
updatedAt: 2026-09-24T10:15:18.000Z
agentTools:
  projectIndex: https://docs.taginfraestrutura.com.br/llms.txt
---

# Consulta por DocumentNumber

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "tag-infraestrutura-portal-do-desenvolvedor-100",
    "version": "1.2.19"
  },
  "servers": [
    {
      "url": "https://integration.nonprod.taginfraestrutura.com.br"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/customer/commercialEstablishment/{documentNumber}": {
      "get": {
        "summary": "Consulta por DocumentNumber",
        "description": "",
        "operationId": "consulta-ec-por-documentnumber",
        "parameters": [
          {
            "name": "documentNumber",
            "in": "path",
            "description": "Documento Federal (CPF ou CNPJ)",
            "schema": {
              "type": "string",
              "default": "88888888888888"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "\"commercialEstablishments\": [\n    {\n        \"key\": \"fed694f6-0a75-421e-bf60-a85b465ac913\",\n        \"documentType\": \"CNPJ\",\n        \"documentNumber\": \"32417056000132\",\n        \"paymentSchemes\": [\n                \"MCC\",\n                \"VCC\"\n        ],\n        \"bankAccount\": {\n            \"uniqueId\": \"de4cf7c1-26e2-4f83-af7f-e54df6f84e29\",\n            \"branch\": \"3232\",\n            \"account\": \"3232\",\n            \"accountDigit\": \"X3\",\n            \"accountType\": \"CC\",\n            \"ispb\": \"12345678\",\n            \"documentType\": \"CNPJ\",\n            \"documentNumber\": \"32417056000132\",\n            \"createdAt\": \"2022-04-27T18:09:27.587Z\",\n            \"updatedAt\": \"2022-04-27T18:09:27.587Z\"\n        },\n        \"enabled\": true\n    }\n],\n\"processKey\": \"c0f2c6b7-25fe-4611-b790-3284241333b7\",\n\"createdAt\": \"2022-05-04T10:27:27.351Z\""
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\":[\n      \"reason:Parameter value is invalid. []\"\n  ],\n  \"processKey\":\"a35a64-944e-4c17-bafd-996a4a5e6b6d\",\n  \"createdAt\":\"2020-03-27T11:06:17.446Z\"\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "reason:Parameter value is invalid. []"
                      }
                    },
                    "processKey": {
                      "type": "string",
                      "example": "a35a64-944e-4c17-bafd-996a4a5e6b6d"
                    },
                    "createdAt": {
                      "type": "string",
                      "example": "2020-03-27T11:06:17.446Z"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\":[\n      \"reason:No data found\"\n  ],\n  \"processKey\":\"a35a64-944e-4c17-bafd-996a4a5e6b6d\",\n  \"createdAt\":\"2020-03-27T11:06:17.446Z\"\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "reason:No data found"
                      }
                    },
                    "processKey": {
                      "type": "string",
                      "example": "a35a64-944e-4c17-bafd-996a4a5e6b6d"
                    },
                    "createdAt": {
                      "type": "string",
                      "example": "2020-03-27T11:06:17.446Z"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "csharp",
              "code": "var client = new HttpClient();\n\nvar contentString = new StringContent(\n  string.Empty, \n  Encoding.UTF8, \n  \"application/json\"\n);\n\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://integration.nonprod.taginfraestrutura.com.br/customer/commercialEstablishment/{documentNumber}\"),\n    Content = contentString\n};\n\nvar response = await client.SendAsync(request);"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```