GET api/WebApiOdata/GetMyAccountAllotmentSetByShopperID?shopperID={shopperID}&providerID={providerID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopperID

integer

Required

providerID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of AllotmentSetViewModel
NameDescriptionTypeAdditional information
SCProductID

integer

None.

AllotmentSetID

integer

None.

ProductName

string

None.

Allotment

integer

None.

CurrentAllotment

integer

None.

NextRenewalDate

date

None.

ProductUrl

string

None.

AllotmentSetName

string

None.

ProductSetID

integer

None.

ProductsAllotmentSetViewModel

Collection of ProductsAllotmentViewModel

None.

NextRenewalDateString

string

None.

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "SCProductID": 1,
    "AllotmentSetID": 2,
    "ProductName": "sample string 3",
    "Allotment": 4,
    "CurrentAllotment": 5,
    "NextRenewalDate": "9/19/2024",
    "ProductUrl": "sample string 6",
    "AllotmentSetName": "sample string 7",
    "ProductSetID": 1,
    "ProductsAllotmentSetViewModel": [
      {
        "SCProductID": 1,
        "ProductName": "sample string 2",
        "ProductUrl": "sample string 3"
      },
      {
        "SCProductID": 1,
        "ProductName": "sample string 2",
        "ProductUrl": "sample string 3"
      }
    ],
    "NextRenewalDateString": "9/19/2024"
  },
  {
    "SCProductID": 1,
    "AllotmentSetID": 2,
    "ProductName": "sample string 3",
    "Allotment": 4,
    "CurrentAllotment": 5,
    "NextRenewalDate": "9/19/2024",
    "ProductUrl": "sample string 6",
    "AllotmentSetName": "sample string 7",
    "ProductSetID": 1,
    "ProductsAllotmentSetViewModel": [
      {
        "SCProductID": 1,
        "ProductName": "sample string 2",
        "ProductUrl": "sample string 3"
      },
      {
        "SCProductID": 1,
        "ProductName": "sample string 2",
        "ProductUrl": "sample string 3"
      }
    ],
    "NextRenewalDateString": "9/19/2024"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAllotmentSetViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.Products">
  <AllotmentSetViewModel>
    <Allotment>4</Allotment>
    <AllotmentSetID>2</AllotmentSetID>
    <AllotmentSetName>sample string 7</AllotmentSetName>
    <CurrentAllotment>5</CurrentAllotment>
    <NextRenewalDate>2024-09-19T08:38:19.5696399+00:00</NextRenewalDate>
    <ProductName>sample string 3</ProductName>
    <ProductSetID>1</ProductSetID>
    <ProductUrl>sample string 6</ProductUrl>
    <ProductsAllotmentSetViewModel>
      <ProductsAllotmentViewModel>
        <ProductName>sample string 2</ProductName>
        <ProductUrl>sample string 3</ProductUrl>
        <SCProductID>1</SCProductID>
      </ProductsAllotmentViewModel>
      <ProductsAllotmentViewModel>
        <ProductName>sample string 2</ProductName>
        <ProductUrl>sample string 3</ProductUrl>
        <SCProductID>1</SCProductID>
      </ProductsAllotmentViewModel>
    </ProductsAllotmentSetViewModel>
    <SCProductID>1</SCProductID>
  </AllotmentSetViewModel>
  <AllotmentSetViewModel>
    <Allotment>4</Allotment>
    <AllotmentSetID>2</AllotmentSetID>
    <AllotmentSetName>sample string 7</AllotmentSetName>
    <CurrentAllotment>5</CurrentAllotment>
    <NextRenewalDate>2024-09-19T08:38:19.5696399+00:00</NextRenewalDate>
    <ProductName>sample string 3</ProductName>
    <ProductSetID>1</ProductSetID>
    <ProductUrl>sample string 6</ProductUrl>
    <ProductsAllotmentSetViewModel>
      <ProductsAllotmentViewModel>
        <ProductName>sample string 2</ProductName>
        <ProductUrl>sample string 3</ProductUrl>
        <SCProductID>1</SCProductID>
      </ProductsAllotmentViewModel>
      <ProductsAllotmentViewModel>
        <ProductName>sample string 2</ProductName>
        <ProductUrl>sample string 3</ProductUrl>
        <SCProductID>1</SCProductID>
      </ProductsAllotmentViewModel>
    </ProductsAllotmentSetViewModel>
    <SCProductID>1</SCProductID>
  </AllotmentSetViewModel>
</ArrayOfAllotmentSetViewModel>