24/7 Support: 800.608.6482

Navigation


AttributeTemplateOption_Insert

This function inserts a new attribute option into an attribute template.

Request Parameters

store_code Type:
String
Title:
Store Code
Store code to run the function against. Found in the Miva Admin under Settings > Store Details
function Type:
String
Title:
Attribute Template Option Insert
The name of the function being executed
attributetemplate_id Type:
Number
Title:
Attribute Template Id
The id number of the attribute template
attributetemplateattribute_id Type:
Number
Title:
Attribute Template Attribute Id
The id number of the attribute template attribute
code Type:
String
Title:
Code
Attribute Template attribute code to be inserted
prompt Type:
String
Title:
Attribute Prompt
The prompt to be offered for selecting the inserted attribute
image Type:
String
Title:
Attribute Image
Filepath for attribute image option
price Type:
Number
Title:
Attribute Option Retail Price
The price of the attribute option
cost Type:
Number
Title:
Attribute Option Cost
The cost of the attribute option
weight Type:
Number
Title:
Attribute Option Weight
The weight of the attribute option
default Type:
Boolean
Title:
Attribute Template Option Default
Boolean value indicating if the attribute option is the default selection for the Attribute Template

Response Parameters

success Type:
Boolean
Title:
Status Response
Boolean value indicating if the api request was successful

Example Request

Example Response

Error Responses

error code:
MER-UTL-QUOTES-00032
error message:
Attribute template not found
description:
Attribute template not found

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2021 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.