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,
          "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",
          "RecurringBillingInd": true,
          "RecurringBillingInstallmentInd": true,
          "RecurringBillingPeriod": "sample string 16",
          "RecurringBillingFrequency": "sample string 17",
          "RecurringBillingTotalCycles": 18,
          "RecurringBillingInitialAmount": 1.0,
          "ReOrderLevel": 1,
          "UpdateDate": "2018-10-19T01:13:24.8593459-04:00"
        },
        {
          "$ref": "4"
        },
        {
          "$ref": "4"
        }
      ]
    },
    "IsAssociatedAddOnValue": true,
    "AddOnValueName": "sample string 19",
    "UserName": "sample string 20"
  },
  {
    "$ref": "2"
  },
  {
    "$ref": "2"
  }
]