POST api/admin/macd/AssignAddon

Request Information

URI Parameters

None.

Body Parameters

AddonAssignDTO
NameDescriptionTypeAdditional information
LocationAccountNumber

string

None.

Addon

AvailableAddonDTO

None.

ServiceList

Collection of AvailableAddonServiceDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationAccountNumber": "sample string 1",
  "Addon": {
    "PartNumber": "sample string 1",
    "PartDescription": "sample string 2",
    "CatalogTicker": "sample string 3",
    "CountAvailable": 1,
    "CountAssigned": 4,
    "CountRemaining": 5
  },
  "ServiceList": [
    {
      "ServiceNumber": "sample string 1",
      "Extension": "sample string 2",
      "IsExtensionOnly": 3,
      "PartNumber": "sample string 4",
      "PartDescription": "sample string 5",
      "CustomerProductId": 6,
      "UserPackageId": 7,
      "CatalogTicker": "sample string 8",
      "LineName": "sample string 9",
      "LineFirstName": "sample string 10",
      "LineLastName": "sample string 11",
      "EndDate": "2024-11-21T04:41:00.9228502-05:00",
      "CustomerId": 12,
      "ParentOfferPackageId": 13,
      "AddOnOfferPackageId": 1,
      "AddonCustomerProductId": 14
    },
    {
      "ServiceNumber": "sample string 1",
      "Extension": "sample string 2",
      "IsExtensionOnly": 3,
      "PartNumber": "sample string 4",
      "PartDescription": "sample string 5",
      "CustomerProductId": 6,
      "UserPackageId": 7,
      "CatalogTicker": "sample string 8",
      "LineName": "sample string 9",
      "LineFirstName": "sample string 10",
      "LineLastName": "sample string 11",
      "EndDate": "2024-11-21T04:41:00.9228502-05:00",
      "CustomerId": 12,
      "ParentOfferPackageId": 13,
      "AddOnOfferPackageId": 1,
      "AddonCustomerProductId": 14
    }
  ]
}

application/xml, text/xml

Sample:
<AddonAssignDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSPApi.DTO.BulkOrder">
  <Addon>
    <CatalogTicker>sample string 3</CatalogTicker>
    <CountAssigned>4</CountAssigned>
    <CountAvailable>1</CountAvailable>
    <CountRemaining>5</CountRemaining>
    <PartDescription>sample string 2</PartDescription>
    <PartNumber>sample string 1</PartNumber>
  </Addon>
  <LocationAccountNumber>sample string 1</LocationAccountNumber>
  <ServiceList>
    <AvailableAddonServiceDTO>
      <AddOnOfferPackageId>1</AddOnOfferPackageId>
      <AddonCustomerProductId>14</AddonCustomerProductId>
      <CatalogTicker>sample string 8</CatalogTicker>
      <CustomerId>12</CustomerId>
      <CustomerProductId>6</CustomerProductId>
      <EndDate>2024-11-21T04:41:00.9228502-05:00</EndDate>
      <Extension>sample string 2</Extension>
      <IsExtensionOnly>3</IsExtensionOnly>
      <LineFirstName>sample string 10</LineFirstName>
      <LineLastName>sample string 11</LineLastName>
      <LineName>sample string 9</LineName>
      <ParentOfferPackageId>13</ParentOfferPackageId>
      <PartDescription>sample string 5</PartDescription>
      <PartNumber>sample string 4</PartNumber>
      <ServiceNumber>sample string 1</ServiceNumber>
      <UserPackageId>7</UserPackageId>
    </AvailableAddonServiceDTO>
    <AvailableAddonServiceDTO>
      <AddOnOfferPackageId>1</AddOnOfferPackageId>
      <AddonCustomerProductId>14</AddonCustomerProductId>
      <CatalogTicker>sample string 8</CatalogTicker>
      <CustomerId>12</CustomerId>
      <CustomerProductId>6</CustomerProductId>
      <EndDate>2024-11-21T04:41:00.9228502-05:00</EndDate>
      <Extension>sample string 2</Extension>
      <IsExtensionOnly>3</IsExtensionOnly>
      <LineFirstName>sample string 10</LineFirstName>
      <LineLastName>sample string 11</LineLastName>
      <LineName>sample string 9</LineName>
      <ParentOfferPackageId>13</ParentOfferPackageId>
      <PartDescription>sample string 5</PartDescription>
      <PartNumber>sample string 4</PartNumber>
      <ServiceNumber>sample string 1</ServiceNumber>
      <UserPackageId>7</UserPackageId>
    </AvailableAddonServiceDTO>
  </ServiceList>
</AddonAssignDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.