Update an order
PUT https://{handle}.myshopline.com/admin/openapi/v20260301/orders/:id.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 .Update information for a specified order. If the field is passed with an empty value, or not passed at all, it means the information of this field will not be updated.
Path Parameters
- id string requiredThe order ID.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
orderobject
Order details.area_code stringThe international dialing code for the buyer's phone number.customer_id stringBuyer's ID.email stringThe email of the buyer.id stringOrder ID.line_itemsobject[]
Products that require label updates.id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.tags stringProduct tags, with multiple tags separated by English commas. This input will overwrite any existing tags.note_attributesobject[]
A list of merchant note logs.name stringMerchant ID, indicating the note source.value stringNote content.phone stringThe phone number of the buyer.shipping_addressobject
The address used for receiving packages.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.area stringThe district in the address.area_code stringThe district code in the address.city stringThe city in the address.city_code stringThe city code in the address.company stringThe company name of the recipient. Maximum length:64country stringThe country or region in the address. Maximum length:64country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address.Example:USemail stringThe email of the recipient.first_name stringThe first name of the recipient.last_name stringThe last name of the recipient. Maximum length:64latitude stringThe latitude where the address is located.longitude stringThe longitude where the address is located.phone stringThe phone number of the recipient.province stringThe province in the address.province_code stringThe code for the province or region in the address, automatically generated by the system.zip stringThe postal code information of the address.tags stringProduct tags, with multiple tags separated by English commas. This input will overwrite any existing tags.
Status Codes
- 200
- 400
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
orderobject
Order details.app_id stringApp ID.billing_addressobject
The address for sending billing invoices.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.company stringThe company name of the billing recipient.country stringThe country or region in the address.country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address.Example:USfirst_name stringThe first name of the billing recipient.last_name stringThe last name of the billing recipient.name stringThe full name of the billing recipient.phone stringThe phone number of the billing recipient.province stringThe province in the address.province_code stringThe code for the province or region in the address, automatically generated by the system.standard_province_code stringThe code for the province or region in an address, represented by the last two or three characters of the ISO 3166-2 standard, such asRIorENG.zip stringThe postal code information of the address.browser_ip stringThe IP address of the customer's browser used during order placement.cancel_reason stringMerchant's reason for cancellation.cancelled_at stringThe date and time when the order was canceled. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00cart_token stringThe unique identifier for shopping cart data.checkout_id stringAbandoned checkout ID.checkout_token stringThe unique identifier for abandoned checkout data. After a customer initiates the checkout process, an abandoned checkout is generated.client_detailsobject
Client details.browser_ip stringThe IP address of the customer's browser used during order placement.session_hash stringMember session encrypted information.user_agent stringUser agent.companyobject
The buyer's company information as presented at the time the order was placed.id stringCompany ID.location_id stringLocation ID.tax_registration_id stringTax registration ID.created_at stringThe date and time when the order was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00credit_limitobject
Credit payment information.credit_limit_currency stringThe currency of the credit payment, same as the store currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard.is_credit_limit booleanIndicates whether the order used credit payment.true: usedfalse: not used
outstanding_credit_limit stringThe current occupied credit amount, initially equal tototal_credit_limit. This value decreases with actions like repayments.total_credit_limit stringThe total credit amount used to pay for this order.currency stringThe transaction currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard.Example:USDcurrent_subtotal_price stringThe total amount of products, calculated by multiplying the unit price by the quantity and displayed in the store currency.current_subtotal_price_setobject
The total amount of products, calculated by multiplying the unit price by the quantity and displayed in both the buyer currency and the store currency.presentment_moneyobject
The order price information presented to the buyer.amount stringThe order amount. The value is rounded to two decimal places.shop_moneyobject
The order price information recorded by the merchant.amount stringThe order amount. The value is rounded to two decimal places. For example,88.98.current_total_discounts stringThe total discount amount in the store currency. It is calculated by adding marketing discounts and custom discounts, with the resulting amount rounded to two decimal places.current_total_discounts_setobject
The total discount amount displayed in both the buyer currency and the store currency. It is calculated by adding marketing discounts and custom discounts, with the resulting amount rounded to two decimal places.presentment_moneyobject
The total discount amount information presented to the buyer.amount stringThe total discount amount. The value is rounded to two decimal places.shop_moneyobject
The total discount amount information recorded by the merchant.amount stringThe total discount amount. The value is rounded to two decimal places.current_total_duties_setobject
The total customs duties for the products, displayed in both the buyer currency and the store currency.presentment_moneyobject
The total customs duties information for the products presented to the buyer.amount stringThe duty amount. The value is rounded to two decimal places.shop_moneyobject
The total customs duties information for the products recorded by the merchant.amount stringThe duty amount. The value is rounded to two decimal places.current_total_price stringThe total order amount, displayed in the store currency.current_total_price_setobject
The total order amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The total order amount presented to the buyer.amount stringThe total order amount. The value is rounded to two decimal places.shop_moneyobject
The total order amount recorded by the merchant.amount stringThe total order amount. The value is rounded to two decimal places.current_total_tax stringThe total tax amount, displayed in the store currency.current_total_tax_setobject
The total tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.customerobject
Buyer information.addressesobject
Buyer address information.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.country stringThe country or region in the address.country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address.Example:USfirst_name stringThe first name of the buyer.last_name stringThe last name of the buyer.name stringThe full name of the buyer.phone stringThe phone number of the buyer.province stringThe province in the address.province_code stringThe code for the province or region in the address, automatically generated by the system.zip stringThe postal code information of the address.area_code stringThe international dialing code for the buyer's phone number.created_at stringThe date and time when the buyer information was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00currency stringA three-letter currency code that follows the ISO 4217 standard.email stringThe email of the buyer.first_name stringThe first name of the buyer.id stringBuyer's ID.last_name stringThe last name of the buyer.phone stringThe phone number of the buyer.updated_at stringThe date and time when the buyer information was updated. Format:ISO 8601.Example:2024-08-31T02:20:26+08:00customer_locale stringFormed by combining a language code (ISO 639) with a country or region code (ISO 3166-1), for example,enUS.Only the country or region code is returned if language information is unavailable, for example,US.deduct_member_point_amount stringThe amount deducted from the order using member points, displayed in the store currency and rounded to two decimal places.deduct_member_point_amount_setobject
The amount deducted from the order using member points, displayed in both the buyer currency and the store currency.presentment_moneyobject
The currency amount information presented to the buyer.amount stringThe deduction amount. The value is rounded to two decimal places.shop_moneyobject
The deduction amount information recorded by the merchant.amount stringThe deduction amount. The value is rounded to two decimal places.discount_applicationsobject[]
Discount information.allocation_method stringThe discount scope. Valid values are:across: The discount is applied to the total product amount.each: The discount is applied to each product individually.
For example, for a purchase of three identical products with a discount amountvalueof 10 dollars. If theallocation_methodisacross, the total amount of the three products is reduced by 10 dollars. If theallocation_methodiseach, the amount of each product is individually reduced by 10 dollars.code stringDiscount code.description stringCustom discount description.target_selection stringDiscount allocation method for line items. Valid values are:explicit: The discount is allocated only to the explicitly specified line items.all: The discount is allocated to all line items.entitled: The discount is allocated only to the line items that are entitled to use the discount.
target_type stringDiscount target type. Valid values are:line_item: discount applied to the productshipping_line: discount applied to the shipping fee
title stringAutomatic discount title.type stringDiscount type. Valid values are:manual: manual discountautomatic: automatic discountdiscount_code: discount applied through a discount code
value stringThe specific value of the discount, in the store currency.- When
value_typeisfix_amount, this field value represents a specific discount amount. For example, if the value is10and the store currency is USD, it means a discount of 10 dollars. - When
value_typeispercentage, the value of this field represents a specific discount percentage. For example,10means 10% off of the order amount.
value_type stringThe type of discount value. Valid values are:fix_amount: Fixed amount discount. For example, ifvalueis10in USD, it means a discount of 10 dollars.percentage: Percentage-based discount. For example, ifvalueis10, it means 10% off of the order amount.
discount_codesobject[]
A list of promo code information.amount stringDiscount amount in the store currency. The value is rounded to two decimal places.amount_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The discount amount information presented to the buyer.amount stringThe discount amount. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe discount amount. The value is rounded to two decimal places.code stringPromo code.type stringType of discount. Valid values are:减金额: amount reduction打折: offer a discount免运费: free shipping加价品: add-on purchase deal任意N件优惠价: discount for purchasing any N itemsA+B组合优惠价: discount for purchasing the product A and B combo赠品: free gift固定售价: fixed price最低价商品免费: lowest-priced product free打包价: package price第N件打折: discount on the Nth item买x送y: buy x and get y free自定义: custom discount
DEPRECATED: The returned enum values are in Chinese. This parameter is deprecated from API version v20250601.email stringBuyer's email.financial_status stringOrder payment status. Valid values are:unpaid: order not paidauthorized: order payment has been authorizedpending: order payment in progresspartially_paid: order partially paidpaid: order paidpartially_refunded: order partially refundedrefunded: order refunded
fulfillment_status stringShipping status. Valid values are:fulfilled: order shippedpartial: order partially shippednull: order not shipped
fulfillmentsobject[]
A list of fulfillment information.created_at stringThe date and time when the fulfillment was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringFulfillment ID.line_itemsobject[]
Product list.attribute stringThe option information of the product variant, composed of the variant name and the option value.Example:color - redfulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_service stringLogistics company name.fulfillment_status stringShipping status. Valid values are:fulfilled: order shippedpartial: order partially shippednull: order not shipped
grams doubleThe weight of the product in grams(g).id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.name stringSKU title, same astitle.price stringThe product price in the store currency. The value is rounded to two decimal places.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The product price information presented to the buyer.amount stringThe product price. The value is rounded to two decimal places.shop_moneyobject
The product price information recorded by the merchant.amount stringThe product price. The value is rounded to two decimal places.product_id stringThe unique identifier for the product corresponding to the variant.quantity integerQuantity of products in the order.requires_shipping booleanIndicates whether the product is subject to shipping.true:Shipping is required.false:Shipping is not required.
sku stringThe product SKU.tax_linesobject[]
Tax information.price stringThe title for the tax description, for display only.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringTax name.taxable booleanWhether the product is subject to tax.true: Tax is required.false: No tax is required.
title stringProduct title.variant_id stringThe unique identifier for the variant.variant_title stringProduct variant value. Multiple values are separated by/.vendor stringSupplier.name stringFulfillment code.order_id stringOrder number.shipment_status stringFulfillment shipping status. Valid values are:out_for_delivery: out for deliverydelivered: deliveredfaliure: delivery failedpicked_up: picked up
status stringFulfillment status. Valid values are:success: shipment dispatchedcancelled: shipment has been canceled
tracking_company stringLogistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_info_listobject[]
A list of tracking information.tracking_company stringLogistics service provider.tracking_number stringThe tracking number provided by the logistics service provider.tracking_url stringThe domain name of the logistics company.tracking_number stringThe delivery tracking number provided by the logistics service provider.DEPRECATED:This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_url stringThe domain name of the logistics company.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.updated_at stringThe date and time when the fulfillment was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringOrder ID, system-defined number.line_itemsobject[]
A list of order product snapshots.attribute stringThe option information of the product variant, composed of the variant name and the option value.Example:color - redcountry_code_of_origin stringCountry or region code indicating the place of origin or shipping origin. Format: ISO 3166-1.discount_allocationsobject[]
The discount amount, displayed in both the buyer currency and the store currency.amount stringThe discount amount. The value is rounded to two decimal places.amount_setobject
Discount details in multiple currencies.presentment_moneyobject
The discount amount information presented to the buyer.amount stringThe discount amount. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe discount amount. The value is rounded to two decimal places.discount_application_index integerThe position of the discount applied to the product within theorders.discount_applicationslist.dutiesobject[]
A list of duty information.country_code_of_origin stringCountry or region code indicating the place of origin or shipping origin. Format: ISO 3166-1.Example:USharmonized_system_code stringHarmonized system code, used to categorize a product in international trade.id stringTariff number.priceobject
The duty amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The duty amount information presented to the buyer.amount stringThe duty amount. The value is rounded to two decimal places.shop_moneyobject
The duty amount information recorded by the merchant.amount stringThe duty amount. The value is rounded to two decimal places.tax_linesobject[]
A list of tax information.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.rate_percentage doubleThe tax rate as a percentage numerical value, rounded to two decimal places. For example, a 2% tax rate is represented as2.00. This field value is for display only.title stringThe title for the tax description, for display only.fulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_service stringLogistics company name.fulfillment_status stringShipping status. Valid values are:fulfilled: order shippedpartial: order partially shippednull: order not shipped
grams doubleThe weight of the product in grams(g).harmonized_system_code stringHarmonized system code, used to categorize a product in international trade.id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.location_id stringLocal delivery location number or standard delivery location number.name stringSKU title, same astitle.price stringThe product price in the store currency. The value is rounded to two decimal places.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The product price information presented to the buyer.amount stringThe product price. The value is rounded to two decimal places.currency_code stringA three-letter currency code that follows the ISO 4217 standard.shop_moneyobject
The product price information recorded by the merchant.amount stringThe product price. The value is rounded to two decimal places.product_id stringThe unique identifier for the product corresponding to the variant.propertiesobject[]
A list of product customization information.additional stringAdditional custom fields for products. For example, ifnameistext,additionalcan include attributes such as font size, font style, and color.name stringCustom attribute name.type stringCustom information type. Valid values are:text: text typepicture: picture typelink: hyperlink type
urls arrayURL list.
Iftypeispicture, thumbnails are retrieved via theurlsvalues.
Iftypeislink, the hyperlink is the first URL in theurlsvalues.value stringCustom attribute value.quantity integerQuantity of products in the order.requires_shipping booleanIndicates whether the product is subject to shipping.true:Shipping is required.false:Shipping is not required.
sku stringThe product SKU.tags stringProduct tags. Multiple tags are separated by commas.tax_linesobject[]
Tax details list.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringThe title for the tax description, for display only.type stringTax type. Valid values are:product_tax: product taxshipping_tax: shipping tax
taxable booleanWhether the product is subject to tax.true: Tax is required.false: No tax is required.
title stringProduct title.variant_id stringThe unique identifier for the variant.variant_title stringProduct variant value. Multiple values are separated by/.vendor stringSupplier.locationsobject[]
A list of product pickup location addresses.location_id stringUnique code of the pickup location.name stringPickup location name.type stringLocation type. Valid values are:posLocation: The store location where this order was created through the POS channel. It is recommended to usepos_location_id, as this field will be deprecated.pickupLocation: When the order's fulfillment method is self-pickup, this indicates the store location for pickup.productLocation: The inventory location of the items in the order. It is recommended to use thelocation_idinformation in the line items, as this field will be deprecated.
name stringStore custom order number, starting from 1001. You can set a prefix for this value, such astest1001.note stringMerchant notes.note_attributesobject[]
A list of merchant note logs.name stringMerchant ID, indicating the note source.value stringNotes.order_source stringThe order source channel handle. The handle is a semantic identifier.order_status_url stringOrder status page URL.payment_detailsobject[]
A list of order payment information.create_time stringThe date and time when the payment was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00order_seq stringThe order ID.pay_amount doublePayment amount in the store currency. The value is rounded to two decimal places.pay_channel_deal_id stringPayment serial number from the external channel.pay_seq stringPayment order number.pay_status stringPayment status. Valid values are:unpaid: unpaidpending: payment in processrisking: under risk controlpaid:paidpaid_overtime: payment timeoutpaid_failed: payment failed
status_code stringPayment gateway standard status code.status_msg stringThe description ofstatus_code.payment_gateway_names arrayPayment method list. Valid values are:SLpaymentsPaypalOceanpayTwoCheckoutAsiaBillStripePacypayWorldPayCODCUSTOMadjustPayXenditXenditOther
phone stringBuyer's mobile phone number.po_number stringPurchase order number for a B2B order.pos_location_id stringPOS trading location ID.presentment_currency stringBuyer currency, the same as the store currency. A three-letter currency code that follows the ISO 4217 standard.Example:USDprocessed_user_id stringThe ID of the order creator.refundsobject[]
Refund list.created_at stringThe date and time when the refund was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringRefund ID.note stringMerchant's refund notes.order_id stringOrder number.refund_line_itemsobject[]
A list of refund details for each item line.id stringRefund order number.line_itemobject
The product line information in the fulfillment.attribute stringThe option information of the product variant, composed of the variant name and the option value.Example:color - redfulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_service stringLogistics company name.fulfillment_status stringShipping status. Valid values are:fulfilled: order shippedpartial: order partially shippednull: order not shipped
grams doubleThe weight of the product in grams(g).id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.name stringSKU title, same astitle.price stringThe product price in the store currency. The value is rounded to two decimal places.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The product price information presented to the buyer.amount stringThe product price. The value is rounded to two decimal places.shop_moneyobject
The product price information recorded by the merchant.amount stringThe product price. The value is rounded to two decimal places.product_id stringThe unique identifier for the product corresponding to the variant.quantity integerQuantity of items in the order.requires_shipping booleanIndicates whether the product is subject to shipping.true:Shipping is required.false:Shipping is not required.
sku stringThe product SKU.tax_linesobject[]
A list of tax information.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringThe title for the tax description, for display only.taxable booleanWhether the product is subject to tax.true: Tax is required.false: No tax is required.
title stringProduct title.variant_id stringThe unique identifier for the variant.variant_title stringProduct variant value. Multiple values are separated by/.vendor stringSupplier.line_item_id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.quantity integerThe quantity of refunded products.restock_type stringInventory return type. Valid values are:no_restock: not returnedcancel: canceledreturn: returned
subtotal doubleThe total amount of the refund in the store currency. It is calculated as the product of the unit price and quantity.subtotal_setobject
The total amount of the refund displayed in both the buyer currency and the store currency. It is calculated as the product of the unit price and quantity.presentment_moneyobject
The refund amount information presented to the buyer.amount stringThe refund amount. The value is rounded to two decimal places.shop_moneyobject
The refund amount information recorded by the merchant.amount stringThe refund amount. The value is rounded to two decimal places.total_tax doubleThe tax amount of the refunded products, displayed in the store currency. The value is rounded to two decimal places.total_tax_setobject
The total tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.transactionsobject[]
A list of refund transaction information.amount stringThe refund amount. The value is rounded to two decimal places.created_at stringThe date and time when the refund transaction was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringRefund ID.kind stringTransaction type. The value is fixed torefund.order_id stringOrder number.status stringRefund status. Valid values are:pending: refund in progressfailure: refund failedsuccess: refund successfulerror: refund error
user_id stringBuyer ID.user_id stringBuyer ID.shipping_addressobject
Shipping address.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.company stringThe company name of the recipient.country stringThe country or region in the address.country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address.first_name stringThe first name of the recipient.last_name stringThe last name of the recipient.latitude stringThe latitude where the address is located.longitude stringThe longitude where the address is located.name stringThe full name of the recipient.phone stringThe phone number of the recipient.province stringThe province in the shipping address.province_code stringThe code for the province or region in the address, automatically generated by the system.standard_province_code stringThe code for the province or region in an address, represented by the last two or three characters of the ISO 3166-2 standard, such asRIorENG.zip stringThe postal code information of the address.shipping_linesobject[]
A list of shipping fees.code stringOnly local delivery shipping methods will return a value, displayed asLocal delivery.discount_allocationsobject[]
A list of discount details.amount stringThe discount amount in the store currency. The value is rounded to two decimal places.amount_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The discount amount information presented to the buyer.amount stringThe discount amount. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe discount amount. The value is rounded to two decimal places.discount_application_index integerThe position of the discount applied to the product within theorders.discount_applicationslist.discounted_price stringDiscount amount. The value is rounded to two decimal places and displayed in the store currency.discounted_price_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The discount amount information presented to the buyer.amount stringThe discount amount. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe discount amount. The value is rounded to two decimal places.phone stringThe phone number of the buyer.price stringThe shipping fee amount in the store currency. The value is rounded to two decimal places.price_setobject
The shipping fee amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The shipping fee information presented to the buyer.amount stringThe shipping fee. The value is rounded to two decimal places.shop_moneyobject
The shipping fee information recorded by the merchant.amount stringThe shipping fee. The value is rounded to two decimal places.requested_fulfillment_service_id stringTransportation service code.shipping_price stringThe original shipping fee in the store currency, excluding any discounts. The value is rounded to two decimal places.shipping_price_setobject
The original shipping fee, excluding any discounts, displayed in both the buyer currency and the store currency.presentment_moneyobject
The shipping fee information presented to the buyer.amount stringThe shipping fee. The value is rounded to two decimal places.shop_moneyobject
The shipping fee information recorded by the merchant.amount stringThe shipping fee. The value is rounded to two decimal places.source stringLogistics carrier type. Valid values are:Shipper: Shipper logisticsOneship: Oneship logisticsApi: logistics carriers added via open API capabilitiesnull: system logistics or custom logistics
tax_linesobject[]
A list of tax information.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringTax name.title stringLogistics company name.store_id stringStore ID.subtotal_price stringThe final price after discounts, calculated as the total product price minus any marketing discounts and custom discounts. The amount is displayed in the store currency.subtotal_price_setobject
The final price after discounts, calculated as the total product price minus any marketing discounts and custom discounts. This field contains amounts displayed in both the buyer and store currencies.presentment_moneyobject
The final price information presented to the buyer.amount stringThe final price. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe final price. The value is rounded to two decimal places.tags stringOrder tags.tax_linesobject[]
A list of tax information.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringThe tax amount. The value is rounded to two decimal places.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringThe title for the tax description, for display only.tax_number stringTax ID.tax_type stringThe type of tax applicable to the order. Valid values are:product_tax: product taxshipping_tax: shipping tax
taxes_included booleanIndicates whether this order includes taxes.true: including taxesfalse: excluding taxes
total_discounts stringThe total order discount, calculated as the sum of marketing discounts and custom discounts. The amount is rounded to two decimal places and displayed in the store currency.DEPRECATED:This parameter is deprecated from API version v20210901.Example:3.25total_discounts_setobject
The total order discount, calculated as the sum of marketing discounts and custom discounts. This field contains amounts displayed in both the buyer and store currencies.DEPRECATED:This parameter is deprecated from API version v20210901.presentment_moneyobject
The discount amount information presented to the buyer.amount stringThe discount amount. The value is rounded to two decimal places.shop_moneyobject
The discount amount information recorded by the merchant.amount stringThe discount amount. The value is rounded to two decimal places.total_line_items_price stringThe total original price of the products, rounded to two decimal places and displayed in the store currency.total_line_items_price_setobject
The total original price of the products, displayed in both the buyer currency and the store currency.presentment_moneyobject
The original price information presented to the buyer.amount stringThe original price. The value is rounded to two decimal places.shop_moneyobject
The original price information recorded by the merchant.amount stringThe original price. The value is rounded to two decimal places.total_outstanding stringThe total unpaid amount in the store currency. The value is rounded to two decimal places.total_outstanding_setobject
Unpaid amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The unpaid amount presented to the buyer.amount stringUnpaid amount. The value is rounded to two decimal places.shop_moneyobject
The unpaid amount recorded by the merchant.amount stringUnpaid amount. The value is rounded to two decimal places.total_shipping_price_setobject
The total shipping fee for the order, displayed in both the buyer currency and the store currency.presentment_moneyobject
The shipping fee information presented to the buyer.amount stringThe shipping fee. The value is rounded to two decimal places.shop_moneyobject
The shipping fee information recorded by the merchant.amount stringThe shipping fee. The value is rounded to two decimal places.total_tax stringThe total tax amount in the store currency. The value is rounded to two decimal places.total_tax_setobject
The total tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The tax amount information presented to the buyer.amount stringTax amount. The value is rounded to two decimal places. For example,88.98.shop_moneyobject
The tax amount information recorded by the merchant.amount stringThe tax amount. The value is rounded to two decimal places.total_tip_received stringThe tip amount in the store currency. The value is rounded to two decimal places.total_tip_received_setobject
The tip amount, displayed in both the store currency and the buyer currency.presentment_moneyobject
The tip amount information presented to the buyer.amount stringThe tip amount. The value is rounded to two decimal places.shop_moneyobject
The tip amount information recorded by the merchant.amount stringThe tip amount. The value is rounded to two decimal places.total_weight doubleThe total weight of products in grams(g).updated_at stringThe date and time when the order was updated. Format:ISO 8601.Example:2024-08-31T02:20:26+08:00user_id stringBuyer ID.
API Explorer
Debugger
Examples
Was this article helpful to you?