24/7 Support: 800.608.6482

Navigation


QuoteItem_Update

This function updates an item in a quote.

Quote may be specified using one of Quote_ID, Edit_Quote, or Quote_Code. Only one indentifier is needed.

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:
Module
For module level functions this parameter will always have the value "Module"
module_code Type:
String
Title:
Quote
The module code will always have the value "quote" for this function
module_function Type:
String
Title:
Module_Function
Specifies the function being executed, in this case "QuoteItem_Update"
quote_id Type:
Number
Title:
Quote Id
The id number of the quote to be updated
line_id Type:
Number
Title:
Quote Line ID
The line_id number of the item to be updated
code Type:
String
Title:
Product Code
Updated product_code of the item
name Type:
String
Title:
Product Name
Updated product name of the item
sku Type:
String
Title:
Product SKU
Updated product sku number of the item
quantity Type:
Number
Title:
Product Quote Quantity
The new quantity of the item in the quote
price Type:
Number
Title:
Product Price
The updated price of the item in the quote
weight Type:
Number
Title:
Product Weight
Updated product weight of the item in the quote
taxable Type:
Boolean
Title:
Product Taxable Status
The taxable status of the item in the quote
attributes
+ Show Properties
Type:
Object
Title:
Attributes
attribute options
attr_id Type:
Number
Title:
Attribute ID
Item Attribute ID
attmpat_id Type:
Number
Title:
Attribute Template ID
Attribute Template ID
attr_code Type:
String
Title:
Attribute Code
Item Attribute Code
opt_code_or_data Type:
String
Title:
Product Option Code or Data
Product option code or additional product data
price Type:
Number
Title:
Product Attribute Price
Product Attribute Price
weight Type:
Number
Title:
Product Attribute Weight
weight

Response Parameters

success Type:
Boolean
Title:
Status Response
Boolean value indicating if the api request was successful
total Type:
Number
Title:
Quote Total
total
formatted_total Type:
String
Title:
Currency Formatted Total
formatted total

Example Request

Example Response

Error Responses

error code:
MER-UTL-QUOTES-00343
error message:
Quote not found
description:
Quote not found
error code:
MER-UTL-QUOTES-00346
error message:
Unable to load quote: One of Quote_ID, Edit_Quote, or Quote_Code must be specified
description:
Unable to load quote
error code:
MER-JSN-00023
error message:
One or more parameters are invalid
description:
Missing line_id(s) parameter
error code:
MER-UTL-QUOTES-00150
error message:
This quote has already been purchased, you can no longer modify items
description:
Quote not eligible for update

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.