Previous Next JavaScript must be enabled to correctly display this content

## Update a Balance

put

/service/balanceFetch/{id}

This endpoint is used to update a balance.

### Request

Supported Media Types

- application/json
- application/xml

Path Parameters

- id: string
  key of the balance

Body ()
Request Body that contains data required for updating balanes
Root Schema : LmxTmAccountVdBalDTO
Type: `object`
Match All
Show Source

- allOf GenericDto
- object LmxTmAccountVdBalDTO-allOf[1]

    {
        "type":"object",
        "allOf":[
            {
                "$ref":"#/definitions/GenericDto"
            },
            {
                "type":"object",
                "properties":{
                    "accountNumber":{
                        "type":"string",
                        "description":"",
                        "maxLength":30
                    },
                    "branchCode":{
                        "type":"string",
                        "description":"",
                        "maxLength":4
                    },
                    "currencyCode":{
                        "type":"string",
                        "description":"",
                        "maxLength":3
                    },
                    "availableBalance":{
                        "type":"number",
                        "description":""
                    },
                    "vdBalance":{
                        "type":"number",
                        "description":""
                    },
                    "icBalance":{
                        "type":"number",
                        "description":""
                    },
                    "bookDatedBalance":{
                        "type":"number",
                        "description":""
                    },
                    "valueDate":{
                        "type":"string",
                        "description":""
                    },
                    "lastBalanceUpdate":{
                        "type":"string",
                        "description":"",
                        "format":"date"
                    },
                    "source":{
                        "type":"string",
                        "description":"",
                        "maxLength":50
                    },
                    "balanceType":{
                        "type":"string",
                        "description":"",
                        "maxLength":50
                    },
                    "lastAvailableBalance":{
                        "type":"string",
                        "description":""
                    },
                    "sourceReference":{
                        "type":"string",
                        "description":"",
                        "maxLength":50
                    },
                    "isSystemAccount":{
                        "type":"string",
                        "description":""
                    },
                    "isSimulation":{
                        "type":"string",
                        "description":""
                    },
                    "simulationAccount":{
                        "type":"string",
                        "description":""
                    }
                }
            }
        ]
    }

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 : LmxTmAccountVdBalDTO-allOf[1]
Type: `object`
Show Source

- accountNumber(optional): string
  Maximum Length: `30`
- availableBalance(optional): number
- balanceType(optional): string
  Maximum Length: `50`
- bookDatedBalance(optional): number
- branchCode(optional): string
  Maximum Length: `4`
- currencyCode(optional): string
  Maximum Length: `3`
- icBalance(optional): number
- isSimulation(optional): string
- isSystemAccount(optional): string
- lastAvailableBalance(optional): string
- lastBalanceUpdate(optional): string(date)
- simulationAccount(optional): string
- source(optional): string
  Maximum Length: `50`
- sourceReference(optional): string
  Maximum Length: `50`
- valueDate(optional): string
- vdBalance(optional): number

    {
        "type":"object",
        "properties":{
            "accountNumber":{
                "type":"string",
                "description":"",
                "maxLength":30
            },
            "branchCode":{
                "type":"string",
                "description":"",
                "maxLength":4
            },
            "currencyCode":{
                "type":"string",
                "description":"",
                "maxLength":3
            },
            "availableBalance":{
                "type":"number",
                "description":""
            },
            "vdBalance":{
                "type":"number",
                "description":""
            },
            "icBalance":{
                "type":"number",
                "description":""
            },
            "bookDatedBalance":{
                "type":"number",
                "description":""
            },
            "valueDate":{
                "type":"string",
                "description":""
            },
            "lastBalanceUpdate":{
                "type":"string",
                "description":"",
                "format":"date"
            },
            "source":{
                "type":"string",
                "description":"",
                "maxLength":50
            },
            "balanceType":{
                "type":"string",
                "description":"",
                "maxLength":50
            },
            "lastAvailableBalance":{
                "type":"string",
                "description":""
            },
            "sourceReference":{
                "type":"string",
                "description":"",
                "maxLength":50
            },
            "isSystemAccount":{
                "type":"string",
                "description":""
            },
            "isSimulation":{
                "type":"string",
                "description":""
            },
            "simulationAccount":{
                "type":"string",
                "description":""
            }
        }
    }

Back to Top

### Response

Supported Media Types

- application/json
- application/xml

#### 200 Response

Returns updated bank
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