24/7 Support: 800.608.6482

Get Started

Navigation


OrderItem_Update

This function allows you to update an item (product) which is part of an order

All fields except Order_ID and Line_ID are optional

Request Body Parameters

order_id Type:
Number
Title:
Order Id
Order Id to add item to
line_id Type:
Number
Title:
Line Id
The line_id is the id of the line item in the order. This value is retured in OrderList_Load_Query
code Type:
String
Title:
Product Code
Product Code to Add (this does not need to exist as a product in Miva's Database)
name Type:
String
Title:
Product Name
Product Name
sku Type:
String
Title:
Product SKU
Product SKU
quantity Type:
Number
Title:
Quantity
Product Quantity
weight Type:
Number
Title:
Weight
Weight
Taxable Type:
Boolean
Title:
Taxable
Taxable
attributes
+ Show Properties
Type:
Object
Title:
attributes
Attributes
attr_code Type:
Number
Title:
Attribute Code
Attribute Code
opt_code_or_data Type:
String
Title:
Option Code/Data
Option Code/Data
price Type:
Number
Title:
Price
Price
weight Type:
Number
Title:
Weight
Weight

Response Parameters

total Type:
Number
Title:
Order Total
Order Total after new item has been added.
formatted_total Type:
String
Title:
Formatted Order Total
Currenty Formatted Order Total

Example Request

Example Response

Error Responses

error code
MER-JSN-ORD-00025
error message
Order not found
  Order number not found.
error code
MER-JSN-00023
error message
One or more parameters are invalid
  Missing required line_id parameter
error code
EOF
error message
Record not found: MER-DBP-OIT-00007
  line_id passed is not valid

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 – 2019 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.