---
updatedAt: 2026-07-30T20:44:57.000Z
agentTools:
  projectIndex: https://nibo.readme.io/llms.txt
---

# Buscar centro de custo por ID

Permite buscar informações de um centro de custo específico, utilizando o ID do centro de custo.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-empresa",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.nibo.com.br/empresas"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "apitoken",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/costcenters/{costCenterId}": {
      "get": {
        "summary": "Buscar centro de custo por ID",
        "description": "Permite buscar informações de um centro de custo específico, utilizando o ID do centro de custo.",
        "operationId": "buscar-centro-de-custo-por-id",
        "parameters": [
          {
            "name": "costCenterId",
            "in": "path",
            "description": "Identificador do centro de custo",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"costCenterId\": \"string\",\n    \"description\": \"string\",\n    \"updateDate\": \"string\",\n    \"updateUser\": \"string\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "costCenterId": {
                      "type": "string",
                      "example": "string"
                    },
                    "description": {
                      "type": "string",
                      "example": "string"
                    },
                    "updateDate": {
                      "type": "string",
                      "example": "string"
                    },
                    "updateUser": {
                      "type": "string",
                      "example": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"string\",\n  \"error_description\": \"string\",\n  \"exception\": {\n    \"ClassName\": \"string\",\n    \"Message\": \"string\",\n    \"Data\": null,\n    \"InnerException\": null,\n    \"HelpURL\": null,\n    \"StackTraceString\": \"string\",\n    \"RemoteStackTraceString\": null,\n    \"RemoteStackIndex\": 0,\n    \"ExceptionMethod\": \"string\",\n    \"HResult\": 0,\n    \n    \"WatsonBuckets\": null\n  }\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "string"
                    },
                    "error_description": {
                      "type": "string",
                      "example": "string"
                    },
                    "exception": {
                      "type": "object",
                      "properties": {
                        "ClassName": {
                          "type": "string",
                          "example": "string"
                        },
                        "Message": {
                          "type": "string",
                          "example": "string"
                        },
                        "Data": {},
                        "InnerException": {},
                        "HelpURL": {},
                        "StackTraceString": {
                          "type": "string",
                          "example": "string"
                        },
                        "RemoteStackTraceString": {},
                        "RemoteStackIndex": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "ExceptionMethod": {
                          "type": "string",
                          "example": "string"
                        },
                        "HResult": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "WatsonBuckets": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```