POST api/cardService/v1/product/spendProfile
Request Information
URI Parameters
None.
Body Parameters
SpendProfileModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SpendProfileId | integer |
None. |
|
| ProfileName | string |
None. |
|
| MaxSingleTxnValue | decimal number |
None. |
|
| MaxDailyTxnTotalValue | decimal number |
None. |
|
| MaxDailyTotalTxns | decimal number |
None. |
|
| MinSingleTxnValue | decimal number |
None. |
|
| MaxSpend4Days | decimal number |
None. |
|
| MaxTotalTxns4Days | decimal number |
None. |
|
| MaxWeeklyTxnValue | decimal number |
None. |
|
| MaxMonthlyTxnValue | decimal number |
None. |
|
| DailyVelocity | decimal number |
None. |
|
| WeeklyVelocity | decimal number |
None. |
|
| MonthlyVelocity | decimal number |
None. |
|
| MerchantWhiteListId | integer |
None. |
|
| MerchantBlackListId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"SpendProfileId": 1,
"ProfileName": "sample string 2",
"MaxSingleTxnValue": 1.1,
"MaxDailyTxnTotalValue": 1.1,
"MaxDailyTotalTxns": 1.1,
"MinSingleTxnValue": 1.1,
"MaxSpend4Days": 1.1,
"MaxTotalTxns4Days": 1.1,
"MaxWeeklyTxnValue": 1.1,
"MaxMonthlyTxnValue": 1.1,
"DailyVelocity": 1.1,
"WeeklyVelocity": 1.1,
"MonthlyVelocity": 1.1,
"MerchantWhiteListId": 1,
"MerchantBlackListId": 1
}
application/xml, text/xml
Sample:
<SpendProfileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Product"> <DailyVelocity>1.1</DailyVelocity> <MaxDailyTotalTxns>1.1</MaxDailyTotalTxns> <MaxDailyTxnTotalValue>1.1</MaxDailyTxnTotalValue> <MaxMonthlyTxnValue>1.1</MaxMonthlyTxnValue> <MaxSingleTxnValue>1.1</MaxSingleTxnValue> <MaxSpend4Days>1.1</MaxSpend4Days> <MaxTotalTxns4Days>1.1</MaxTotalTxns4Days> <MaxWeeklyTxnValue>1.1</MaxWeeklyTxnValue> <MerchantBlackListId>1</MerchantBlackListId> <MerchantWhiteListId>1</MerchantWhiteListId> <MinSingleTxnValue>1.1</MinSingleTxnValue> <MonthlyVelocity>1.1</MonthlyVelocity> <ProfileName>sample string 2</ProfileName> <SpendProfileId>1</SpendProfileId> <WeeklyVelocity>1.1</WeeklyVelocity> </SpendProfileModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SpendProfileResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SpendProfile | SpendProfileModel |
None. |
|
| IsSuccess | boolean |
Required |
|
| ErrorCodes | Collection of string |
Required |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"SpendProfile": {
"SpendProfileId": 1,
"ProfileName": "sample string 2",
"MaxSingleTxnValue": 1.1,
"MaxDailyTxnTotalValue": 1.1,
"MaxDailyTotalTxns": 1.1,
"MinSingleTxnValue": 1.1,
"MaxSpend4Days": 1.1,
"MaxTotalTxns4Days": 1.1,
"MaxWeeklyTxnValue": 1.1,
"MaxMonthlyTxnValue": 1.1,
"DailyVelocity": 1.1,
"WeeklyVelocity": 1.1,
"MonthlyVelocity": 1.1,
"MerchantWhiteListId": 1,
"MerchantBlackListId": 1
},
"IsSuccess": true,
"ErrorCodes": [
"sample string 1",
"sample string 2"
],
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<SpendProfileResponseModel 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>
<SpendProfile>
<DailyVelocity>1.1</DailyVelocity>
<MaxDailyTotalTxns>1.1</MaxDailyTotalTxns>
<MaxDailyTxnTotalValue>1.1</MaxDailyTxnTotalValue>
<MaxMonthlyTxnValue>1.1</MaxMonthlyTxnValue>
<MaxSingleTxnValue>1.1</MaxSingleTxnValue>
<MaxSpend4Days>1.1</MaxSpend4Days>
<MaxTotalTxns4Days>1.1</MaxTotalTxns4Days>
<MaxWeeklyTxnValue>1.1</MaxWeeklyTxnValue>
<MerchantBlackListId>1</MerchantBlackListId>
<MerchantWhiteListId>1</MerchantWhiteListId>
<MinSingleTxnValue>1.1</MinSingleTxnValue>
<MonthlyVelocity>1.1</MonthlyVelocity>
<ProfileName>sample string 2</ProfileName>
<SpendProfileId>1</SpendProfileId>
<WeeklyVelocity>1.1</WeeklyVelocity>
</SpendProfile>
</SpendProfileResponseModel>