POST api/cardService/v1/product/merchantList

Request Information

URI Parameters

None.

Body Parameters

CreateMerchantListRequestModel
NameDescriptionTypeAdditional information
MerchantListName

string

Required

MerchantListItems

Collection of MerchantListItemModel

None.

Request Formats

application/json, text/json

Sample:
{
  "MerchantListName": "sample string 1",
  "MerchantListItems": [
    {
      "Id": 1,
      "MerchantName": "sample string 2",
      "MerchantId": "sample string 3"
    },
    {
      "Id": 1,
      "MerchantName": "sample string 2",
      "MerchantId": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<CreateMerchantListRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels.Product">
  <MerchantListItems>
    <MerchantListItemModel>
      <Id>1</Id>
      <MerchantId>sample string 3</MerchantId>
      <MerchantName>sample string 2</MerchantName>
    </MerchantListItemModel>
    <MerchantListItemModel>
      <Id>1</Id>
      <MerchantId>sample string 3</MerchantId>
      <MerchantName>sample string 2</MerchantName>
    </MerchantListItemModel>
  </MerchantListItems>
  <MerchantListName>sample string 1</MerchantListName>
</CreateMerchantListRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MerchantListResponseModel
NameDescriptionTypeAdditional information
MerchantList

MerchantListModel

None.

IsSuccess

boolean

Required

ErrorCodes

Collection of string

Required

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "MerchantList": {
    "Id": 1,
    "Name": "sample string 2",
    "MerchantListItems": [
      {
        "Id": 1,
        "MerchantName": "sample string 2",
        "MerchantId": "sample string 3"
      },
      {
        "Id": 1,
        "MerchantName": "sample string 2",
        "MerchantId": "sample string 3"
      }
    ]
  },
  "IsSuccess": true,
  "ErrorCodes": [
    "sample string 1",
    "sample string 2"
  ],
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<MerchantListResponseModel 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>
  <MerchantList>
    <Id>1</Id>
    <MerchantListItems>
      <MerchantListItemModel>
        <Id>1</Id>
        <MerchantId>sample string 3</MerchantId>
        <MerchantName>sample string 2</MerchantName>
      </MerchantListItemModel>
      <MerchantListItemModel>
        <Id>1</Id>
        <MerchantId>sample string 3</MerchantId>
        <MerchantName>sample string 2</MerchantName>
      </MerchantListItemModel>
    </MerchantListItems>
    <Name>sample string 2</Name>
  </MerchantList>
</MerchantListResponseModel>