openapi: "3.0.0" info: version: "1.0.0" title: CNPJ Office Information API license: name: Custom License servers: - url: https://api.cnpja.com/office paths: /{cnpj}: get: summary: Get office information by CNPJ operationId: getOfficeByCNPJ tags: - Office parameters: - name: cnpj in: path description: CNPJ of the office to retrieve information for required: true schema: type: string responses: '200': description: Expected response with office information content: application/json: schema: $ref: "#/components/schemas/OfficeInformation" default: description: Unexpected error content: application/json: schema: $ref: "#/components/schemas/Error" security: - ApiKeyAuth: [] components: schemas: OfficeInformation: type: object properties: cnpj: type: string corporateName: type: string tradeName: type: string registrationStatus: type: string # Include other fields as necessary Error: type: object required: - code - message properties: code: type: integer format: int32 message: type: string securitySchemes: ApiKeyAuth: type: apiKey in: header name: Authorization