Need help in retrieving single order using python shopify API

New Member
1 0 0

Hi i am trying to retrieve single order from shopify like order number #1001 but it shows me orders from #10019 10018 ..... and so on. i just want to reterive single order by Order number or order name not by order id. 

 

here is what i written

shopify_order = shopify.Order.find(name="#1001", since_id=1000, status='any', limit=50)
for ord in shopify_order:
   print(ord.name)

Result:
#10010
#10011
#10012
#10013
#10014
#10015
#10016
#10017
#10018
#10019

  it is not showing order 1001, 1002. or is there a better way to retrieve single order using python_shopify_Api. i will really appreciate. Thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
618 45 84

 

Hi @aleemtmalik,

 

Searching orders by name is not support in our REST API currently. 

 

It also looks to be unsupported by our GraphQL API, though there are a number of fields you can query on, which I've included below. Ideally you can become aware of the order id or one of the query params listed below. If you can add some extra context, I may be able to steer you in the right direction. Cheers

 

cart_token
channel_id
chargeback_status
checkout_token
created_at
credit_card_last4
customer_id
discount_code
email
financial_status
fraud_protection_level
fulfillment_status
location_id
processed_at
reference_location_id
risk_level
sales_channel
source_name
status
tag
test
updated_at

0 Likes