# Index/Subscription

## Fund subscription

> bizType=fund.app.FundApplyAppDubboService.apply\
> Fund subscription\
> Accessible after login

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Index/Subscription"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/fund.app.FundApplyAppDubboService.apply":{"post":{"summary":"Fund subscription","deprecated":false,"description":"bizType=fund.app.FundApplyAppDubboService.apply\nFund subscription\nAccessible after login","operationId":"apply","tags":["Index/Subscription"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFundApplyReqDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultCustomerFundApplyDto"}}},"headers":{}}}}}},"components":{"schemas":{"CreateFundApplyReqDto":{"type":"object","required":["amountPay","fundId"],"properties":{"customerNo":{"type":"string","title":"Client number"},"currencyPay":{"type":"string","description":"Payment currency, or a basket","title":"Payment currency"},"amountPay":{"type":"number","description":"By amount: payment amount, by shares: subscription shares","title":"Payment limit"},"applyType":{"type":"integer","format":"int32","description":"1. By amount, 2. By shares","title":"Subscription type"},"fundId":{"type":"integer","title":"Fund ID"}}},"BaseResultCustomerFundApplyDto":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/CustomerFundApplyDto"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"CustomerFundApplyDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"proposalNo":{"type":"string","description":"Proposal number"},"companyName":{"type":"string","description":"White Label Company Name"},"customerNoFun":{"type":"string","description":"Customer number corresponding to the fund manager"},"fundId":{"type":"integer","format":"int64","description":"Fund ID"},"currencyPay":{"type":"string","description":"Payment Currency"},"currencyShares":{"type":"string","description":"Fund currency"},"fees":{"type":"string","description":"Payment Handling Fee"},"amountPay":{"type":"string","description":"Payment Amount"},"finalAmount":{"type":"string","description":"Final Subscription Amount"},"shares":{"type":"string","description":"Confirmed Share Quantity"},"sharesNet":{"type":"string","description":"Net asset value of shares"},"sharesStatus":{"type":"integer","format":"int32","description":"Share confirmation status: 0: pending confirmation 1. confirmed 2. confirmation failed"},"executeStatus":{"type":"integer","format":"int32","description":"Subscription Execution Status: 0. Unconfirmed 1. Pending Execution 2. Execution Successful 3. Execution Failed"},"executeId":{"type":"string","description":"Batch Execution ID"},"currencyNet":{"type":"string","description":"Net Asset Value Currency"},"fundName":{"type":"string","description":"Fund name"},"executeList":{"type":"array","description":"Execution Standard List","items":{"$ref":"#/components/schemas/FundsApplyExecuteRecordDetailDto"}}}},"FundsApplyExecuteRecordDetailDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"amount":{"type":"number","description":"Profit Currency Amount"},"baseCurrency":{"type":"string","description":"Base Currency"},"profitCurrency":{"type":"string","description":"Profit Currency"},"rate":{"type":"number","description":"Order Percentage"},"symbolId":{"type":"integer","format":"int64","description":"Product ID"},"symbolName":{"type":"string","description":"Product name"}}}}}}
```

## Calculate service fee and shares for customer subscription

> bizType=fund.app.FundApplyAppDubboService.calcApplyShares\
> Calculate service fee and shares for customer subscription\
> Accessible after login

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Index/Subscription"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/fund.app.FundApplyAppDubboService.calcApplyShares":{"post":{"summary":"Calculate service fee and shares for customer subscription","deprecated":false,"description":"bizType=fund.app.FundApplyAppDubboService.calcApplyShares\nCalculate service fee and shares for customer subscription\nAccessible after login","operationId":"calcApplyShares","tags":["Index/Subscription"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFundApplyReqDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultFundApplyCalcDto"}}},"headers":{}}}}}},"components":{"schemas":{"CreateFundApplyReqDto":{"type":"object","required":["amountPay","fundId"],"properties":{"customerNo":{"type":"string","title":"Client number"},"currencyPay":{"type":"string","description":"Payment currency, or a basket","title":"Payment currency"},"amountPay":{"type":"number","description":"By amount: payment amount, by shares: subscription shares","title":"Payment limit"},"applyType":{"type":"integer","format":"int32","description":"1. By amount, 2. By shares","title":"Subscription type"},"fundId":{"type":"integer","title":"Fund ID"}}},"BaseResultFundApplyCalcDto":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/FundApplyCalcDto"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"FundApplyCalcDto":{"type":"object","properties":{"fees":{"type":"string","description":"Commission fee"},"shares":{"type":"string","description":"Expected shares to receive"},"sharesNet":{"type":"string","description":"Net Value"},"rate":{"type":"string","description":"Exchange Rate"},"currencyNet":{"type":"string","description":"Net Asset Value Currency"},"currencyPay":{"type":"string","description":"Currency of the fee"},"amountPay":{"type":"string","description":"Amount of assets to be paid"},"list":{"type":"array","description":"List of assets in a basket","items":{"$ref":"#/components/schemas/CustomerFundCurrencyDto"}}}},"CustomerFundCurrencyDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"proposalNo":{"type":"string","description":"Proposal number"},"fundId":{"type":"integer","format":"int64","description":"Fund ID"},"currency":{"type":"string","description":"Currency"},"digits":{"type":"integer","format":"int32","description":"Asset Decimal Places"},"amount":{"type":"string","description":"Final Subscription/Redemption Amount"},"fees":{"type":"string","description":"Commission fee"},"total":{"type":"string","description":"Total Payment Amount"}}}}}}
```

## Customer subscription record

> bizType=fund.app.FundApplyAppDubboService.customerPage\
> H5 subscription record\
> Access after login

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Index/Subscription"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/fund.app.FundApplyAppDubboService.customerPage":{"post":{"summary":"Customer subscription record","deprecated":false,"description":"bizType=fund.app.FundApplyAppDubboService.customerPage\nH5 subscription record\nAccess after login","operationId":"customerPage","tags":["Index/Subscription"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundApplyRecordDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultBasePageVoCustomerFundApplyDto"}}},"headers":{}}}}}},"components":{"schemas":{"FundApplyRecordDto":{"type":"object","required":["customerGroupId"],"properties":{"username":{"type":"string"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"},"downloadType":{"type":"integer","format":"int32","description":"Download type 1: direct download, 2: asynchronous download"},"startTime":{"type":"integer","format":"int64"},"endTime":{"type":"integer","format":"int64"},"currencyPay":{"type":"string"},"customerCompanyId":{"type":"integer","format":"int64"},"proposalNo":{"type":"array","items":{"type":"string"}},"customerSelfNo":{"type":"array","items":{"type":"string"}},"executeId":{"type":"array","items":{"type":"string"}},"executeStatus":{"type":"integer","format":"int32"},"currencyShares":{"type":"string"},"type":{"type":"integer","format":"int32"},"customerGroupId":{"type":"integer","format":"int64","description":"Customer group ID"}}},"BaseResultBasePageVoCustomerFundApplyDto":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/BasePageVoCustomerFundApplyDto"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"BasePageVoCustomerFundApplyDto":{"type":"object","properties":{"records":{"type":"array","description":"Result list","items":{"$ref":"#/components/schemas/CustomerFundApplyDto"}},"total":{"type":"integer","format":"int64","description":"Total"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"}}},"CustomerFundApplyDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"proposalNo":{"type":"string","description":"Proposal number"},"companyName":{"type":"string","description":"White Label Company Name"},"customerNoFun":{"type":"string","description":"Customer number corresponding to the fund manager"},"fundId":{"type":"integer","format":"int64","description":"Fund ID"},"currencyPay":{"type":"string","description":"Payment Currency"},"currencyShares":{"type":"string","description":"Fund currency"},"fees":{"type":"string","description":"Payment Handling Fee"},"amountPay":{"type":"string","description":"Payment Amount"},"finalAmount":{"type":"string","description":"Final Subscription Amount"},"shares":{"type":"string","description":"Confirmed Share Quantity"},"sharesNet":{"type":"string","description":"Net asset value of shares"},"sharesStatus":{"type":"integer","format":"int32","description":"Share confirmation status: 0: pending confirmation 1. confirmed 2. confirmation failed"},"executeStatus":{"type":"integer","format":"int32","description":"Subscription Execution Status: 0. Unconfirmed 1. Pending Execution 2. Execution Successful 3. Execution Failed"},"executeId":{"type":"string","description":"Batch Execution ID"},"currencyNet":{"type":"string","description":"Net Asset Value Currency"},"fundName":{"type":"string","description":"Fund name"},"executeList":{"type":"array","description":"Execution Standard List","items":{"$ref":"#/components/schemas/FundsApplyExecuteRecordDetailDto"}}}},"FundsApplyExecuteRecordDetailDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"amount":{"type":"number","description":"Profit Currency Amount"},"baseCurrency":{"type":"string","description":"Base Currency"},"profitCurrency":{"type":"string","description":"Profit Currency"},"rate":{"type":"number","description":"Order Percentage"},"symbolId":{"type":"integer","format":"int64","description":"Product ID"},"symbolName":{"type":"string","description":"Product name"}}}}}}
```

## Get underlying asset information of the fund

> bizType=fund.app.FundApplyAppDubboService.getFundCurrencyList\
> Get underlying asset information of the fund\
> Accessible after login

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Index/Subscription"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/fund.app.FundApplyAppDubboService.getFundCurrencyList":{"post":{"summary":"Get underlying asset information of the fund","deprecated":false,"description":"bizType=fund.app.FundApplyAppDubboService.getFundCurrencyList\nGet underlying asset information of the fund\nAccessible after login","operationId":"getFundCurrencyList","tags":["Index/Subscription"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundCurrencyQueryReqDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultListCustomerFundCurrencyDto"}}},"headers":{}}}}}},"components":{"schemas":{"FundCurrencyQueryReqDto":{"type":"object","required":["proposalNo"],"properties":{"proposalNo":{"type":"string","description":"Proposal number"}}},"BaseResultListCustomerFundCurrencyDto":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"type":"array","description":"Data Body","items":{"$ref":"#/components/schemas/CustomerFundCurrencyDto"}},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"CustomerFundCurrencyDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"proposalNo":{"type":"string","description":"Proposal number"},"fundId":{"type":"integer","format":"int64","description":"Fund ID"},"currency":{"type":"string","description":"Currency"},"digits":{"type":"integer","format":"int32","description":"Asset Decimal Places"},"amount":{"type":"string","description":"Final Subscription/Redemption Amount"},"fees":{"type":"string","description":"Commission fee"},"total":{"type":"string","description":"Total Payment Amount"}}}}}}
```

## Client manager pagination query fund records

> bizType=fund.app.FundApplyAppDubboService.page\
> PCUI client manager pagination query fund records\
> Access after login

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Index/Subscription"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/fund.app.FundApplyAppDubboService.page":{"post":{"summary":"Client manager pagination query fund records","deprecated":false,"description":"bizType=fund.app.FundApplyAppDubboService.page\nPCUI client manager pagination query fund records\nAccess after login","operationId":"page","tags":["Index/Subscription"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundApplyRecordDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultBasePageVoCustomerFundApplyDto"}}},"headers":{}}}}}},"components":{"schemas":{"FundApplyRecordDto":{"type":"object","required":["customerGroupId"],"properties":{"username":{"type":"string"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"},"downloadType":{"type":"integer","format":"int32","description":"Download type 1: direct download, 2: asynchronous download"},"startTime":{"type":"integer","format":"int64"},"endTime":{"type":"integer","format":"int64"},"currencyPay":{"type":"string"},"customerCompanyId":{"type":"integer","format":"int64"},"proposalNo":{"type":"array","items":{"type":"string"}},"customerSelfNo":{"type":"array","items":{"type":"string"}},"executeId":{"type":"array","items":{"type":"string"}},"executeStatus":{"type":"integer","format":"int32"},"currencyShares":{"type":"string"},"type":{"type":"integer","format":"int32"},"customerGroupId":{"type":"integer","format":"int64","description":"Customer group ID"}}},"BaseResultBasePageVoCustomerFundApplyDto":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/BasePageVoCustomerFundApplyDto"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"BasePageVoCustomerFundApplyDto":{"type":"object","properties":{"records":{"type":"array","description":"Result list","items":{"$ref":"#/components/schemas/CustomerFundApplyDto"}},"total":{"type":"integer","format":"int64","description":"Total"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"}}},"CustomerFundApplyDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"proposalNo":{"type":"string","description":"Proposal number"},"companyName":{"type":"string","description":"White Label Company Name"},"customerNoFun":{"type":"string","description":"Customer number corresponding to the fund manager"},"fundId":{"type":"integer","format":"int64","description":"Fund ID"},"currencyPay":{"type":"string","description":"Payment Currency"},"currencyShares":{"type":"string","description":"Fund currency"},"fees":{"type":"string","description":"Payment Handling Fee"},"amountPay":{"type":"string","description":"Payment Amount"},"finalAmount":{"type":"string","description":"Final Subscription Amount"},"shares":{"type":"string","description":"Confirmed Share Quantity"},"sharesNet":{"type":"string","description":"Net asset value of shares"},"sharesStatus":{"type":"integer","format":"int32","description":"Share confirmation status: 0: pending confirmation 1. confirmed 2. confirmation failed"},"executeStatus":{"type":"integer","format":"int32","description":"Subscription Execution Status: 0. Unconfirmed 1. Pending Execution 2. Execution Successful 3. Execution Failed"},"executeId":{"type":"string","description":"Batch Execution ID"},"currencyNet":{"type":"string","description":"Net Asset Value Currency"},"fundName":{"type":"string","description":"Fund name"},"executeList":{"type":"array","description":"Execution Standard List","items":{"$ref":"#/components/schemas/FundsApplyExecuteRecordDetailDto"}}}},"FundsApplyExecuteRecordDetailDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Primary key id"},"status":{"type":"integer","format":"int32","description":"Status 1, 2, 3, enable, disable, delete"},"createBy":{"type":"string","description":"Creator"},"createTime":{"type":"integer","format":"int64","description":"Creation time"},"updateBy":{"type":"string","description":"Updater"},"updateTime":{"type":"integer","format":"int64","description":"Update Time"},"amount":{"type":"number","description":"Profit Currency Amount"},"baseCurrency":{"type":"string","description":"Base Currency"},"profitCurrency":{"type":"string","description":"Profit Currency"},"rate":{"type":"number","description":"Order Percentage"},"symbolId":{"type":"integer","format":"int64","description":"Product ID"},"symbolName":{"type":"string","description":"Product name"}}}}}}
```
