Set item quantity
POST https://{handle}.myshopline.com/admin/openapi/v20250601/orders/order_edit_set_quantity.json
handle
: The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com
, the store handle is open001
.null
Request Headers
- Content-Type requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
requestobject required
Request bodyid string requiredModify the draft order id , you can edit from call order-start interface return parametersExample:21098923432423423423
line_item_id string requiredProduct row idExample:1
quantity integer requiredQuantityExample:2
restock booleanBack to stock or not
Response
- 200
- 401
- 429
For more information about status codes, see Http status code.
Response Headers
traceId
traceId
Response Body
calculated_line_itemobject
Product information for this editoradded_discount_staged_changeobject
Product line custom discount informationdescription stringDiscount descriptionExample:customized discount
fixed_valueobject
The Discount value of the fixed amount supports two decimal points . the discount is the fixed amount type , which is worthwhileamount stringAmount , two precision double type stringsExample:5.99
currency_code stringCurrencyExample:USD
id stringDiscount idExample:6068787948765604961
percent_value stringPercentage Discount value , two decimal points between 0-1 , such as 0.2=20%off as the discount is the percentage type , this item is worth itExample:0
id stringOrder editing Product line id in draft orderExample:6068787943765994592
original_unit_price_setobject
Original price , no application favorable pricepresentment_moneyobject
Market currency amount informationamount stringValue of amount , 2- bit accuracy stringExample:10.0
currency_code stringCurrencyExample:USD
shop_moneyobject
Store currency amount informationamount stringValue of amount , 2- bit accuracy stringExample:10.0
currency_code stringCurrencyExample:USD
quantity stringQuantityExample:1
required_shipping booleanShipping or notExample:true
taxable booleanTax or not requiredExample:true
title stringProduct titleExample:normal item
variant_id stringProduct skuExample:18057243001210740422372124
calculated_orderobject
Edit order draft order informationcommitted booleanHave submitted save to order or notExample:true
id stringOrder editing draft order idExample:2106068787725276328168095160459272
user_errorsobject[]
Error prompt information of this editor , if there is an error in the execution , it will be return in this field , and the call can be tried again according to the error code ( note : try again and need to start the interface from the order_edit.json order editing to start the whole set ofcode stringThe wrong code , if the implementation result is wrong , it will be return the wrong code through this field , and the call can be tried again according to the wrong code ( note : try again and need to start the interface from the order_edit.json order editing to start the whole set of editing orderExample:UNAUTHORIZED_ACCESS
field arrayThe path to the input field that caused the error. leads to the path of incorrect input fieldsExample:["id"]
message stringError messageExample:param is null
API Explorer
Debugger
Was this article helpful to you?
Error loading component.