POST api/cardService/v1/product/updatePurchaseCategory
Request Information
URI Parameters
None.
Body Parameters
UpdatePurchaseCategoryRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseCategory | PurchaseCategoryModel |
None. |
|
| MerchantCodes | Collection of MerchantCodeModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"PurchaseCategory": {
"Id": 1,
"Name": "sample string 2",
"MaxSingleTxnValue": 1.1,
"MaxDailyTxnTotalValue": 1.1,
"MaxDailyTotalTxns": 1.1,
"MinSingleTxnValue": 1.1,
"MaxSpend4Days": 1.1,
"MaxTotalTxns4Days": 1.1,
"MaxWeeklyTxnValue": 1.1
},
"MerchantCodes": [
{
"MerchantCode": 1,
"Description": "sample string 2"
},
{
"MerchantCode": 1,
"Description": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<UpdatePurchaseCategoryRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Product">
<MerchantCodes>
<MerchantCodeModel>
<Description>sample string 2</Description>
<MerchantCode>1</MerchantCode>
</MerchantCodeModel>
<MerchantCodeModel>
<Description>sample string 2</Description>
<MerchantCode>1</MerchantCode>
</MerchantCodeModel>
</MerchantCodes>
<PurchaseCategory>
<Id>1</Id>
<MaxDailyTotalTxns>1.1</MaxDailyTotalTxns>
<MaxDailyTxnTotalValue>1.1</MaxDailyTxnTotalValue>
<MaxSingleTxnValue>1.1</MaxSingleTxnValue>
<MaxSpend4Days>1.1</MaxSpend4Days>
<MaxTotalTxns4Days>1.1</MaxTotalTxns4Days>
<MaxWeeklyTxnValue>1.1</MaxWeeklyTxnValue>
<MinSingleTxnValue>1.1</MinSingleTxnValue>
<Name>sample string 2</Name>
</PurchaseCategory>
</UpdatePurchaseCategoryRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PurchaseCategoryResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseCategory | PurchaseCategoryModel |
None. |
|
| IsSuccess | boolean |
Required |
|
| ErrorCodes | Collection of string |
Required |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"PurchaseCategory": {
"Id": 1,
"Name": "sample string 2",
"MaxSingleTxnValue": 1.1,
"MaxDailyTxnTotalValue": 1.1,
"MaxDailyTotalTxns": 1.1,
"MinSingleTxnValue": 1.1,
"MaxSpend4Days": 1.1,
"MaxTotalTxns4Days": 1.1,
"MaxWeeklyTxnValue": 1.1
},
"IsSuccess": true,
"ErrorCodes": [
"sample string 1",
"sample string 2"
],
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<PurchaseCategoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Product">
<ErrorCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorCodes>
<IsSuccess xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">true</IsSuccess>
<Message xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">sample string 2</Message>
<PurchaseCategory>
<Id>1</Id>
<MaxDailyTotalTxns>1.1</MaxDailyTotalTxns>
<MaxDailyTxnTotalValue>1.1</MaxDailyTxnTotalValue>
<MaxSingleTxnValue>1.1</MaxSingleTxnValue>
<MaxSpend4Days>1.1</MaxSpend4Days>
<MaxTotalTxns4Days>1.1</MaxTotalTxns4Days>
<MaxWeeklyTxnValue>1.1</MaxWeeklyTxnValue>
<MinSingleTxnValue>1.1</MinSingleTxnValue>
<Name>sample string 2</Name>
</PurchaseCategory>
</PurchaseCategoryResponse>