{"openapi":"3.0.4","info":{"title":"Get Trial Balance for the given Fund.","description":"Gets the Trial Balance for the given Valuation Point for a Fund.\r\n            \r\nThe Trial Balance has been generated from transactions, translated via Posting Rules\r\nand aggregated based on a General Ledger Profile (where specified).","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/api"}],"paths":{"/api/funds/{scope}/{code}/valuationpoints/trialbalance/$query":{"post":{"tags":["Funds"],"summary":"Get Trial Balance for the given Fund.","description":"Gets the Trial Balance for the given Valuation Point for a Fund.\r\n            \r\nThe Trial Balance has been generated from transactions, translated via Posting Rules\r\nand aggregated based on a General Ledger Profile (where specified).","operationId":"GetValuationPointTrialBalance","parameters":[{"name":"scope","in":"path","description":"The scope of the Fund.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"code","in":"path","description":"The code of the Fund. Together with the scope this uniquely identifies the Fund.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"generalLedgerProfileCode","in":"query","description":"The optional code of a General Ledger Profile used to decorate Journal Entry Lines with levels.","schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"asAt","in":"query","description":"The asAt datetime at which to retrieve the Trial Balance.\r\n             Defaults to returning the latest version if not specified.","schema":{"type":"string","format":"date-time"},"x-nullable":true},{"name":"filter","in":"query","description":"Expression to filter the results by.\r\n             For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.","schema":{"maxLength":16384,"minLength":0,"pattern":"^[\\s\\S]*$","type":"string"}},{"name":"limit","in":"query","description":"When paginating, limit the number of returned results to this number.\r\n             Defaults to 100 if not specified.","schema":{"maximum":5000,"minimum":1,"type":"integer","format":"int32"},"x-nullable":true},{"name":"page","in":"query","description":"The pagination token to use to continue listing Trial Balances.\r\n             This token is returned from the previous call.\r\n             If a pagination token is provided, the filter, effectiveAt and asAt fields\r\n             must not have changed since the original request.","schema":{"maxLength":500,"minLength":1,"pattern":"^[a-zA-Z0-9\\+/]*={0,3}$","type":"string"}},{"name":"propertyKeys","in":"query","description":"A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount'\r\n             domain to decorate onto the TrialBalance.","schema":{"type":"array","items":{"type":"string","description":"The key that uniquely identifies the property. It has the format {domain}/{scope}/{code}."}},"x-nullable":true},{"name":"navTypeCode","in":"query","description":"When provided, runs against the specified NAV Type, otherwise the Primary NAV Type will be used.","schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}},{"name":"excludeCleardownModule","in":"query","description":"If this is set to true, no Cleardown Module will be applied to the Trial Balance. Defaults to false.","schema":{"type":"boolean","default":false},"x-nullable":true}],"requestBody":{"description":"The arguments to use for generating the Trial Balance.","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointDataQueryParameters"},"example":{"end":{"diaryEntry":"DiaryEntryCode"},"variant":"Variant"}},"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointDataQueryParameters"},"example":{"end":{"diaryEntry":"DiaryEntryCode"},"variant":"Variant"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointDataQueryParameters"},"example":{"end":{"diaryEntry":"DiaryEntryCode"},"variant":"Variant"}},"application/*+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointDataQueryParameters"},"example":{"end":{"diaryEntry":"DiaryEntryCode"},"variant":"Variant"}}},"required":true},"responses":{"200":{"description":"The requested Trial Balance for the specified Valuation Point for a Fund.","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointResourceListOfTrialBalance"},"example":{"startValuationPoint":{"aborId":{"scope":"aborScope","code":"DiaryEntryCode"},"diaryEntryCode":"DiaryEntryCode","type":"Period","name":"2023_Q1","status":"Final","applyClearDown":false,"effectiveAt":"2023-04-02T15:10:10.0000000+00:00","queryAsAt":"2023-04-15T15:10:10.0000000+00:00","previousEntryTime":"0001-01-01T00:00:00.0000000+00:00","properties":{"DiaryEntry/AccountingDiary/Reports":{"key":"DiaryEntry/AccountingDiary/Reports","value":{"labelValue":"Some comments"}}}},"version":{"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"},"values":[{"generalLedgerAccountCode":"110200","description":"Sales for settlement","levels":["USD"],"accountType":"Asset","localCurrency":"GBP","opening":{"localAmount":0,"baseAmount":0},"closing":{"localAmount":1501.48,"baseAmount":1501.48},"debit":{"localAmount":1501.48,"baseAmount":1501.48},"credit":{"localAmount":0,"baseAmount":0},"properties":{"Account/MyScope/FundManagerName":{"key":"Account/MyScope/FundManagerName","value":{"labelValue":"Smith"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00"},"Account/MyScope/SomeProperty":{"key":"Account/MyScope/SomeProperty","value":{"labelValue":"SomeValue"},"effectiveFrom":"2016-01-01T00:00:00.0000000+00:00"},"Account/MyScope/AnotherProperty":{"key":"Account/MyScope/AnotherProperty","value":{"labelValue":"AnotherValue"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","effectiveUntil":"2020-01-01T00:00:00.0000000+00:00"},"Account/MyScope/ReBalanceInterval":{"key":"Account/MyScope/ReBalanceInterval","value":{"metricValue":{"value":30,"unit":"Days"}}}}},{"generalLedgerAccountCode":"INVESTMENTS","description":"Total market value of assets","levels":["Equities","NA_Cost"],"accountType":"Asset","localCurrency":"GBP","opening":{"localAmount":0,"baseAmount":0},"closing":{"localAmount":1307199.8,"baseAmount":1307199.8},"debit":{"localAmount":1308701.28,"baseAmount":1308701.28},"credit":{"localAmount":1501.48,"baseAmount":1501.48},"properties":{"Account/MyScope/FundManagerName":{"key":"Account/MyScope/FundManagerName","value":{"labelValue":"Smith"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00"},"Account/MyScope/SomeProperty":{"key":"Account/MyScope/SomeProperty","value":{"labelValue":"SomeValue"},"effectiveFrom":"2016-01-01T00:00:00.0000000+00:00"},"Account/MyScope/AnotherProperty":{"key":"Account/MyScope/AnotherProperty","value":{"labelValue":"AnotherValue"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","effectiveUntil":"2020-01-01T00:00:00.0000000+00:00"},"Account/MyScope/ReBalanceInterval":{"key":"Account/MyScope/ReBalanceInterval","value":{"metricValue":{"value":30,"unit":"Days"}}}}}],"links":[]}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointResourceListOfTrialBalance"},"example":{"startValuationPoint":{"aborId":{"scope":"aborScope","code":"DiaryEntryCode"},"diaryEntryCode":"DiaryEntryCode","type":"Period","name":"2023_Q1","status":"Final","applyClearDown":false,"effectiveAt":"2023-04-02T15:10:10.0000000+00:00","queryAsAt":"2023-04-15T15:10:10.0000000+00:00","previousEntryTime":"0001-01-01T00:00:00.0000000+00:00","properties":{"DiaryEntry/AccountingDiary/Reports":{"key":"DiaryEntry/AccountingDiary/Reports","value":{"labelValue":"Some comments"}}}},"version":{"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"},"values":[{"generalLedgerAccountCode":"110200","description":"Sales for settlement","levels":["USD"],"accountType":"Asset","localCurrency":"GBP","opening":{"localAmount":0,"baseAmount":0},"closing":{"localAmount":1501.48,"baseAmount":1501.48},"debit":{"localAmount":1501.48,"baseAmount":1501.48},"credit":{"localAmount":0,"baseAmount":0},"properties":{"Account/MyScope/FundManagerName":{"key":"Account/MyScope/FundManagerName","value":{"labelValue":"Smith"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00"},"Account/MyScope/SomeProperty":{"key":"Account/MyScope/SomeProperty","value":{"labelValue":"SomeValue"},"effectiveFrom":"2016-01-01T00:00:00.0000000+00:00"},"Account/MyScope/AnotherProperty":{"key":"Account/MyScope/AnotherProperty","value":{"labelValue":"AnotherValue"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","effectiveUntil":"2020-01-01T00:00:00.0000000+00:00"},"Account/MyScope/ReBalanceInterval":{"key":"Account/MyScope/ReBalanceInterval","value":{"metricValue":{"value":30,"unit":"Days"}}}}},{"generalLedgerAccountCode":"INVESTMENTS","description":"Total market value of assets","levels":["Equities","NA_Cost"],"accountType":"Asset","localCurrency":"GBP","opening":{"localAmount":0,"baseAmount":0},"closing":{"localAmount":1307199.8,"baseAmount":1307199.8},"debit":{"localAmount":1308701.28,"baseAmount":1308701.28},"credit":{"localAmount":1501.48,"baseAmount":1501.48},"properties":{"Account/MyScope/FundManagerName":{"key":"Account/MyScope/FundManagerName","value":{"labelValue":"Smith"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00"},"Account/MyScope/SomeProperty":{"key":"Account/MyScope/SomeProperty","value":{"labelValue":"SomeValue"},"effectiveFrom":"2016-01-01T00:00:00.0000000+00:00"},"Account/MyScope/AnotherProperty":{"key":"Account/MyScope/AnotherProperty","value":{"labelValue":"AnotherValue"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","effectiveUntil":"2020-01-01T00:00:00.0000000+00:00"},"Account/MyScope/ReBalanceInterval":{"key":"Account/MyScope/ReBalanceInterval","value":{"metricValue":{"value":30,"unit":"Days"}}}}}],"links":[]}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ValuationPointResourceListOfTrialBalance"},"example":{"startValuationPoint":{"aborId":{"scope":"aborScope","code":"DiaryEntryCode"},"diaryEntryCode":"DiaryEntryCode","type":"Period","name":"2023_Q1","status":"Final","applyClearDown":false,"effectiveAt":"2023-04-02T15:10:10.0000000+00:00","queryAsAt":"2023-04-15T15:10:10.0000000+00:00","previousEntryTime":"0001-01-01T00:00:00.0000000+00:00","properties":{"DiaryEntry/AccountingDiary/Reports":{"key":"DiaryEntry/AccountingDiary/Reports","value":{"labelValue":"Some comments"}}}},"version":{"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","asAtDate":"2018-03-04T23:50:00.0000000+00:00"},"values":[{"generalLedgerAccountCode":"110200","description":"Sales for settlement","levels":["USD"],"accountType":"Asset","localCurrency":"GBP","opening":{"localAmount":0,"baseAmount":0},"closing":{"localAmount":1501.48,"baseAmount":1501.48},"debit":{"localAmount":1501.48,"baseAmount":1501.48},"credit":{"localAmount":0,"baseAmount":0},"properties":{"Account/MyScope/FundManagerName":{"key":"Account/MyScope/FundManagerName","value":{"labelValue":"Smith"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00"},"Account/MyScope/SomeProperty":{"key":"Account/MyScope/SomeProperty","value":{"labelValue":"SomeValue"},"effectiveFrom":"2016-01-01T00:00:00.0000000+00:00"},"Account/MyScope/AnotherProperty":{"key":"Account/MyScope/AnotherProperty","value":{"labelValue":"AnotherValue"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","effectiveUntil":"2020-01-01T00:00:00.0000000+00:00"},"Account/MyScope/ReBalanceInterval":{"key":"Account/MyScope/ReBalanceInterval","value":{"metricValue":{"value":30,"unit":"Days"}}}}},{"generalLedgerAccountCode":"INVESTMENTS","description":"Total market value of assets","levels":["Equities","NA_Cost"],"accountType":"Asset","localCurrency":"GBP","opening":{"localAmount":0,"baseAmount":0},"closing":{"localAmount":1307199.8,"baseAmount":1307199.8},"debit":{"localAmount":1308701.28,"baseAmount":1308701.28},"credit":{"localAmount":1501.48,"baseAmount":1501.48},"properties":{"Account/MyScope/FundManagerName":{"key":"Account/MyScope/FundManagerName","value":{"labelValue":"Smith"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00"},"Account/MyScope/SomeProperty":{"key":"Account/MyScope/SomeProperty","value":{"labelValue":"SomeValue"},"effectiveFrom":"2016-01-01T00:00:00.0000000+00:00"},"Account/MyScope/AnotherProperty":{"key":"Account/MyScope/AnotherProperty","value":{"labelValue":"AnotherValue"},"effectiveFrom":"2018-03-05T00:00:00.0000000+00:00","effectiveUntil":"2020-01-01T00:00:00.0000000+00:00"},"Account/MyScope/ReBalanceInterval":{"key":"Account/MyScope/ReBalanceInterval","value":{"metricValue":{"value":30,"unit":"Days"}}}}}],"links":[]}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"Experimental"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}