Previous Next JavaScript must be enabled to correctly display this content

## Adds a new Investment Details

post

/investmentdetails

This endpoint is used to add a new investment Detail.

### Request

Supported Media Types

- application/json
- application/xml

Body ()
Request Body that contains data required for creating a new investmentdetails
Root Schema : LmdRdInvestmentDetailsDTO
Type: `object`
InvestmentDetails DTO
Match All
Show Source

- allOf GenericDto
- object LmdRdInvestmentDetailsDTO-allOf[1]

    {
        "description":"InvestmentDetails DTO",
        "type":"object",
        "allOf":[
            {
                "$ref":"#/definitions/GenericDto"
            },
            {
                "type":"object",
                "properties":{
                    "structureId":{
                        "description":"structure id in Investment details",
                        "type":"string",
                        "pattern":"[A-Z0-9]{1,30}"
                    },
                    "valueDate":{
                        "description":"value date in Investment details",
                        "type":"string",
                        "pattern":"[0-9]{4}[-][0-9]{2}[-][0-9]{2}"
                    },
                    "accountNumber":{
                        "description":"account number in Investment details",
                        "type":"string",
                        "maxLength":30
                    },
                    "parentAccountNumber":{
                        "description":"Parent account number in Investment details",
                        "type":"string",
                        "maxLength":30
                    },
                    "availableBalance":{
                        "description":"Available Balance in Investment details",
                        "type":"number"
                    },
                    "currencyCode":{
                        "description":"Currency code in Investment details",
                        "type":"string",
                        "maxLength":3
                    },
                    "customerId":{
                        "description":"Customer Id for Investment details",
                        "type":"string",
                        "pattern":"[a-zA-Z0-9]{1,20}"
                    },
                    "instrumentType":{
                        "description":"Instrument Type for Investment details",
                        "type":"string"
                    }
                }
            }
        ]
    }

Nested Schema : GenericDto
Match All
Show Source

- object GenericDto-allOf[0]
  Discriminator: `resource_type`

    {
        "allOf":[
            {
                "type":"object",
                "discriminator":"resource_type"
            }
        ]
    }

Nested Schema : GenericDto-allOf[0]
Type: `object`
Discriminator: `resource_type`
Nested Schema : LmdRdInvestmentDetailsDTO-allOf[1]
Type: `object`
Show Source

- accountNumber(optional): string
  Maximum Length: `30`
  account number in Investment details
- availableBalance(optional): number
  Available Balance in Investment details
- currencyCode(optional): string
  Maximum Length: `3`
  Currency code in Investment details
- customerId(optional): string
  Pattern: `[a-zA-Z0-9]{1,20}`
  Customer Id for Investment details
- instrumentType(optional): string
  Instrument Type for Investment details
- parentAccountNumber(optional): string
  Maximum Length: `30`
  Parent account number in Investment details
- structureId(optional): string
  Pattern: `[A-Z0-9]{1,30}`
  structure id in Investment details
- valueDate(optional): string
  Pattern: `[0-9]{4}[-][0-9]{2}[-][0-9]{2}`
  value date in Investment details

    {
        "type":"object",
        "properties":{
            "structureId":{
                "description":"structure id in Investment details",
                "type":"string",
                "pattern":"[A-Z0-9]{1,30}"
            },
            "valueDate":{
                "description":"value date in Investment details",
                "type":"string",
                "pattern":"[0-9]{4}[-][0-9]{2}[-][0-9]{2}"
            },
            "accountNumber":{
                "description":"account number in Investment details",
                "type":"string",
                "maxLength":30
            },
            "parentAccountNumber":{
                "description":"Parent account number in Investment details",
                "type":"string",
                "maxLength":30
            },
            "availableBalance":{
                "description":"Available Balance in Investment details",
                "type":"number"
            },
            "currencyCode":{
                "description":"Currency code in Investment details",
                "type":"string",
                "maxLength":3
            },
            "customerId":{
                "description":"Customer Id for Investment details",
                "type":"string",
                "pattern":"[a-zA-Z0-9]{1,20}"
            },
            "instrumentType":{
                "description":"Instrument Type for Investment details",
                "type":"string"
            }
        }
    }

Back to Top

### Response

Supported Media Types

- application/json
- application/xml

#### 201 Response

Returns message of success or failure
Headers

- Location: string
  URL of newly created Interest Details

Body ()
Root Schema : ResponseDtoWrapper
Type: `object`
Show Source

- data(optional): object ResponseResourceSupport
- messages(optional): object ResponseDto

    {
        "type":"object",
        "properties":{
            "messages":{
                "$ref":"#/definitions/ResponseDto"
            },
            "data":{
                "$ref":"#/definitions/ResponseResourceSupport"
            }
        }
    }

Nested Schema : ResponseResourceSupport
Type: `object`
Nested Schema : ResponseDto
Type: `object`
Show Source

- codes(optional): array codes
- id(optional): string
- requestId(optional): string
- status(optional): string

    {
        "type":"object",
        "properties":{
            "id":{
                "type":"string"
            },
            "status":{
                "type":"string"
            },
            "codes":{
                "type":"array",
                "items":{
                    "$ref":"#/definitions/ResponseCode"
                }
            },
            "requestId":{
                "type":"string"
            }
        }
    }

Nested Schema : codes
Type: `array`
Show Source

- Array of: object ResponseCode

    {
        "type":"array",
        "items":{
            "$ref":"#/definitions/ResponseCode"
        }
    }

Nested Schema : ResponseCode
Type: `object`
Show Source

- arg(optional): string
- args(optional): array args
- Code(optional): string
- Desc(optional): string
- Language(optional): string
- Type(optional): string

    {
        "type":"object",
        "properties":{
            "Code":{
                "type":"string"
            },
            "Desc":{
                "type":"string"
            },
            "Type":{
                "type":"string"
            },
            "Language":{
                "type":"string"
            },
            "args":{
                "type":"array",
                "items":{
                    "type":"object"
                }
            },
            "arg":{
                "type":"string"
            }
        }
    }

Nested Schema : args
Type: `array`
Show Source

- Array of: object items

    {
        "type":"array",
        "items":{
            "type":"object"
        }
    }

Nested Schema : items
Type: `object`

#### 400 Response

Malformed syntax.

#### 401 Response

Request does not have sufficient credentials.

#### 403 Response

Request is not authorized.

#### 405 Response

Invalid input

#### 500 Response

Internal error
Back to Top