openapi: 3.0.1 info: title: Athena API V4 version: v4 servers: - url: https://api-uat.onesourcetax.com/trusts/v1/chart-of-accounts - url: https://api-emea.onesourcetax.com/trusts/v1/chart-of-accounts - url: https://api-apac.onesourcetax.com/trusts/v1/chart-of-accounts paths: /: get: tags: - ChartOfAccounts summary: This endpoint is used to retrive charts of accounts from the system. operationId: ChartOfAccounts_GetChartOfAccounts parameters: - name: Authorization in: header description: The authorization token required: true schema: type: string responses: 200: description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' text/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' application/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' text/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' post: tags: - ChartOfAccounts summary: This endpoint is used to create a charts of account. operationId: ChartOfAccounts_AddChartOfAccount parameters: - name: Authorization in: header description: The authorization token required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsCreateRequest' text/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsCreateRequest' application/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsCreateRequest' text/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsCreateRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsCreateRequest' required: true responses: 200: description: OK content: application/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' text/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' application/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' text/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse' 400: description: BadRequest content: application/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Common.Errors' text/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Common.Errors' application/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Common.Errors' text/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Common.Errors' x-codegen-request-body-name: chartOfAccountsCreateRequest /{id}: put: tags: - ChartOfAccounts summary: This endpoint is used to add entries to a chart of account. operationId: ChartOfAccounts_ImportChartOfAccount parameters: - name: id in: path required: true schema: type: string format: uuid - name: Authorization in: header description: The authorization token required: true schema: type: string requestBody: content: application/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsPutRequest' text/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsPutRequest' application/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsPutRequest' text/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsPutRequest' application/x-www-form-urlencoded: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsPutRequest' required: true responses: 200: description: OK content: {} x-codegen-request-body-name: putRequest components: schemas: TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsReponse: type: object properties: id: type: string description: Name of chart of account format: uuid example: 00000000-0000-0000-0000-000000000000 name: type: string description: Name of chart of account year: type: integer description: Year of chart of account format: int32 description: Chart Of Accounts TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsCreateRequest: type: object properties: name: type: string description: Name of chart of account year: type: integer description: Year of chart of account format: int32 description: Chart Of Accounts TRTA.Athena.Models.Api.V4.Common.Errors: type: object properties: id: type: integer description: Error id format: int32 description: type: string description: Error message TRTA.Athena.Models.Api.V4.ChartOfAccounts.ChartOfAccountsPutRequest: type: object properties: accountCode: type: string description: Number description: type: string description: Description description: Chart Of Accounts