POST v1/admin/company/{id}/ShoppingCarts/Items/SubscriptionGeneralProduct
Adds a subscription general product to the cart.
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| id | integer | Required | 
Body Parameters
Collection of adminAddSubscriptionGeneralProductInput| Name | Description | Type | Additional information | 
|---|---|---|---|
| productId | integer | Required | |
| subscriberId | integer | Required | |
| autoRenew | boolean | None. | 
Request Formats
application/json, text/json
[
  {
    "productId": 1,
    "subscriberId": 2,
    "autoRenew": true
  },
  {
    "productId": 1,
    "subscriberId": 2,
    "autoRenew": true
  }
]
        text/html
[{"productId":1,"subscriberId":2,"autoRenew":true},{"productId":1,"subscriberId":2,"autoRenew":true}]
        application/xml, text/xml
<ArrayOfv1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_adminCarts_adminShoppingCartEndpoint">
  <v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductInput>
    <autoRenew>true</autoRenew>
    <productId>1</productId>
    <subscriberId>2</subscriberId>
  </v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductInput>
  <v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductInput>
    <autoRenew>true</autoRenew>
    <productId>1</productId>
    <subscriberId>2</subscriberId>
  </v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductInput>
</ArrayOfv1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductInput>
        application/x-www-form-urlencoded
Response Information
Resource Description
Collection of adminAddSubscriptionGeneralProductOutput| Name | Description | Type | Additional information | 
|---|---|---|---|
| id | The ID for this item in the cart. | integer | None. | 
| parentproductId | The ParentID of the product for this item in the cart. | integer | None. | 
| parentId | If this item is part of a kit or a group, this is the parent item it belongs to. | integer | None. | 
| productId | The ID of the product for this item in the cart. | integer | None. | 
| isSubscription | Indicates if the product is a subscription product. | boolean | None. | 
| quantity | Quantity will be only have a non-zero fractional part for subscription items. This depends on how the subscription product is processed. In most circumstances the fractional part will be zero. | decimal number | None. | 
| price | The unit price for this line item in the cart. | decimal number | None. | 
| discount | The percentage discount that should be taken off the order line price for each item. | decimal number | None. | 
| productName | The name of the product. | string | None. | 
| webName | The web name of the product. | string | None. | 
| description | The product description. | string | None. | 
| productType | The type of product this is. | string | None. | 
| additionalDetails | The URL to retrieve or update additional details about this product in the cart. | URI | None. | 
| totalDiscount | The total discount applied for this product in the cart. | decimal number | None. | 
| totalFinalPrice | The final price user pays for this product in the cart. | decimal number | None. | 
| autoRenew | boolean | None. | 
Response Formats
application/json, text/json
[
  {
    "id": 1,
    "parentproductId": 2,
    "parentId": 3,
    "productId": 4,
    "isSubscription": true,
    "quantity": 6.0,
    "price": 7.0,
    "discount": 8.0,
    "productName": "sample string 9",
    "webName": "sample string 10",
    "description": "sample string 11",
    "productType": "sample string 12",
    "additionalDetails": "http://webapihelppage13.com",
    "totalDiscount": 14.0,
    "totalFinalPrice": 15.0,
    "autoRenew": true
  },
  {
    "id": 1,
    "parentproductId": 2,
    "parentId": 3,
    "productId": 4,
    "isSubscription": true,
    "quantity": 6.0,
    "price": 7.0,
    "discount": 8.0,
    "productName": "sample string 9",
    "webName": "sample string 10",
    "description": "sample string 11",
    "productType": "sample string 12",
    "additionalDetails": "http://webapihelppage13.com",
    "totalDiscount": 14.0,
    "totalFinalPrice": 15.0,
    "autoRenew": true
  }
]
        text/html
[{"id":1,"parentproductId":2,"parentId":3,"productId":4,"isSubscription":true,"quantity":6.0,"price":7.0,"discount":8.0,"productName":"sample string 9","webName":"sample string 10","description":"sample string 11","productType":"sample string 12","additionalDetails":"http://webapihelppage13.com","totalDiscount":14.0,"totalFinalPrice":15.0,"autoRenew":true},{"id":1,"parentproductId":2,"parentId":3,"productId":4,"isSubscription":true,"quantity":6.0,"price":7.0,"discount":8.0,"productName":"sample string 9","webName":"sample string 10","description":"sample string 11","productType":"sample string 12","additionalDetails":"http://webapihelppage13.com","totalDiscount":14.0,"totalFinalPrice":15.0,"autoRenew":true}]
        application/xml, text/xml
<ArrayOfv1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_adminCarts_adminShoppingCartEndpoint">
  <v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductOutput>
    <additionalDetails>http://webapihelppage13.com/</additionalDetails>
    <autoRenew>true</autoRenew>
    <description>sample string 11</description>
    <discount>8</discount>
    <id>1</id>
    <isSubscription>true</isSubscription>
    <parentId>3</parentId>
    <parentproductId>2</parentproductId>
    <price>7</price>
    <productId>4</productId>
    <productName>sample string 9</productName>
    <productType>sample string 12</productType>
    <quantity>6</quantity>
    <totalDiscount>14</totalDiscount>
    <totalFinalPrice>15</totalFinalPrice>
    <webName>sample string 10</webName>
  </v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductOutput>
  <v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductOutput>
    <additionalDetails>http://webapihelppage13.com/</additionalDetails>
    <autoRenew>true</autoRenew>
    <description>sample string 11</description>
    <discount>8</discount>
    <id>1</id>
    <isSubscription>true</isSubscription>
    <parentId>3</parentId>
    <parentproductId>2</parentproductId>
    <price>7</price>
    <productId>4</productId>
    <productName>sample string 9</productName>
    <productType>sample string 12</productType>
    <quantity>6</quantity>
    <totalDiscount>14</totalDiscount>
    <totalFinalPrice>15</totalFinalPrice>
    <webName>sample string 10</webName>
  </v1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductOutput>
</ArrayOfv1_Admin_adminCarts_adminShoppingCartEndpointController.adminAddSubscriptionGeneralProductOutput>