{"openapi":"3.0.4","info":{"title":"JournalEntryLine","version":"0.0.1"},"paths":{},"components":{"schemas":{"JournalEntryLine":{"required":["accountingDate","activityDate","asAtDate","base","economicBucket","generalLedgerAccountCode","holdingType","instrumentId","instrumentScope","local","portfolioId","postingRule","sourceId","sourceType","units"],"type":"object","properties":{"accountingDate":{"type":"string","description":"The Journal Entry Line accounting date.","format":"date-time"},"activityDate":{"type":"string","description":"The actual date of the activity. Differs from the accounting date when creating journals that would occur in a closed period.","format":"date-time"},"portfolioId":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ResourceId"},"instrumentId":{"minLength":1,"type":"string","description":"To indicate the instrument of the transaction that the Journal Entry Line posted for, if applicable."},"instrumentScope":{"minLength":1,"type":"string","description":"The scope in which the Journal Entry Line instrument is in."},"subHoldingKeys":{"type":"object","additionalProperties":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/PerpetualProperty"},"description":"The sub-holding properties which are part of the AccountingKey.","nullable":true},"taxLotId":{"type":"string","description":"If the holding type is 'B' (settled cash balance), this is 1. Otherwise, this is the ID of a tax lot if applicable, or the source ID of the original transaction if not.","nullable":true},"generalLedgerAccountCode":{"minLength":1,"type":"string","description":"The code of the account in the general ledger the Journal Entry was posted to."},"local":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CurrencyAndAmount"},"base":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/CurrencyAndAmount"},"units":{"type":"number","description":"Units held for the Journal Entry Line.","format":"double"},"postingModuleCode":{"type":"string","description":"The code of the posting module where the posting rules derived the Journal Entry lines.","nullable":true},"postingRule":{"minLength":1,"type":"string","description":"The rule generating the Journal Entry Line."},"asAtDate":{"type":"string","description":"The corresponding input date and time of the Transaction generating the Journal Entry Line.","format":"date-time"},"activitiesDescription":{"maxLength":1024,"minLength":0,"type":"string","description":"This would be the description of the business activities this Journal Entry Line is for.","nullable":true},"sourceType":{"minLength":1,"type":"string","description":"The type of source for the Journal Entry Line. Available values: LusidTransaction, LusidValuation, Manual, External."},"sourceId":{"minLength":1,"type":"string","description":"For the Lusid Source Type this will be the txn Id. For the rest will be what the user populates."},"properties":{"type":"object","additionalProperties":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/Property"},"description":"A set of properties for the Abor.","nullable":true},"movementName":{"type":"string","description":"If the JE Line is generated from a transaction, the name of the side in the transaction type's movement. If from a valuation, this is 'MarkToMarket'.","nullable":true},"holdingType":{"minLength":1,"type":"string","description":"One of the LUSID holding types such as 'P' for position or 'B' for settled cash balance."},"economicBucket":{"minLength":1,"type":"string","description":"LUSID automatically categorises a JE Line into a broad economic bucket such as 'NA_Cost' or 'PL_RealPriceGL'."},"economicBucketComponent":{"type":"string","description":"Sub bucket of the economic bucket. Available values: Undefined, Premium, OID, MarketDiscount, AcquisitionPremium, CoreMarket, CrossGainLoss, TradedInterest, Income, Expense.","nullable":true},"economicBucketVariant":{"type":"string","description":"Further categorisation of a journal entry line. LongTerm/ShortTerm: based on whether the ActivityDate is more than a year after the purchase trade date. TradeDateToSettlementDate: FX gain/loss between trade date and settlement date. InLieuSubstitution: FX gain/loss from settling in a different currency when the original settlement currency is the portfolio base currency. Available values: Undefined, ShortTerm, LongTerm, Bought, Sold, TradeDateToSettlementDate, Rounding, InLieuSubstitution.","nullable":true},"levels":{"type":"array","items":{"type":"string"},"description":"Resolved data from the general ledger profile where the GeneralLedgerProfileCode is specified in the GetJournalEntryLines request body.","nullable":true},"sourceLevels":{"type":"array","items":{"type":"string"},"description":"Source data from the general ledger profile where the GeneralLedgerProfileCode is specified in the GetJournalEntryLines request body.","nullable":true},"movementSign":{"type":"string","description":"Indicates if the Journal Entry Line corresponds to a Long or Short movement. Available values: NA, Long, Short.","nullable":true},"holdingSign":{"type":"string","description":"Indicates if the Journal Entry Line is operating against a Long or Short holding. Available values: NA, Long, Short.","nullable":true},"ledgerColumn":{"type":"string","description":"Indicates if the Journal Entry Line is credit or debit. Available values: Debit, Credit.","nullable":true},"journalEntryLineType":{"type":"string","description":"Indicates the Journal Entry Line type. Available values: Default, Reversal, TrueUp.","nullable":true},"custodianAccountId":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/ResourceId"},"custodianAccountType":{"type":"string","description":"Indicates the Account Type of the resolved Custodian Account for this Journal Entry Line.","nullable":true},"links":{"type":"array","items":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/Link"},"nullable":true}},"additionalProperties":false,"description":"A Journal Entry line entity.","title":"JournalEntryLine"}}}}