{"openapi":"3.0.4","info":{"title":"Create a FeeType.","description":"Create a FeeType that contains templates used to create fee transactions.","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/api"}],"paths":{"/api/feetypes/{scope}":{"post":{"tags":["Fee Types"],"summary":"Create a FeeType.","description":"Create a FeeType that contains templates used to create fee transactions.","operationId":"CreateFeeType","parameters":[{"name":"scope","in":"path","description":"The scope of the FeeType.","required":true,"schema":{"maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9\\-_]+$","type":"string"}}],"requestBody":{"description":"The contents of the FeeType.","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeTypeRequest"},"example":{"code":"AdminFees","displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false},{"displayName":"Transaction for admin fee payables","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Payable","type":"FeePayment","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}]}},"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeTypeRequest"},"example":{"code":"AdminFees","displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false},{"displayName":"Transaction for admin fee payables","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Payable","type":"FeePayment","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}]}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeTypeRequest"},"example":{"code":"AdminFees","displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false},{"displayName":"Transaction for admin fee payables","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Payable","type":"FeePayment","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}]}},"application/*+json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeTypeRequest"},"example":{"code":"AdminFees","displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false},{"displayName":"Transaction for admin fee payables","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Payable","type":"FeePayment","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}]}}},"required":true},"responses":{"201":{"description":"Create a FeeType.","content":{"application/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeType"},"example":{"href":"http://example.com","id":{"scope":"Admin","code":"AdminFees"},"displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}],"version":{"effectiveFrom":"2022-03-05T00:00:00.0000000+00:00","asAtDate":"2022-03-04T23:50:00.0000000+00:00"}}},"text/plain":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeType"},"example":{"href":"http://example.com","id":{"scope":"Admin","code":"AdminFees"},"displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}],"version":{"effectiveFrom":"2022-03-05T00:00:00.0000000+00:00","asAtDate":"2022-03-04T23:50:00.0000000+00:00"}}},"text/json":{"schema":{"$ref":"/docs/api/lusid/schemas.json#/components/schemas/FeeType"},"example":{"href":"http://example.com","id":{"scope":"Admin","code":"AdminFees"},"displayName":"AdminFees","description":"Generating transactions to accrue and settle admin fees for funds","componentTransactions":[{"displayName":"Transaction for admin fee accruals","transactionFieldMap":{"transactionId":"{{FundFee.defaultFeeTransactionId}}-Accrual","type":"FeeAccrual","source":"default","instrument":"{{FundFee.feeInstrument}}","transactionDate":"{{FundFee.valuationPointDate}}","settlementDate":"{{FundFee.valuationPointDate}}","units":"{{FundFee.amount}}","transactionPrice":{"price":"1.0","type":"Price"},"transactionCurrency":"{{FundFee.feeCurrency}}","exchangeRate":"1.0","totalConsideration":{"currency":"{{FundFee.feeCurrency}}","amount":"{{FundFee.amount}}"}},"transactionPropertyMap":[],"preserveTaxLotStructure":false}],"version":{"effectiveFrom":"2022-03-05T00:00:00.0000000+00:00","asAtDate":"2022-03-04T23:50:00.0000000+00:00"}}}}},"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":"EarlyAccess"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}