Update order
Updates an order that is in checkout state. Use this to set or modify line items,
contact information, and shipping address. Requires admin scope.
The returned order includes btc:web_checkout and btc:web_cart links for directing
customers to complete payment.
Line item tips:
- Pass
units: -1to remove a line item - Contact is matched by
email; new contacts requirenameandphone_numbertoo
/shops/{shop_id}/orders/{code}AuthorizationBearer token (JWT) · headerrequiredOAuth 2.0 Bearer token. Obtain via POST https://auth.onbolder.com/oauth/token.
adminshop_idstringrequiredShop ID or subdomain
codestringrequiredOrder code or ID
application/jsonline_itemsLineItemInput[]Pass units: -1 to remove a variant from the order
Show propertiesHide properties
LineItemInputvariant_idintegerrequiredunitsintegerrequiredNumber of units. Pass -1 to remove this variant from the order.
contactContactInputShow propertiesHide properties
emailstringrequiredUsed to look up an existing contact. Required.
namestringRequired for new contacts
phone_numberstringRequired for new contacts
companystringaddressobjectShow propertiesHide properties
idintegerCopy address attributes from an existing address ID
Order updated
idintegershop_idintegercodestringstatusstringcheckoutpendingclosedshippedinvalidnet_totalintegerOrder subtotal in cents (before shipping/discounts)
totalintegerFinal total in cents
shipping_totalintegershipping_descriptionstringdiscount_totalintegertracking_codestring | nullcourier_namestring | nulltotal_weight_in_gramsintegercreated_onstring<date-time>updated_onstring<date-time>pending_onstring<date-time> | nullclosed_onstring<date-time> | nullshipped_onstring<date-time> | nullfulfillmentobjectShow propertiesHide properties
fulfillment_methodstringshippingpickuppayment_infoobjectShow propertiesHide properties
typestringnamestringauth_codestringtransaction_idstring_linksobject_embeddedobjectShow propertiesHide properties
contactContactSummaryShow propertiesHide properties
idintegernamestringemailstringphone_numberstringaddressAddressShow propertiesHide properties
streetstringstreet_2stringlocality_namestringregion_namestringcountry_namestringcountry_codestringpostal_codestring | nulllat_longstringLatitude,longitude pair
line_itemsLineItem[]Show propertiesHide properties
LineItemproduct_idintegerproduct_titlestringunit_priceintegerunitsintegerdiscount_totalintegernet_totalintegertotalintegervariant_idintegervariant_titlestringvariant_skustringweight_in_gramsintegerpromotionPromotionShow propertiesHide properties
namestringdiscountintegerdiscount_typestring$%free_shippingbooleandiscountsobject[]Validation errors
_classstring[]_embeddedobjectShow propertiesHide properties
errorsobject[]Show propertiesHide properties
object_classstring[]fieldstringmessagesstring[]