Request Parameters:


Product Attribute change api will give price and image of product as per the selected attribute of product.


URL:  ../Api/Client/Product_AttributeChange


Header:

Content-Type:application/json


Required Parameters :  


Note:

1) AttributeControlIds:product_attribute_ProductId_ProductAttributeId_ProductAttributeMapId_AttributeValueId  

   (Note: When attribute type is textbox, mutiline or fileupload then instead of attributevalueid pass text that you want to add.)


Case-1. Success Response :
Parameter:
{
  "ApiSecretKey": "f120v117p106g101i99w120p118y100",
  "StoreId": 1,
  "CurrencyId": 1,

  "LanguageId": 1,
  "CustomerGUID": "4fe10275-919d-4cbe-bdad-dfa9ea68e5d7",
  "ProductId": 1,
  "Quantity": 1,
  "AttributeControlIds": [ "product_attribute_1_1_1_2", "product_attribute_1_2_1_4,5", "product_attribute_1_4_1_06/15/2015" ],
  "ValidateAttributeConditions": false,
  "LoadPicture": true,
  "RentalStartDate": null,
  "RentalEndDate": null,
  "GiftCardDetails": {
    "RecipientName": null,
    "RecipientEmail": null,
    "SenderName": null,
    "SenderEmail": null,
    "Message": null
  }
}
Response :
{
    "Status": 1,
    "Message": "Success.",
    "Data": {
        "Gtin": null,
        "Mpn": null,
        "Sku": "COMP_CUST",
        "Price": "$1,295.00",
        "Basepricepangv": null,
        "StockAvailability": "In stock",
        "Enabledattributemappingids": [],
        "Disabledattributemappingids": [],
        "PictureFullSizeUrl": "http://localhost:15536/images/thumbs/0000021_build-your-own-computer.jpeg",
        "PictureDefaultSizeUrl": "http://localhost:15536/images/thumbs/0000021_build-your-own-computer_550.jpeg",
        "IsFreeShipping": true,
        "Message": null,
        "CustomerGuid": "4fe10275-919d-4cbe-bdad-dfa9ea68e5d7" 
    },
    "ValidationMessage": [],
    "ErrorMessage": null
}

Case-4. Gift card product :

Parameter:
{
  "ApiSecretKey": "f120v117p106g101i99w120p118y100",
  "StoreId": 1,
  "CurrencyId": 1,

  "LanguageId": 1,
  "CustomerGUID": "4fe10275-919d-4cbe-bdad-dfa9ea68e5d7",
  "ProductId": 43,
  "Quantity": 1,
  "AttributeControlIds": [],
  "ValidateAttributeConditions": false,
  "LoadPicture": true,
  "RentalStartDate": null,
  "RentalEndDate": null,
  "GiftCardDetails": {
    "RecipientName": "Bilal",
    "RecipientEmail": "bilal@yourStore.com",
    "SenderName": "John Smith",
    "SenderEmail": "admin@yourStore.com",
    "Message": "gift from admin"
  }
}

Response :
{
    "Status": 1,
    "Message": "Success.",
    "Data": {
        "Gtin": null,
        "Mpn": null,
        "Sku": "VG_CR_025",
        "Price": "$25.00",
        "Basepricepangv": null,
        "StockAvailability": "",
        "Enabledattributemappingids": [],
        "Disabledattributemappingids": [],
        "PictureFullSizeUrl": "",
        "PictureDefaultSizeUrl": "",
        "IsFreeShipping": false,
        "Message": null,
        "CustomerGuid": "4fe10275-919d-4cbe-bdad-dfa9ea68e5d7"
    },
    "ValidationMessage": [],
    "ErrorMessage": null
}