openapi: 3.0.1 info: title: Athena API V4 version: v4 servers: - url: https://api-uat.onesourcetax.com/trusts/v1/tax-account-mappings - url: https://api-emea.onesourcetax.com/trusts/v1/tax-account-mappings - url: https://api-apac.onesourcetax.com/trusts/v1/tax-account-mappings paths: /: get: tags: - Mappings summary: This endpoint is used to retrive all mappings from the system.. operationId: Mappings_Get 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.Mappings.Mapping' text/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' application/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' text/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' post: tags: - Mappings summary: This endpoint is used to create a mapping. operationId: Mappings_Create 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.Mappings.MappingCreateRequest' text/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingCreateRequest' application/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingCreateRequest' text/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingCreateRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingCreateRequest' required: true responses: 200: description: OK content: application/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' text/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' application/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' text/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.Mapping' 400: description: BadRequest content: application/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.Errors' text/json: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.Errors' application/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.Errors' text/xml: schema: type: array items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.Errors' x-codegen-request-body-name: mapping /{id}: put: tags: - Mappings summary: This endpoint is used to add entries to a mapping. operationId: Mappings_Put 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: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingPutRequest' text/json: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingPutRequest' application/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingPutRequest' text/xml: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingPutRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MappingPutRequest' required: true responses: 200: description: OK content: {} x-codegen-request-body-name: mappingPutRequest components: schemas: TRTA.Athena.Models.Api.V4.Mappings.Mapping: type: object properties: id: type: string description: Name format: uuid example: 00000000-0000-0000-0000-000000000000 name: type: string description: Name year: type: integer description: Year of chart of account format: int32 mapType: type: string description: Type of map datasetId: type: string description: Dataset id format: uuid example: 00000000-0000-0000-0000-000000000000 chartOfAccountId: type: string description: Chart of account id format: uuid example: 00000000-0000-0000-0000-000000000000 importType: type: string description: Import type templateId: type: string description: Template id format: uuid example: 00000000-0000-0000-0000-000000000000 description: Mapping TRTA.Athena.Models.Api.V4.Mappings.MappingCreateRequest: type: object properties: name: type: string description: Name year: type: integer description: Year of chart of account format: int32 mapType: type: string description: Type of map datasetId: type: string description: Dataset id format: uuid example: 00000000-0000-0000-0000-000000000000 chartOfAccounId: type: string description: Chart of account id format: uuid example: 00000000-0000-0000-0000-000000000000 importType: type: string description: Import type templateId: type: string description: Template id format: uuid example: 00000000-0000-0000-0000-000000000000 description: Mapping TRTA.Athena.Models.Api.Errors: type: object properties: id: type: integer description: Error id format: int32 description: type: string description: Error message TRTA.Athena.Models.Api.V4.Mappings.MappingPutRequest: type: object properties: items: type: array description: Map entries items: $ref: '#/components/schemas/TRTA.Athena.Models.Api.V4.Mappings.MapEntry' description: Mapping put request TRTA.Athena.Models.Api.V4.Mappings.MapEntry: type: object properties: mapTarget: type: string description: Tax account code accountCode: type: array description: Chart of accounts account code items: type: string description: Map entry