Documentation

catalog.productImage.getFields

Scope: catalog Permissions to execute: for all

catalog.productImage.getFields()

Method returns product or SKU image fields.

Parameters

No parameters.

Examples

BX24.callMethod(
    'catalog.productImage.getFields', 
    {}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

Returned fields

Field DescriptionTypeNote
createTime Date added. datetime Read only.
detailUrl Image link. string Read only.
downloadUrl Link for download by app, signed by current access_token. string Read only.
id File ID. integer Read only.
name File name. string Read only.
productId Product or SKU ID. string Required field.
type Image type. Can have three values:
  • DETAIL_PICTURE – detailed image;
  • PREVIEW_PICTURE – preview image;
  • MORE_PHOTO – image from "product images" property.
string

© «Bitrix24», 2001-2024
Up