POST api/cardService/v1/product/merchantListItem
Request Information
URI Parameters
None.
Body Parameters
CreateMerchantListItemRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MerchantListId | integer |
None. |
|
| MerchantListItem | MerchantListItemModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"MerchantListId": 1,
"MerchantListItem": {
"Id": 1,
"MerchantName": "sample string 2",
"MerchantId": "sample string 3"
}
}
application/xml, text/xml
Sample:
<CreateMerchantListItemRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Product">
<MerchantListId>1</MerchantListId>
<MerchantListItem>
<Id>1</Id>
<MerchantId>sample string 3</MerchantId>
<MerchantName>sample string 2</MerchantName>
</MerchantListItem>
</CreateMerchantListItemRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MerchantListItemResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| MerchantName | string |
None. |
|
| MerchantId | string |
None. |
|
| IsSuccess | boolean |
Required |
|
| ErrorCodes | Collection of string |
Required |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"MerchantName": "sample string 2",
"MerchantId": "sample string 3",
"IsSuccess": true,
"ErrorCodes": [
"sample string 1",
"sample string 2"
],
"Message": "sample string 5"
}
application/xml, text/xml
Sample:
<MerchantListItemResponseModel 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 5</Message>
<Id>1</Id>
<MerchantId>sample string 3</MerchantId>
<MerchantName>sample string 2</MerchantName>
</MerchantListItemResponseModel>