Znode

POST associateaddon

Associate specified addons with current product.

Request Information

» Parameters

Name Description Additional information
models

Define this parameter in the request body.

Request Body Formats

Sample:
	[
  {
    "$id": "2",
    "AccountId": 1,
    "AddOnId": 1,
    "AllowBackOrder": true,
    "BackOrderMessage": "sample string 3",
    "Description": "sample string 4",
    "DisplayOrder": 5,
    "DisplayType": "sample string 6",
    "ExternalApiId": "sample string 7",
    "ExternalId": 1,
    "InStockMessage": "sample string 8",
    "IsOptional": true,
    "LocaleId": 10,
    "Name": "sample string 11",
    "OutOfStockMessage": "sample string 12",
    "PortalId": 1,
    "ProductId": 13,
    "PromptMessage": "sample string 14",
    "Title": "sample string 15",
    "TrackInventory": true,
    "ProductAddOnId": 17,
    "AddOnValues": {
      "$id": "3",
      "$values": [
        {
          "$id": "4",
          "AddOnValueId": 1,
          "AddOnId": 2,
          "Name": "sample string 3",
          "Description": "sample string 4",
          "SKU": "sample string 5",
          "IsDefault": true,
          "QuantityOnHand": 7.0,
          "DisplayOrder": 8,
          "RetailPrice": 9.0,
          "SalePrice": 1.0,
          "WholesalePrice": 1.0,
          "Weight": 10.0,
          "Height": 1.0,
          "Width": 1.0,
          "Length": 1.0,
          "ShippingRuleTypeId": 1,
          "FreeShippingInd": true,
          "SupplierId": 1,
          "TaxClassId": 12,
          "CustomText": "sample string 13",
          "CartAddOnDetails": "sample string 14",
          "RecurringBillingInd": true,
          "RecurringBillingInstallmentInd": true,
          "RecurringBillingPeriod": "sample string 17",
          "RecurringBillingFrequency": "sample string 18",
          "RecurringBillingTotalCycles": 19,
          "RecurringBillingInitialAmount": 1.0,
          "ReOrderLevel": 1.0,
          "UpdateDate": "2018-12-12T18:01:13.9205369-08:00"
        },
        {
          "$ref": "4"
        },
        {
          "$ref": "4"
        }
      ]
    },
    "IsAssociatedAddOnValue": true,
    "AddOnValueName": "sample string 19",
    "UserName": "sample string 20",
    "AddOnValueIds": "sample string 21",
    "Quantity": 22.0,
    "Sku": "sample string 23",
    "ProductName": "sample string 24",
    "ProductCode": "sample string 25",
    "Price": 26.0
  },
  {
    "$ref": "2"
  },
  {
    "$ref": "2"
  }
]