Skip to content

AttributeTemplateOptionList_Load_Attribute#


Description#

This function loads a list of attribute options from an attribute template attribute.

Request Parameters#

Parameter
Type Description
AttributeTemplate_id Number The id number of the attribute template being loaded
AttributeTemplateattribute_id Number The id number of the attribute template attribute being loaded

Response Parameters#

Parameter
Type Description
success Number 1 indicating a successful request.
0 indicating an unsuccessful request.
id Number Option ID
attemp_id Number Attribute Template Id
attmpat_id Number Attribute Template Attribute Id
disporder Number Number indicating attribute option display order position
code String Attribute template attribute option code
prompt String The prompt offered for selecting the attribute option
price Number The price of the attribute option
formatted_price String Currency Formatted Attribute Option Retail Price
cost Number The cost of the attribute option
formatted_cost String Currency Formatted Attribute Option Cost
weight Number The weight of the attribute option
image String Filepath for attribute option image

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "AttributeTemplateOptionList_Load_Attribute",
    "AttributeTemplate_ID": 1,
    "AttributeTemplateAttribute_ID": 1
}

Example Response#

{
    "success": 1,
    "data": [
        {
            "id": 1,
            "attemp_id": 1,
            "attmpat_id": 1,
            "disporder": 1,
            "code": "SM",
            "prompt": "small",
            "price": 0.0,
            "formatted_price": "$0.00",
            "cost": 0.0,
            "formatted_cost": "$0.00",
            "weight": 0.0,
            "image": ""
        },
        {
            "id": 2,
            "attemp_id": 1,
            "attmpat_id": 1,
            "disporder": 2,
            "code": "MED",
            "prompt": "medium",
            "price": 0.0,
            "formatted_price": "$0.00",
            "cost": 0.0,
            "formatted_cost": "$0.00",
            "weight": 0.0,
            "image": ""
        },
        {
            "id": 3,
            "attemp_id": 1,
            "attmpat_id": 1,
            "disporder": 3,
            "code": "LG",
            "prompt": "large",
            "price": 0.0,
            "formatted_price": "$0.00",
            "cost": 0.0,
            "formatted_cost": "$0.00",
            "weight": 0.0,
            "image": ""
        },
        {
            "id": 4,
            "attemp_id": 1,
            "attmpat_id": 1,
            "disporder": 4,
            "code": "XL",
            "prompt": "x-large",
            "price": 0.0,
            "formatted_price": "$0.00",
            "cost": 0.0,
            "formatted_cost": "$0.00",
            "weight": 0.0,
            "image": ""
        }
    ]
}

Error Responses#

Error Code Error Message Error Description
MER-UTL-QUOTES-00032 Attribute template not found Attribute template not found