Update an existing rule
put
/service/rates
This endpoint is used to update an existing rates.
Request
Supported Media Types
- application/json
- application/xml
Header Parameters
-
sourceCode: string
Source from which request is initiated
Request Body that contains data required for updating an existing rates
Nested Schema : GenericDto
Match All
Show Source
-
object
GenericDto-allOf[0]
Discriminator:
resource_type
Nested Schema : GenericDto-allOf[0]
Type:
object
Discriminator:
resource_type
Nested Schema : CmcTmCurrencyRateMasterDto-allOf[1]
Type:
Show Source
object
-
branchCode:
string
Minimum Length:
0
Maximum Length:3
Pattern:^[A-Z0-9]*$
-
CmcTmCurrencyRateDto(optional):
array CmcTmCurrencyRateDto
-
currency1:
string
Minimum Length:
0
Maximum Length:3
-
currency2:
string
Minimum Length:
0
Maximum Length:3
Nested Schema : CmcTmCurrencyRateDto
Type:
Show Source
object
-
branchCode(optional):
string
Minimum Length:
0
Maximum Length:3
Pattern:^[A-Z0-9]*$
-
buyRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
buySpread(optional):
number
-
currency1(optional):
string
Minimum Length:
0
Maximum Length:3
-
currency2(optional):
string
Minimum Length:
0
Maximum Length:3
-
currencyRateMasterId(optional):
string
-
id(optional):
string
-
intAuthStat(optional):
string
Minimum Length:
0
Maximum Length:1
-
midRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
rateDate(optional):
string
-
rateSerial(optional):
number
Minimum Length:
0
Maximum Length:4
-
rateType:
string
Minimum Length:
0
Maximum Length:8
-
saleRate(optional):
number
-
saleSpread(optional):
number
-
unauthBuyRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
unauthBuySpread(optional):
number
-
unauthMidRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
unauthRateDate(optional):
string
-
unauthRateSerial(optional):
number
Minimum Length:
0
Maximum Length:4
-
unauthSaleRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
unauthSaleSpread(optional):
number
Response
Supported Media Types
- application/json
- application/xml
200 Response
Returns updated rates
Nested Schema : GenericDto
Match All
Show Source
-
object
GenericDto-allOf[0]
Discriminator:
resource_type
Nested Schema : GenericDto-allOf[0]
Type:
object
Discriminator:
resource_type
Nested Schema : CmcTmCurrencyRateMasterResponseDto-allOf[1]
Type:
Show Source
object
-
branchCode:
string
Minimum Length:
0
Maximum Length:3
Pattern:^[A-Z0-9]*$
-
CmcTmCurrencyRateResponseDto(optional):
array CmcTmCurrencyRateResponseDto
-
currency1:
string
Minimum Length:
0
Maximum Length:3
-
currency2:
string
Minimum Length:
0
Maximum Length:3
Nested Schema : CmcTmCurrencyRateResponseDto
Type:
Show Source
object
-
branchCode(optional):
string
Minimum Length:
0
Maximum Length:3
Pattern:^[A-Z0-9]*$
-
buyRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
buySpread(optional):
number
-
currency1(optional):
string
Minimum Length:
0
Maximum Length:3
-
currency2(optional):
string
Minimum Length:
0
Maximum Length:3
-
intAuthStat(optional):
string
Minimum Length:
0
Maximum Length:1
-
midRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
rateDate(optional):
string
-
rateSerial(optional):
number
Minimum Length:
0
Maximum Length:4
-
rateType:
string
Minimum Length:
0
Maximum Length:8
-
saleRate(optional):
number
-
saleSpread(optional):
number
-
unauthBuyRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
unauthBuySpread(optional):
number
-
unauthMidRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
unauthRateDate(optional):
string
-
unauthRateSerial(optional):
number
Minimum Length:
0
Maximum Length:4
-
unauthSaleRate(optional):
number
Minimum Length:
0
Maximum Length:24
-
unauthSaleSpread(optional):
number
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