Update Order

Allows users to update the details of an existing order.

🔒

Requires write_order access scope. More access scope

The Update Order Details API allows users to update the details of an existing order. This includes fields like the order note, tags, buyer marketing preferences, and shipping address.

This API is especially useful for:

  1. Updating order details post-creation.
  2. Modifying customer shipping information.
  3. Ensuring marketing preferences align with customer consent.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
order_idstringYesUnique order identifier"order_12345"

Body Parameters

ParameterTypeRequiredDescriptionExample
orderobjectYesContains order update details-
order.notestringNoAdditional order information"Gift message: Happy Birthday!"
order.tagsobjectNoOrder categorization labels-
order.tags.valuesarray of stringsNoTag values["urgent", "gift"]
order.buyer_accepts_marketingbooleanNoMarketing consent statustrue
order.shipping_addressobjectNoUpdated delivery information-
order.shipping_address.last_namestringNoRecipient's surname"Smith"
order.shipping_address.first_namestringNoRecipient's given name"Jane"
order.shipping_address.phonestringNoContact number"5559876543"
order.shipping_address.emailstringNoContact email"[email protected]"
order.shipping_address.countrystringNoDelivery country"Canada"
order.shipping_address.country_codestringNoISO country code"CA"
order.shipping_address.provincestringNoState/province"Ontario"
order.shipping_address.province_codestringNoISO province code"ON"
order.shipping_address.areastringNoRegional designation"Downtown"
order.shipping_address.citystringNoCity name"Toronto"
order.shipping_address.addressstringNoPrimary street address"200 King St"
order.shipping_address.address1stringNoSecondary address line"Suite 500"
order.shipping_address.companystringNoBusiness name"Tech Solutions Inc"
order.shipping_address.zipstringNoPostal code"M5H 3T4"
order.shipping_address.phone_area_codestringNoTelephone area code"1"
order.shipping_lineobjectNoOrder's shipping line information-
order.shipping_line.shipping_namestringYesName of the shipping method"Standard Shipping"
order.shipping_line.shipping_descstringNoDescription of the shipping method"3-5 business days delivery"
order.shipping_line.shipping_pricestringYesPrice of the shipping method, as a numeric string"10.00"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the API response
messagestring"Order retrieved successfully"Descriptive message about the response
data.orderobject-Complete order object containing all details

Order Object

Parameter

Type

Example

Description

id

string

"ord_123"

Order ID

created_at

string

"2023-01-01T00:00:00Z"

Creation time

updated_at

string

"2023-01-01T00:00:00Z"

Update time

note

string

"Gift note"

Merchant note

number

string

"#1001"

Order number

total_price

string

"100.00"

Total price

sub_total

string

"90.00"

The sum of the prices for all line items in the order.

If order.config.product_tax_included is true, the amount includes total_tax (excluding shipping_tax_total); otherwise, it excludes tax.
Formula: sub_total = sum(line_item.price * line_item.quantity).

currency

string

"USD"

Currency

financial_status

string

"paid"

Payment status

status

string

"fulfilled"

Order status

cancelled_at

string

Cancel time

cancel_reason

string

Cancel reason

payment_method

string

Payment method

fulfillment_status

string

"fulfilled"

Fulfillment status

customer_deleted_at

string

Customer deletion time

deleted_at

string

Order deletion time

placed_at

string

"2023-01-01T00:00:00Z"

Payment time

tags

string

"vip"

Order tags

buyer_accepts_marketing

boolean

true

Marketing consent

code_discount_total

string

"10.00"

Code discounts

customer_note

string

"Handle with care"

Customer note

total_discount

string

"10.00"

Total discounts

total_tax

string

"5.00"

Product taxes

total_shipping

string

"5.00"

Shipping cost

line_items

array[object]


Line items

payment_line

object


Payment line

shipping_line

object


Shipping line

billing_address

object


Billing address

shipping_address

object


Shipping address

fulfillments

array[object]


Fulfillments

customer

object


Customer info

refer_info

string

"google"

Referral info

sales_platform

string

"web"

Sales platform

total_refund_price

string

"0.00"

Refunded amount

primary_market_price

object


Market pricing

total_tip_received

string

"5.00"

Tips received

discount_applications

string

"promo10"

Discount details

refund_status

string

"none"

Refund status

email_status

string

"sent"

Email status

recovery_status

string

"success"

Recovery status

total_paid

string

"100.00"

Total paid amount

payment_lines

array[object]


Payment lines

gift_card_total

string

"0.00"

Gift card amount

logistics_code

string

"DHL123"

Logistics code

shipping_tax_total

string

"1.00"

Shipping tax

location_line

object


Location info

additional_total

string

"0.00"

Additional fees

additional_prices

array[object]


Fee details

config

object


Configuration

checkout_url

string

"https://..."

Checkout URL

duty_total

string

"0.00"

Duty fees

Fulfillment Object

ParameterTypeExampleDescription
idstring"ful_12345"Fulfillment/shipment ID
order_idstring"ord_123"Associated order ID
statusstring"shipped"Current fulfillment status
created_atstring"2023-01-01T00:00:00Z"Creation timestamp
updated_atstring"2023-01-02T00:00:00Z"Last update timestamp
tracking_companystring"UPS"Shipping carrier name
tracking_numberstring"1Z12345E"Package tracking number
tracking_company_codestring"ups"Carrier system code
line_itemsarray[object]-Shipped items
tracking_urlstring"https://ups.com/track"Tracking page URL
phone_numberstring"+1234567890"Contact phone for shipment

Line Items Object

ParameterTypeExampleDescription
idstring"li_12345"Unique line item identifier
product_idstring"prod_123"Associated product ID
product_titlestring"Premium T-Shirt"Name of purchased product
variant_idstring"var_456"Product variant ID
variant_titlestring"Blue / Medium"Variant description
quantityuint322Quantity purchased
notestring"Gift wrapping requested"Product-specific note
imageobject-Product image details
pricestring"29.99"Unit price
compare_at_pricestring"39.99"Original/compare price
total_pricestring"59.98"Total price (price × quantity)
fulfillment_statusstring"fulfilled"Fulfillment status
skustring"TSHIRT-BL-M"Inventory tracking code
weightstring"0.5"Product weight
weight_unitstring"kg"Weight measurement unit
vendorstring"Fashion Co"Product supplier
product_urlstring"https://..."Product page URL
created_atstring"2023-01-01T00:00:00Z"Creation time
updated_atstring"2023-01-01T00:00:00Z"Update time
optionsarray[object]-Variant options
product_slugstring"premium-t-shirt"Product URL slug
taxablebooleantrueWhether item is taxable
requires_shippingbooleantrueWhether requires shipping
spustring"SPU123"Standard Product Unit
product_tagsstring"summer,sale"Product tags
refund_quantity_totaluint320Total refunded quantity
ship_quantityuint322Shipped quantity
custombooleanfalseCustom product flag
trunk_pricestring"0.00"Trunk price
discount_applicationsstring"promo10"Applied discounts
tax_pricestring"2.99"Tax amount
duty_pricestring"0.00"Duty cost
Image Object
ParameterTypeExampleDescription
srcstring"https://..."Image URL
widthint32800Image width
heightint32600Image height
altstring"Blue T-Shirt"Alt text
Options Object
ParameterTypeExampleDescription
namestring"Color"Option name
valuestring"Blue"Selected value

Payment Line Object

ParameterTypeExampleDescription
payment_namestring"VISA-1234"Display name of payment method
payment_channelstring"stripe"Payment service provider
payment_methodstringSpecific payment type
credit_card_numberstring""Masked card digits
trans_channelstring`Transaction channel
trans_methodstringTransaction method
transaction_nostring"txn_789012"Unique transaction ID

Shipping Line Object

ParameterTypeExampleDescription
idstring"ship_12345"Unique identifier for the shipping method
namestring"Express Delivery"Display name of the shipping method
descstring"2-3 business days"Description of shipping terms

Billing Address/ Shipping Address Object

ParameterTypeExampleDescription
first_namestring"John"First name of the billing contact
last_namestring"Doe"Last name of the billing contact
addressstring"1 Rue des Carrieres"Primary street address
address1string"Suite 1234"Additional address line
phonestring"+861231231234"Contact phone number
citystring"SAN JOSE"City name
zipstring"87036"Postal/ZIP code
provincestring"New Mexico"State/Province name
countrystring"United States"Country name
companystring"ABC Limited"Company name
latitudestring"22.54"Geographic latitude
longitudestring"114.06"Geographic longitude
namestring"John Doe"Full name of billing contact
country_codestring"US"2-letter country code
province_codestring"NM"State/Province code
phone_area_codestring"+86"Phone country code
emailstring"[email protected]"Email address
areastring"Bay area"Regional area designation

Primary Market Price Object

ParameterTypeExampleDescription
compare_at_pricestring"129.99"Original/list price in primary currency
pricestring"99.99"Current selling price in primary currency
total_pricestring"199.98"Extended price (price × quantity)
actual_ratestring"1.12"Currency conversion rate applied

Customer Object

ParameterTypeExampleDescription
idstring"cust_12345"Unique customer identifier
emailstring"[email protected]"Customer's email address
first_namestring"John"Customer's first name
last_namestring"Doe"Customer's last name
phonestring"+1234567890"Customer's phone number
created_atstring"2023-01-01T00:00:00Z"Customer account creation date
updated_atstring"2023-06-01T00:00:00Z"Last customer profile update
order_countint325Total orders placed by customer
total_spentstring"499.95"Lifetime spending amount

Location Line Object

ParameterTypeExampleDescription
idstring"1234567890"Unique identifier for the location line.
location_idstring"Doe"Identifier for the associated location.
location_namestring"123 Main St"Name of the location, such as a store or warehouse.

Config Object

ParameterTypeExampleDescription
product_tax_includedbooleantrueTax inclusion flag
requires_shippingbooleantrueShipping requirement
checkout_urlstring"https://store.com/checkout"Order checkout URL

Additional Charge Object

ParameterTypeExampleDescription
namestring"Gift Wrapping"System identifier for charge type
pricestring"5.99"Charge amount in order currency
biz_idstring"gift_wrap_1"Business logic identifier
fee_titlestring"Special Packaging"Customer-facing charge description

Market Setting Object

ParameterTypeExampleDescription
primary_market_langstring"en"Primary market language code
market_langstring"en-US"Localized market language
market_idstringUnique market identifier
market_currencystring"USD"Market currency code
market_currency_symbolobject-Currency symbol details
market_base_idstring"base_us"Base market ID
market_base_currencystring"USD"Base market currency
market_base_currency_symbolobject-Base currency symbol
primary_market_idstring"primary_us"Primary market ID
primary_market_currencystring"USD"Primary currency code
primary_market_currency_symbolobject-Primary currency symbol
market_price_settingobject-Price calculation settings
market_countrystring"US"2-letter country code

Currency Symbol Objects

ParameterTypeExampleDescription
codestring"USD"ISO currency code
valstring"$"Currency symbol
leftstring"$"Left-side display
rightstring""Right-side display

Market Price Setting Object

ParameterTypeExampleDescription
local_currency_enabledbooleantrueLocal currency active
custom_rate_enabledbooleanfalseCustom exchange rate
custom_ratefloat1.0Manual exchange rate
ratefloat1.12Current exchange rate
back_ratefloat0.89Reverse exchange rate
actual_ratefloat1.1198Precise exchange rate
base_to_ratefloat1.0Base to local rate
local_to_ratefloat1.0Local to base rate
adjustint320Price adjustment %
price_round_enabledbooleantruePrice rounding active

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!