openapi: 3.2.0 info: title: FIS® Accounting Data as a Service™ Financial Benchmarking… description: What's changed in our API version: v2 contact: {} servers: - url: https://api.railz.ai description: Main (production) API server tags: - name: FinancialBenchmarking paths: /financialBenchmarking: get: description: Gets financial benchmarks within the Railz cohort based on age of business, industry code and region. operationId: benchmarking parameters: - name: industryCode required: false in: query schema: example: '54' type: string - name: region required: false in: query schema: example: CA type: string - name: timeInBusiness required: false in: query schema: type: number enum: - 1 - 2 - 3 - 4 - 5 - 10 - 99 - name: offset required: false in: query schema: format: integer type: number - name: limit required: false in: query schema: format: integer example: 100 type: number - name: orderBy required: false in: query schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/FinancialBenchmarkingsResponseDto' '202': description: Data in pending state content: application/json: schema: $ref: '#/components/schemas/FinancialBenchmarkingsResponseDto' '204': description: No data available '400': description: Bad Request Error - Thrown if fields sent via query does not follow specifications content: application/json: schema: $ref: '#/components/schemas/Error400ResponseDto' '401': description: Unauthorized - Not logged in or log in expired content: application/json: schema: $ref: '#/components/schemas/Error401ResponseDto' '403': description: Forbidden - Not enough permission content: application/json: schema: $ref: '#/components/schemas/Error403ResponseDto' '500': description: Server Error content: application/json: schema: $ref: '#/components/schemas/Error500ResponseDto' security: - bearer: [] summary: Benchmarking tags: - FinancialBenchmarking x-summary-source: derived components: schemas: SummaryStatisticsData: type: object properties: min**: type: number format: float example: 301.5 max**: type: number format: float example: 22012.5 mean**: type: number format: float example: 6279.7 median**: type: number format: float example: 3739.89 sdev**: type: number format: float example: 21764.54 quantile5**: type: number format: float example: 301.5 quantile25**: type: number format: float example: 301.5 quantile75**: type: number format: float example: 6710.61 quantile95**: type: number format: float example: 7649.75 required: - min** - max** - mean** - median** - sdev** - quantile5** - quantile25** - quantile75** - quantile95** Error403ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error403Dto' payload: type: object readOnly: true example: {} required: - error - payload Error401Dto: type: object properties: statusCode: type: number readOnly: true example: 401 message: readOnly: true example: - Unauthorized type: array items: type: string error: type: string readOnly: true example: Unauthorized required: - statusCode - message - error Error500Dto: type: object properties: error: type: string readOnly: true example: Internal Server Error message: readOnly: true example: - INTERNAL_ERROR type: array items: type: string statusCode: type: number readOnly: true example: 500 required: - error - message - statusCode FinancialBenchmarkingsData: type: object properties: section: oneOf: - $ref: '#/components/schemas/SummaryStatisticsData' allOf: - $ref: '#/components/schemas/SummaryStatisticsData' subSection: oneOf: - $ref: '#/components/schemas/SummaryStatisticsData' allOf: - $ref: '#/components/schemas/SummaryStatisticsData' group: oneOf: - $ref: '#/components/schemas/SummaryStatisticsData' allOf: - $ref: '#/components/schemas/SummaryStatisticsData' subGroup: oneOf: - $ref: '#/components/schemas/SummaryStatisticsData' allOf: - $ref: '#/components/schemas/SummaryStatisticsData' ratios: oneOf: - $ref: '#/components/schemas/SummaryStatisticsData' allOf: - $ref: '#/components/schemas/SummaryStatisticsData' required: - section - subSection - group - subGroup - ratios Error400Dto: type: object properties: statusCode: type: number readOnly: true example: 400 message: readOnly: true example: - businessName cannot be null type: array items: type: string error: type: string readOnly: true example: Bad Request required: - statusCode - message - error Error403Dto: type: object properties: statusCode: type: number readOnly: true example: 403 message: readOnly: true example: - Forbidden resource type: array items: type: string error: type: string readOnly: true example: Forbidden required: - statusCode - message - error Error400ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error400Dto' payload: type: object readOnly: true required: - error - payload FinancialBenchmarkingsReportMetaData: type: object properties: industryCode: type: string example: '54' timeInBusiness: type: integer example: 5 region: type: string example: CA numberOfBusinesses: type: number example: 282 createdAt: type: string readOnly: true example: '2020-11-30T01:02:03Z' format: date-time required: - numberOfBusinesses - createdAt Error401ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error401Dto' payload: type: object readOnly: true example: {} required: - error - payload FinancialBenchmarkingsReport: type: object properties: meta: $ref: '#/components/schemas/FinancialBenchmarkingsReportMetaData' data: readOnly: true type: array items: $ref: '#/components/schemas/FinancialBenchmarkingsData' required: - meta - data FinancialBenchmarkingsResponseDto: type: object properties: count: type: number readOnly: true format: integer example: 1 reports: readOnly: true type: array items: $ref: '#/components/schemas/FinancialBenchmarkingsReport' required: - count - reports Error500ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error500Dto' payload: type: object readOnly: true required: - error - payload securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http