24/7 Support: 800.608.6482

Navigation


Option_Set_Default

This function sets a default option for a product attribute.

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:
Option Set Default
The name of the function
option_id Type:
Number
Title:
Option Id
The id number of the option to be set as default.
option_default Type:
Boolean
Title:
Option Default
Boolean value indicating if the option is set to default

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-JSN-PRD-00031
error message:
Option not found
description:
Option not found

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.