Cancel order archive
PUT https://{handle}.myshopline.com/admin/openapi/v20250601/orders/:id/cancel_hide_mark.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
.Opens a closed order.
Path Parameters
- id string requiredOrder numberExample:
21050342939778451436179579
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
Response
- 200
- 401
- 429
For more information about status codes, see Http status code.
Response Headers
traceId
traceId
Response Body
orderobject
For order information, field descriptions and examples, please refer to the response result of the order listapp_id stringApp IDExample:222222
billing_addressobject
billing addressaddress1 stringBilling consignee detailed address ( up to 255 characters )Example:Address 1
address2 stringBill consignee additional to detailed address ( up to 255 characters )Example:Address 2
city stringBilling consignee city ( up to 64 characters )Example:New York
company stringCompany nameExample:new company
country stringBilling consignee country ( up to 64 characters )Example:Usa
country_code stringBilling consignee national encodingExample:US
first_name stringBilling consignee nameExample:Tom
last_name stringBill consignee last nameExample:Washington
name stringBilling nameExample:Tom Washington
phone stringBill consignee name mobile phone numberExample:13890312312
province stringBilling consignee name provinceExample:California
province_code stringBilling consignee name province encodingExample:4300006
zip stringBilling consignee name zipExample:521000
browser_ip stringClient IPExample:157.119.232.35
cancel_reason stringSeller's reason for cancellationExample:" don ' t want to buy "
cancelled_at stringOrder cancellation time (end) (see IOS8601 for the format), 2012-05-01T14:22:25-04:00Example:2012-05-01T14:22:25-04:00
cart_token stringShopping cart tokenExample:c2c4a58186b9d96395d7e6b5c2969577
checkout_id stringDiscard idExample:2404785166526352972864
checkout_token stringSettlement page tokenExample:c2c4a58186b9d96395d7e6b5c2969577
client_detailsobject
Client Detailsbrowser_ip stringClient ip addressExample:157.119.232.35
session_hash stringMember session encryption informationExample:c2c4a58186b9d96395d7e6b5c2969577
user_agent stringClient ProxyExample:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Sa
created_at stringOrder creation time (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
currency stringTransaction currencyExample:USD
current_subtotal_price stringSum of current products, total price of products * quantityExample:78.08
current_subtotal_price_setobject
Multi-currency information of the current commodity sum, the buyer's and seller's currency and the amount are the samepresentment_moneyobject
Buy side currencyamount stringAmountExample:78.08
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amountamount stringAmount, Precision 2Example:78.08
currency_code stringCurrency codeExample:USD
current_total_discounts stringSum of discounts, precision 2, marketing offers + artificial discountsExample:3.25
current_total_discounts_setobject
presentment_moneyobject
Currency informationamount stringAmountExample:3.25
currency_code stringCurrency informationExample:USD
shop_moneyobject
Sell side amountamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
current_total_price stringTotal tax, product tax + shipping taxExample:8.00
current_total_price_setobject
Multi-currency information of the sum of taxes, the currency and amount of buyers and sellers are the samepresentment_moneyobject
Buy side currencyamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side currencyamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
current_total_tax stringTotal tax, product tax + shipping taxExample:8.00
current_total_tax_setobject
Multi-currency information of the sum of taxes, the currency and amount of buyers and sellers are the samepresentment_moneyobject
Buy side currencyamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side currencyamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
customerobject
Buyer informationaddressesobject
Buyer address informationaddress1 stringDetailed address 1Example:Address 1
address2 stringDetailed address 2, optionalExample:Address 2
city stringCityExample:New York
country stringCountryExample:Usa
country_code stringCountry codeExample:US
first_name stringLast nameExample:Tom
last_name stringFirst nameExample:Washington
name stringFull nameExample:Tom Washington
phone stringPhoneExample:13652133421
province stringProvinceExample:California
province_code stringProvince codeExample:4300006
zip stringPostal codeExample:52134
area_code stringPhone area codeExample:+86
created_at stringBuyer creation time (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
currency stringCurrencyExample:USD
email stringUser mailboxExample:test001@Gmail.com
first_name stringFirst nameExample:Tom
id stringUser IDExample:4201057495
last_name stringLast nameExample:Washington
phone stringUser mobile phone numberExample:19872121232
updated_at stringBuyer update timeExample:2012-05-01T14:22:25-04:00
customer_locale stringBuyer country, language code + country name abbreviationExample:enCN
deduct_member_point_amount stringCurrent order member point deduction amountExample:3.25
discount_applicationsobject[]
Discount informationallocation_method string1 ) across ( the value is distributed in all authorized lines ) 2 ) the ach ( the value is applied to each authorized line )Example:across
code stringDiscount codeExample:1Q3UMQM8RBP5
description stringDescription of custom discountExample:Discount description
target_selection string1 ) explicit ( discount distribution to clear selection ) 2 ) all ( discount distribution to all lines ) 3 ) ENTITLED ( discount distribution only to the line that its right to use )Example:explicit
target_type string1)line_item、shipping_lineExample:line_item
title stringautomatic discount titleExample:Discount title
type stringDiscount typeExample:manual
value stringThe specific value of the discount ( it can be n-fold , or it can be the specific amount value )Example:20
value_type string% discount , amount discountExample:fixed_amount
discount_codesobject[]
Promo code informationamount stringDiscount amount, precision 2Example:3.25
code stringPromo codeExample:KIN4GNAB2FRH
type stringType of discount, reduced amount; discount; free shipping; fixed price; the lowest price item is free; package price; the Nth item is discounted;Example:deduction amount
email stringBuyer's mailbox, there must be one of the twoExample:test1002@Gmail.com
financial_status stringPayment status , un pad , authorized , pending , partially_paid , pad , partially_refunded , refundedExample:unpaid
fulfillment_status stringShipping status, fulfilled-shipped; partial-partially shipped; null-unshipped; Note: the returned enum value is different from the query enumeration value of the input parameterExample:fulfilled
fulfillmentsobject[]
Package informationcreated_at stringCreation time (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
id stringPackage numberExample:22046737798141702810214336
line_itemsobject[]
Product listattribute stringProduct attributes : name-attribute value multiple comma " , " division like : color-red , size-xExample:red
fulfillable_quantity integerAvailable quantityExample:1
fulfillment_service stringLogistics company nameExample:Sf
fulfillment_status stringThe shipping status of the product, shipping status, fulfilled-shipped; partial-partially shipped; null-unshipped;Example:fulfilled
grams doubleWeight ( grams )Example:100
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:312
name stringSKU title, same as titleExample:Product name
price stringCommodity price, precision 2Example:23.09
product_id stringSPU serial numberExample:16056761559984840457934011
quantity integerQuantity of items in the orderExample:1
requires_shipping booleanShipping or notsku stringProduct code, barCodeExample:18056761559987524812644011
tax_linesobject[]
Tax informationprice stringTax, precision 2Example:3.25
price_setobject
Multi-currency information of taxpresentment_moneyobject
Currency informationamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1
title stringTax nameExample:tax
taxable booleanTax or not?Example:true
title stringProduct titleExample:Beautiful skirt
variant_id stringProduct SKU serial numberExample:18056761559987524812644011
variant_title stringCommodity attribute value, multiple divided by " / ", such as: "155 / red / large"Example:big
vendor stringSupplierExample:Supplier
name stringinvoice short numberExample:1032-F2
order_id stringOrder numberExample:21056577640603870897253153
shipment_status stringPackage trackingExample:fulfilled
status stringLogistics delivery status, success-shipped; cancelled-cancelled;Example:cancelled
tracking_company stringLogistics company nameExample:SF International
tracking_number stringThird party tracking numberExample:yun0001
tracking_url stringLogistics company URLExample:https://www.sf-international.com/
updated_at stringUpdate time (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
id stringOrder number , system customization numberExample:21050224312121887324667162
line_itemsobject[]
Order product snapshot informationattribute stringProduct attributes : name-attribute value multiple comma " , " division like : color-red , size-xExample:red
discount_allocationsobject[]
Marketing discount detail amount multi-currencyamount stringDiscount detail amountExample:8.00
amount_setobject
Discount Details Amount Multi-Currencypresentment_moneyobject
payment currencyamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Store currencyamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
discount_application_index integerIndicate the location in the discount detailsExample:1
fulfillable_quantity integerAvailable quantityExample:1
fulfillment_service stringLogistics company nameExample:Sf
fulfillment_status stringThe shipping status of the product, shipping status, fulfilled-shipped; partial-partially shipped; null-unshipped;Example:fulfilled
grams doubleWeight ( grams )Example:100
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:417
location_id stringThe location corresponding to the store in the pos sceneExample:5327026538935748524
name stringSKU title, same as titleExample:Product title
price stringCommodity price, precision 2Example:3.25
product_id stringSPU serial numberExample:16056761559984840457934011
propertiesobject[]
Product customization informationadditional stringAdditional Fields for Custom ItemsExample:Additional field
name stringCustom attribute nameExample:Attribute name
type stringAttribute type, text-character, the display format is name: value; picture-picture, the display type is name: get the rendered thumbnail through URLs; link-hyperlink, the display type is name: value, supports clicking on the link to jump to urls FirstExample:text
urls arrayURL resource listExample:https://www.url.com
value stringCustom attribute valuesExample:Attribute value
quantity integerQuantity of items in the orderExample:2
requires_shipping booleanShipping or notExample:true
sku stringProduct code, barCodeExample:18056761559987524812644011
tags stringCommodity tags (separated by multiple commas)Example:Tag 1 , cute
tax_linesobject[]
Tax informationprice stringTax, precision 2Example:3.25
price_setobject
Multi-currency information of taxpresentment_moneyobject
Buy side currencyamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side currencyamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1
title stringTax nameExample:tax
type stringTax fee type, used to distinguish whether it is commodity tax or freight tax, the enumerated values are as follows product_tax: commodity tax shipping_tax: freight taxExample:shipping_tax
taxable booleanTax or not?Example:true
title stringProduct titleExample:Nice looking skirt
variant_id stringProduct SKU serial numberExample:18056761559987524812644011
variant_title stringCommodity attribute value, multiple divided by " / ", such as: "155 / red / large"Example:big
vendor stringSupplierExample:Supplier
name stringCustom order numberExample:test1001
note stringMerchant notesExample:Notes
note_attributesobject[]
Merchant note log, date contentcreate_time stringRemark creation time (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
name stringRemark source (seller ID)Example:Notes source
value stringNotesExample:Notes
order_status_url stringOrder status page URLExample:https://shoptest.myshoplinestg.com/trade/thank_you?mainOrderMark=xxx&mainOrderSeq=200565776406008509
payment_detailsobject[]
Payment slip informationcreate_time stringPayment slip creation timeExample:2012-05-01T14:22:25-04:00
order_seq stringOrder numberExample:23057287797738260472676128
pay_amount doublePayment amountExample:3.25
pay_channel_deal_id stringExternal channel payment serial numberExample:pi_3MI897Hezv8FxjBO1uGxMPhX
pay_seq stringPayment slip numberExample:23057287797738260472676128
pay_status stringPayment slip status , unpaid- not paid ; pending- paying ; risking- wind control ; paid-paid ; paid_overtime- payment failed ; paid_failed- payment failure ;Example:unpaid
processed_at stringPayment creation time , format : 2023-04-12T22 : 59 : 52+08 : 00Example:2023-04-12T22:59:52+08:00
status_code stringpayment status codeExample:RISK_PENDING
status_msg stringPayment order status code descriptionExample:PENDING_REVIEW
payment_gateway_names arrayList of payment methods, list of payment methods used for this order, SLpayments, Paypal (PayPal payment), Oceanpay (Oceanpayment), TwoCheckout, AsiaBill, Stripe, Pacypay, WorldPay, COD (cash on delivery), CUSTOM (custom), adjustPay (funding adjustment), Xendit (xendit credit card), XenditOtherExample:PayPal
phone stringBuyer contact information, there must be one of the twoExample:12903001000
presentment_currency stringBuy side currency, same as sell side currencyExample:USD
processed_at stringProcessed_at time , format : 2023-04-12T22 : 59 : 52+08 : 00Example:2023-04-12T22:59:52+08:00
processed_user_id stringorder creatorExample:4201057495
refundsobject[]
Refund listcreated_at stringRefund form creation time (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
id stringRefund IDExample:2605659027312156877634
note stringRefund NotesExample:Refund Notes
order_id stringOrder numberExample:21056577640603870897253153
processed_at stringUpdate time (see IOS8601 for the format)Example:2012-05-02T14:22:25-04:00
refund_line_itemsobject[]
Refund Detailsid stringOrder number for this adjustment of the single linkExample:2605659027312156877634
line_itemobject
Refund Product lineattribute stringProduct attributes : name-attribute value multiple comma " , " division like : color-red , size-xExample:red
fulfillable_quantity integerAvailable quantityExample:2
fulfillment_service stringLogistics company nameExample:Sf
fulfillment_status stringThe shipping status of the product, shipping status, fulfilled-shipped; partial-partially shipped; null-unshipped;Example:fulfilled
grams doubleWeight ( grams )Example:100
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:312
name stringSKU title, same as titleExample:test-002
price stringCommodity price, precision 2Example:3.25
product_id stringSPU serial numberExample:16056761559984840457934011
quantity integerQuantity of items in the orderExample:2
requires_shipping booleanShipping or notExample:true
sku stringProduct code, barCodeExample:18056761559987524812644011
tax_linesobject[]
Tax informationprice stringTax, precision 2Example:3.25
price_setobject
Multi-currency information of taxpresentment_moneyobject
Buy side currencyamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1
title stringTax titleExample:tax
taxable booleanTax or not?Example:true
title stringProduct titleExample:Beautiful skirt
variant_id stringProduct SKU serial numberExample:18056761559987524812644011
variant_title stringCommodity attribute value, multiple divided by " / ", such as: "155 / red / large"Example:big
vendor stringSupplierExample:Supplier
line_item_id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:302
quantity integerQuantity, quantity of goodsExample:2
restock_type stringInventory return type, no_restock-not returned, cancel-cancelled, return-returned only not returnedExample:no_restock
subtotal doubleTotal refund amount, precision 2Example:3.25
subtotal_setobject
Total refund amount, multi-currency information, same on seller and buyer sidepresentment_moneyobject
Buy side currencyamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
total_tax doubleTax amount of refunded goods, precision 2total_tax_setobject
Total tax amount, multi-currency informationpresentment_moneyobject
Buy side currencyamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side currencyamount stringAmountExample:3.25
currency_code stringCurrencyExample:USD
transactionsobject[]
Refund transaction informationamount stringRefund amount , accuracy 2Example:3.25
created_at stringCreation timeExample:2012-05-01T14:22:25-04:00
currency stringCurrencyExample:USD
id stringRefund IDExample:2605659027312156877634
kind stringTransaction type (authorization, capture, sale, void, refund)Example:authorization
order_id stringOrder numberExample:21056577640603870897253153
processed_at stringRefund order update time ( format see IOS8601 )Example:2012-05-01T14:22:25-04:00
status stringHandling status, pending, failure, success, and errorExample:pending
user_id stringBuyer IDExample:4201057495
user_id stringUser IDExample:4201057495
shipping_addressobject
Shipping addressaddress1 stringAddress 1Example:Address 1
address2 stringDetailed address 2, optionalExample:Address 2
city stringCityExample:New York
company stringCompany nameExample:New company name
country stringCountryExample:Usa
country_code stringCountry codeExample:US
first_name stringLast nameExample:Tom
last_name stringFirst nameExample:Washington
latitude stringLatitudeExample:15
longitude stringLongitudeExample:41
name stringFull nameExample:Tom Washington
phone stringPhoneExample:1320987655
province stringProvinceExample:California
province_code stringProvince codeExample:4200006
zip stringPostal codeExample:92503
shipping_linesobject[]
Logistics informationcode stringLogistics numberExample:SF
discount_allocationsobject[]
Discount Detailsamount stringDiscount amount, precision 2Example:8.00
amount_setobject
Discount Multi-Currency Amountpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Amount information on the store sideamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
discount_application_index integerDiscount index information : marked in the position of the discount detailsExample:1
discounted_price stringDiscount amount, precision 2Example:8.00
discounted_price_setobject
Discount Multi-Currency Amountpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Amount information on the store sideamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
phone stringPhoneExample:13243214565
price stringLogistics freight, precision 2Example:8.00
price_setobject
Logistics freight multi-resource informationpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Amount information on the store sideamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
requested_fulfillment_service_id stringTransportation service codeExample:LX88888
shipping_price stringThe value of the original shipping fee (not the amount after the discount)Example:8.00
source stringShipping sourceExample:source
tax_linesobject[]
Logistics tax listprice stringtaxExample:8.00
price_setobject
Multi-currency information of taxpresentment_moneyobject
Buyer side amount informationamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1
title stringTax nameExample:tax
title stringLogistics nameExample:SF International
store_id stringstore IDExample:1644828244663
subtotal_price stringTotal product price after discount, total product price - marketing discount - artificial discountExample:3.25
subtotal_price_setobject
Multi-currency information of total product price after discountpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
tags stringorder labelExample:Tag
tax_linesobject[]
Tax informationprice stringTax amountExample:3.25
price_setobject
Multi-currency information of taxpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:USD
currency_code stringCurrencyshop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1
title stringTax nameExample:tax
tax_number stringTINExample:111111
tax_type stringTypes of tax IDExample:type
taxes_included booleanDoes the total include tax?total_discounts stringTotal discount, marketing discount + artificial discountExample:3.25
total_discounts_setobject
Multi-currency information of discount totalpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:3.25
currency_code stringCurrencyExample:USD
total_line_items_price stringSum of original prices of goods, precision 2Example:8.00
total_line_items_price_setobject
Sum of original price of goods, multi-currency informationpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
total_outstanding stringSum of unpaid amount, precision 2Example:8.00
total_shipping_price_setobject
Order shipping sum, multi-currency informationpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
total_tax stringSum of taxes, precision 2, commodity tax + shipping taxExample:8.00
total_tax_setobject
Tax summation, multi-currency informationpresentment_moneyobject
Buyer side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount, Precision 2Example:8.00
currency_code stringCurrencyExample:USD
total_tip_received stringTip, precision 2Example:8.00
total_weight doubleTotal product weight ( g )Example:100
updated_at stringOrder update time, (see IOS8601 for the format)Example:2012-05-01T14:22:25-04:00
user_id stringBuyer IDExample:4201057495
user_errorsobject[]
Error prompt information in this execution , if the implementation result is wrong , this field will return error informationcode stringWrong codeExample:illegal param
field arrayPath that causes incorrect input fieldsExample: ``message stringError message
API Explorer
Debugger
Was this article helpful to you?
Error loading component.