{"openapi":"3.0.0","info":{"title":"AGroup REST interface descriptions ","description":"Bank REST interfaces that are created for AGroup.","version":"1.0.0"},"paths":{"/agroup/v1/ledger-data/files":{"post":{"tags":["AGroup (Apigee)"],"summary":"Import xml files with general ledger data.","description":"Import xml files with general ledger data.","parameters":[{"name":"Content-type","in":"header","description":"content of the current request","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["application/json"]}},{"name":"X-Request-ID","in":"header","description":"ID of the request, unique to the call, as determined by the initiating party","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access token issued by the authorization server.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Country","in":"header","description":"Country (LV LT or EE)","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["LV","LT","EE"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ledgerDataFile"}}},"required":true},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}},"/agroup/v1/cost-data/files":{"post":{"tags":["AGroup (Apigee)"],"summary":"Import xml files with cost center data.","description":"Import xml files with cost center data.","parameters":[{"name":"Content-type","in":"header","description":"content of the current request","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["application/json"]}},{"name":"X-Request-ID","in":"header","description":"ID of the request, unique to the call, as determined by the initiating party","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access token issued by the authorization server.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Country","in":"header","description":"Country (LV LT or EE)","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["LV","LT","EE"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/costDataFile"}}},"required":true},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}},"/agroup/v1/employee-data/files":{"post":{"tags":["AGroup (Apigee)"],"summary":"Import xml files with employee data.","description":"Import xml files with employee data.","parameters":[{"name":"Content-type","in":"header","description":"content of the current request","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["application/json"]}},{"name":"X-Request-ID","in":"header","description":"ID of the request, unique to the call, as determined by the initiating party","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access token issued by the authorization server.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Country","in":"header","description":"Country (LV LT or EE)","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["LV","LT","EE"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/employeeDataFile"}}},"required":true},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}}},"components":{"schemas":{"ledgerDataFile":{"type":"object","properties":{"value":{"type":"string","format":"bytes","example":"UF4dsdas34=="}}},"costDataFile":{"type":"object","properties":{"value":{"type":"string","format":"bytes","example":"UF4dsdas34=="}}},"employeeDataFile":{"type":"object","properties":{"value":{"type":"string","format":"bytes","example":"UF4dsdas34=="}}},"inline_response_200":{"type":"object","properties":{"text":{"type":"string","example":"File has been created successfully!"}}},"inline_response_400":{"type":"object","properties":{"error_code":{"type":"string"},"error_message":{"type":"string"}}}},"parameters":{"contentType":{"name":"Content-type","in":"header","description":"content of the current request","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["application/json"]}},"country":{"name":"Country","in":"header","description":"Country (LV LT or EE)","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["LV","LT","EE"]}},"requestId":{"name":"X-Request-ID","in":"header","description":"ID of the request, unique to the call, as determined by the initiating party","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},"authorization":{"name":"Authorization","in":"header","description":"Access token issued by the authorization server.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}}}}