24/7 Support: 800.608.6482

Navigation


QuoteItem_Add

This function adds an item to 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_Add"
quote_id Type:
Number
Title:
Quote Id
the id number of the quote
code Type:
String
Title:
Product Code
product code for the item to be added
name Type:
String
Title:
Product Name
product name for the item
sku Type:
String
Title:
Product SKU
product sku number of the item
quantity Type:
Number
Title:
Product Quote Quantity
quantity of the item to be added
price Type:
Number
Title:
Product Price
product price of the item
weight Type:
Number
Title:
Product Weight
product weight of the item
taxable Type:
Boolean
Title:
Product Taxable Status
The taxable status of the item
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

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