Request Parameters:


This method allows to get product attribute validation rules


URL  for nopCommerce 4.20 : 

Api/Admin/GetProductById


Headers :

Content-Type : application/json


Parameter:  Required [Id]
{
       "ApiSecretKey" :"k104r106p102g98k116q107x114x118" ,
       "RestAPIAdminAccessKey" :"4fbdf629-be68-4371-a81d-4b191c98a52e",
      "Id":"3"
}

 Response :
{

    "PictureThumbnailUrl": null,

    "ProductTypeId": 5,

    "ProductTypeName": null,

    "AssociatedToProductId": 13,

    "AssociatedToProductName": "Nikon D5500 DSLR",

    "VisibleIndividually": true,

    "ProductTemplateId": 1,

    "AvailableProductTemplates": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Simple product",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Grouped product (with variants)",

            "Value": "2"

        }

    ],

    "ProductsTypesSupportedByProductTemplates": {

        "5": [

            {

                "Disabled": false,

                "Group": null,

                "Selected": false,

                "Text": "Simple product",

                "Value": "1"

            }

        ],

        "10": [

            {

                "Disabled": false,

                "Group": null,

                "Selected": false,

                "Text": "Grouped product (with variants)",

                "Value": "2"

            }

        ]

    },

    "Name": "Lenovo IdeaCentre 600 All-in-One PC",

    "ShortDescription": "",

    "FullDescription": "<p>The A600 features a 21.5in screen, DVD or optional Blu-Ray drive, support for the full beans 1920 x 1080 HD, Dolby Home Cinema certification and an optional hybrid analogue/digital TV tuner.</p><p>Connectivity is handled by 802.11a/b/g - 802.11n is optional - and an ethernet port. You also get four USB ports, a Firewire slot, a six-in-one card reader and a 1.3- or two-megapixel webcam.</p>",

    "AdminComment": null,

    "ShowOnHomepage": false,

    "MetaKeywords": null,

    "MetaDescription": null,

    "MetaTitle": null,

    "SeName": "lenovo-ideacentre-600-all-in-one-pc",

    "AllowCustomerReviews": true,

    "ProductTags": "awesome, computer",

    "InitialProductTags": "var initialProductTags = ['apparel','awesome','book','camera','cell','compact','computer','cool','digital','game','gift','jeans','jewelry','nice','shirt','shoes']",

    "Sku": "LE_IC_600",

    "ManufacturerPartNumber": null,

    "Gtin": null,

    "IsGiftCard": false,

    "GiftCardTypeId": 0,

    "OverriddenGiftCardAmount": null,

    "RequireOtherProducts": false,

    "RequiredProductIds": null,

    "AutomaticallyAddRequiredProducts": false,

    "IsDownload": false,

    "DownloadId": 0,

    "UnlimitedDownloads": false,

    "MaxNumberOfDownloads": 0,

    "DownloadExpirationDays": null,

    "DownloadActivationTypeId": 0,

    "HasSampleDownload": false,

    "SampleDownloadId": 0,

    "HasUserAgreement": false,

    "UserAgreementText": null,

    "IsRecurring": false,

    "RecurringCycleLength": 0,

    "RecurringCyclePeriodId": 0,

    "RecurringTotalCycles": 0,

    "IsRental": false,

    "RentalPriceLength": 0,

    "RentalPricePeriodId": 0,

    "IsShipEnabled": true,

    "IsFreeShipping": false,

    "ShipSeparately": false,

    "AdditionalShippingCharge": 0.0000,

    "DeliveryDateId": 0,

    "AvailableDeliveryDates": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "None",

            "Value": "0"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "1-2 days",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "3-5 days",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "1 week",

            "Value": "3"

        }

    ],

    "IsTaxExempt": false,

    "TaxCategoryId": 2,

    "AvailableTaxCategories": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "[None]",

            "Value": "0"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Books",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Electronics & Software",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Downloadable Products",

            "Value": "3"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Jewelry",

            "Value": "4"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Apparel",

            "Value": "5"

        }

    ],

    "IsTelecommunicationsOrBroadcastingOrElectronicServices": false,

    "ManageInventoryMethodId": 1,

    "ProductAvailabilityRangeId": 0,

    "AvailableProductAvailabilityRanges": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "None",

            "Value": "0"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "2-4 days",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "7-10 days",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "2 week",

            "Value": "3"

        }

    ],

    "UseMultipleWarehouses": false,

    "WarehouseId": 0,

    "AvailableWarehouses": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "None",

            "Value": "0"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Warehouse 1 (New York)",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Warehouse 2 (Los Angeles)",

            "Value": "2"

        }

    ],

    "StockQuantity": 10000,

    "LastStockQuantity": 10000,

    "StockQuantityStr": null,

    "DisplayStockAvailability": true,

    "DisplayStockQuantity": false,

    "MinStockQuantity": 0,

    "LowStockActivityId": 1,

    "NotifyAdminForQuantityBelow": 1,

    "BackorderModeId": 0,

    "AllowBackInStockSubscriptions": false,

    "OrderMinimumQuantity": 1,

    "OrderMaximumQuantity": 10000,

    "AllowedQuantities": null,

    "AllowAddingOnlyExistingAttributeCombinations": false,

    "NotReturnable": false,

    "DisableBuyButton": false,

    "DisableWishlistButton": false,

    "AvailableForPreOrder": false,

    "PreOrderAvailabilityStartDateTimeUtc": null,

    "CallForPrice": false,

    "Price": 500.0000,

    "OldPrice": 0.0000,

    "ProductCost": 0.0000,

    "CustomerEntersPrice": false,

    "MinimumCustomerEnteredPrice": 0.0000,

    "MaximumCustomerEnteredPrice": 0.0000,

    "BasepriceEnabled": false,

    "BasepriceAmount": 0.0000,

    "BasepriceUnitId": 0,

    "AvailableBasepriceUnits": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "ounce(s)",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "lb(s)",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "kg(s)",

            "Value": "3"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "gram(s)",

            "Value": "4"

        }

    ],

    "BasepriceBaseAmount": 0.0000,

    "BasepriceBaseUnitId": 0,

    "AvailableBasepriceBaseUnits": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "ounce(s)",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "lb(s)",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "kg(s)",

            "Value": "3"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "gram(s)",

            "Value": "4"

        }

    ],

    "MarkAsNew": false,

    "MarkAsNewStartDateTimeUtc": null,

    "MarkAsNewEndDateTimeUtc": null,

    "Weight": 7.0000,

    "Length": 7.0000,

    "Width": 7.0000,

    "Height": 7.0000,

    "AvailableStartDateTimeUtc": null,

    "AvailableEndDateTimeUtc": null,

    "DisplayOrder": 0,

    "Published": true,

    "PrimaryStoreCurrencyCode": "USD",

    "BaseDimensionIn": "inch(es)",

    "BaseWeightIn": "lb(s)",

    "Locales": [

        {

            "LanguageId": 1,

            "Name": null,

            "ShortDescription": null,

            "FullDescription": null,

            "MetaKeywords": null,

            "MetaDescription": null,

            "MetaTitle": null,

            "SeName": ""

        }

    ],

    "SelectedCustomerRoleIds": [],

    "AvailableCustomerRoles": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Administrators",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Forum Moderators",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Guests",

            "Value": "4"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Registered",

            "Value": "3"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Vendors",

            "Value": "5"

        }

    ],

    "SelectedStoreIds": [],

    "AvailableStores": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "myStore",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Your store name",

            "Value": "1"

        }

    ],

    "SelectedCategoryIds": [

        2

    ],

    "AvailableCategories": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Computers",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": true,

            "Text": "Computers >> Desktops",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Computers >> Notebooks",

            "Value": "3"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Computers >> Software",

            "Value": "4"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Electronics",

            "Value": "5"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Electronics >> Camera & photo",

            "Value": "6"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Electronics >> Cell phones",

            "Value": "7"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Electronics >> Others",

            "Value": "8"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Apparel",

            "Value": "9"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Apparel >> Shoes",

            "Value": "10"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Apparel >> Clothing",

            "Value": "11"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Apparel >> Accessories",

            "Value": "12"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Digital downloads",

            "Value": "13"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Books",

            "Value": "14"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Jewelry",

            "Value": "15"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Gift Cards",

            "Value": "16"

        }

    ],

    "SelectedManufacturerIds": [],

    "AvailableManufacturers": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Apple",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "HP",

            "Value": "2"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Nike",

            "Value": "3"

        }

    ],

    "VendorId": 0,

    "AvailableVendors": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "No vendor",

            "Value": "0"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Vendor 1",

            "Value": "1"

        },

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Vendor 2",

            "Value": "2"

        }

    ],

    "SelectedDiscountIds": [],

    "AvailableDiscounts": [

        {

            "Disabled": false,

            "Group": null,

            "Selected": false,

            "Text": "Sample discount with coupon code",

            "Value": "1"

        }

    ],

    "IsLoggedInAsVendor": false,

    "AddPictureModel": {

        "ProductId": 0,

        "PictureId": 0,

        "PictureUrl": null,

        "DisplayOrder": 0,

        "OverrideAltAttribute": null,

        "OverrideTitleAttribute": null,

        "Id": 0,

        "CustomProperties": {}

    },

    "ProductPictureModels": [],

    "ProductAttributesExist": true,

    "CanCreateCombinations": false,

    "ProductWarehouseInventoryModels": [

        {

            "WarehouseId": 1,

            "WarehouseName": "Warehouse 1 (New York)",

            "WarehouseUsed": false,

            "StockQuantity": 0,

            "ReservedQuantity": 0,

            "PlannedQuantity": 0,

            "CustomProperties": {}

        },

        {

            "WarehouseId": 2,

            "WarehouseName": "Warehouse 2 (Los Angeles)",

            "WarehouseUsed": false,

            "StockQuantity": 0,

            "ReservedQuantity": 0,

            "PlannedQuantity": 0,

            "CustomProperties": {}

        }

    ],

    "HasAvailableSpecificationAttributes": true,

    "CopyProductModel": {

        "Name": "Lenovo IdeaCentre 600 All-in-One PC - copy",

        "CopyImages": true,

        "Published": true,

        "Id": 3,

        "CustomProperties": {}

    },

    "ProductEditorSettingsModel": {

        "ActiveStoreScopeConfiguration": 0,

        "ProductType": false,

        "VisibleIndividually": false,

        "ProductTemplate": false,

        "AdminComment": false,

        "Vendor": false,

        "Stores": false,

        "ACL": false,

        "ShowOnHomepage": false,

        "AllowCustomerReviews": false,

        "ProductTags": false,

        "ManufacturerPartNumber": false,

        "GTIN": false,

        "ProductCost": false,

        "TierPrices": false,

        "Discounts": false,

        "DisableBuyButton": false,

        "DisableWishlistButton": false,

        "AvailableForPreOrder": false,

        "CallForPrice": false,

        "OldPrice": false,

        "CustomerEntersPrice": false,

        "PAngV": false,

        "RequireOtherProductsAddedToCart": false,

        "IsGiftCard": false,

        "DownloadableProduct": false,

        "RecurringProduct": false,

        "IsRental": false,

        "FreeShipping": false,

        "ShipSeparately": false,

        "AdditionalShippingCharge": false,

        "DeliveryDate": false,

        "TelecommunicationsBroadcastingElectronicServices": false,

        "ProductAvailabilityRange": false,

        "UseMultipleWarehouses": false,

        "Warehouse": false,

        "DisplayStockAvailability": false,

        "MinimumStockQuantity": false,

        "LowStockActivity": false,

        "NotifyAdminForQuantityBelow": false,

        "Backorders": false,

        "AllowBackInStockSubscriptions": false,

        "MinimumCartQuantity": false,

        "MaximumCartQuantity": false,

        "AllowedQuantities": false,

        "AllowAddingOnlyExistingAttributeCombinations": false,

        "NotReturnable": false,

        "Weight": true,

        "Dimensions": true,

        "AvailableStartDate": false,

        "AvailableEndDate": false,

        "MarkAsNew": false,

        "Published": false,

        "RelatedProducts": false,

        "CrossSellsProducts": false,

        "Seo": false,

        "PurchasedWithOrders": false,

        "ProductAttributes": true,

        "SpecificationAttributes": true,

        "Manufacturers": false,

        "StockQuantityHistory": false,

        "CustomProperties": {}

    },

    "StockQuantityHistory": {

        "WarehouseName": null,

        "AttributeCombination": null,

        "QuantityAdjustment": 0,

        "StockQuantity": 0,

        "Message": null,

        "CreatedOn": "0001-01-01T00:00:00",

        "Id": 0,

        "CustomProperties": {}

    },

    "RelatedProductSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "CrossSellProductSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "AssociatedProductSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "ProductPictureSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "ProductSpecificationAttributeSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "ProductOrderSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "TierPriceSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "StockQuantityHistorySearchModel": {

        "ProductId": 3,

        "WarehouseId": 0,

        "AvailableWarehouses": [

            {

                "Disabled": false,

                "Group": null,

                "Selected": false,

                "Text": "All",

                "Value": "0"

            },

            {

                "Disabled": false,

                "Group": null,

                "Selected": false,

                "Text": "Warehouse 1 (New York)",

                "Value": "1"

            },

            {

                "Disabled": false,

                "Group": null,

                "Selected": false,

                "Text": "Warehouse 2 (Los Angeles)",

                "Value": "2"

            }

        ],

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "ProductAttributeMappingSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "ProductAttributeCombinationSearchModel": {

        "ProductId": 3,

        "Page": 1,

        "PageSize": 15,

        "AvailablePageSizes": "7, 15, 20, 50, 100",

        "Draw": null,

        "Start": 0,

        "Length": 15,

        "CustomProperties": {}

    },

    "Id": 3,

    "CustomProperties": {}

}