Query draft order
GET https://{handle}.myshopline.com/admin/openapi/v20220901/orders/draft_orders.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
.Draft list
Query Parameters
- ids stringDraft order number , multiple separated by ',' and maximum support of 100Example:
2505233516032597691280,2505246049176982916464
- limit integerQuery of query quantity , default 50 , can not exceed 1000Example:
10
- page_info stringThe encrypted request parameters are used for the previous page and the next page, and the field is directly parsed and accessed.
- status stringDraft order status , open- processing , completed- has been completedExample:
open
- updated_at_max stringDraft order update time ( end ) ( format see IOS8601 )Example:
2023-01-05T10:05:45+00:00
- updated_at_min stringDraft order update time ( start ) ( format see IOS8601 )Example:
2023-01-04T10:05:45+00:00
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
link
Contain the request parameters of the previous page and the next pagetraceId
traceId
Response Body
draft_ordersobject[]
Draft order listing informationbilling_addressobject
Payment slip addressaddress1 stringDetailed address information 1 , used as complementary informationExample:8899 Garfield Street
address2 stringDetailed address information 2 , used as complementary informationExample:Apartment 5
area stringAdministrative region namearea_code stringAdministrative district encoding , custom numberExample:4200006
city stringCity nameExample:Riverside
city_code stringCity coding , custom numberExample:4200006
company stringCompany nameExample:SHOPLINE
country stringCountry nameExample:Usa
country_code stringCountry or region code , two ISO-3166-1Example:US
email stringUser mailboxExample:test@test.com
first_name stringUser nameExample:Tom
last_name stringUser last nameExample:Washington
phone stringConsignee contactExample:13100000000
province stringState or provincial nameExample:California
province_code stringState or provincial code , custom numberExample:4200006
same_as_receiver booleanSame as receiving information : true、falseExample:true
street_name stringStreet namestreet_number stringStreet encoding , custom numberingExample:4200006
zip stringShipping address postal numberExample:92503
create_by stringCreator account idExample:4201057379
create_time longCreate time , time stamp formatExample:1667638652832
currency stringStore currencyExample:USD
customerobject
Buyer informationarea_code stringContact area idemail stringUser mailboxid stringUser IDphone stringUser mobile phone numberid stringDraft order numberExample:2505659131831930856670
invoice_url stringInvoice linkline_itemsobject[]
Listing listapplied_discountobject
Product custom discount informationamount stringDiscount amount , double type string for accuracy 2 , eg : " 12.41 "Example:1.00
before_amount stringProduct selling price , double type string for precision 2 , eg : " 12.41 "Example:3.00
description stringDiscount descriptionExample:5 yuan off for two more pieces
title stringDiscount nameExample:Full reduction
value stringDiscount amount, discount value, when the discount type is DISCOUNT_AMOUNT_PERCENTAGE, the minimum value is 0 and the maximum value is 100 by defaultExample:1.00
value_type stringDiscount type : fixed_amount ( fixed amount ) 、percentage ( % )Example:fixed_amount
gift_card booleanWei for gift cards or not : true、falseExample:true
id stringProduct line id , unique confirm a Product lineprice stringProduct amount after participating in custom discountsExample:2.00
product_id stringProduct s pu serial numberExample:16056577393789045351043258
product_source stringProduct source main_site main station product、customize custom productExample:main_site
quantity integerQuantity of items in the orderExample:1
requires_shipping booleanNeeds physical transportation and delivery or not : true、falseExample:true
taxable booleanTax collection or not : true、falseExample:true
title stringProduct titlevariant_id stringProduct SKU serial numberExample:18056577393793239655103258
variant_title stringProduct attribute valuelogistics_amount stringTotal shipping amountExample:2.00
logistics_tax stringTotal shipping taxExample:2.00
note stringDraft order noteExample:Customer wants to ship asap
note_attributesobject[]
Additional informationname stringNamevalue stringvalueorder_id stringOrder number generated by current draft orderExample:21056577640603870897253153
payment_termsobject
Payment channel informationpay_channel_deal_id stringExternal channel payment serial numberpay_status stringPayment slip status : after not paying for the paid draft order and generating the order , the payment slip state will not synchronize the payment status of the orderExample:unpaid
payment_channel_name stringPayment channelsproduct_tax stringProduct total taxExample:2.00
shipping_addressobject
Shipping address informationaddress1 stringDetailed address information 1 , used as complementary informationExample:8899 Garfield Street
address2 stringDetailed address information 2 , used as complementary informationExample:Apartment 5
city stringCity namecity_code stringCity coding , custom numberExample:Riverside
company stringCompany namecountry stringCountry nameExample:Usa
country_code stringCountry or region code , two ISO-3166-1Example:US
delivery_store_code stringStore code , custom numberExample:4200006
delivery_store_name stringStore namedistrict stringAdministrative region namedistrict_code stringAdministrative district encoding , custom numberExample:4200006
first_name stringFirst nameExample:Tom
last_name stringLast nameExample:Washington
name stringFull namephone stringContact numberExample:13100000000
province stringState or provincial nameExample:California
province_code stringState or provincial code , custom numberExample:4200006
street_name stringStreet namestreet_number stringStreet encoding , custom numberingExample:4200006
zip stringShipping address postal numberExample:92503
shipping_linesobject
Order logistics informationdelivery_id stringShipping method id , shipping template idprice stringLogistics shipping , double type string with accuracy 2Example:12.41
shipping_type stringLogistics type system- system logistics ; custom- custom logisticsExample:system
title stringShipping template namestatus stringDraft order status : open 、 completeExample:open
stock_reserved booleanOrder dimension inventory reserve mark : true、flaseExample:true
stock_reserved_time longOrder dimension inventory pre-reserved timeExample:1667638652832
tags arrayThe draft order tag uses separated by ',' between multiple tag rooms , and the shop dimension supports up to 99 tagExample:shine,bili
total_line_items_price stringCurrent draft order Product total amountExample:2.00
total_price stringCurrent total draft order amount , Product selling price-discount + tax + shippingExample:2.00
update_by stringUpdate account idExample:4201057379
update_time longUpdate time , time stamp formatExample:1667638652832
API Explorer
Debugger
Examples
Was this article helpful to you?
Error loading component.