d
Topic
Posts:
2
Last edited 10 days ago

REST API - Know chargeback_status from order

Hi,

I'm trying to get the chargeback_status from an order, I can do filtering in the web ui by chargeback_status but how can I do it using the REST API?

Also, which is the attribute in the order where I can see this status or the status is in other object related to the order?

Can someone help me here?

Thanks in advance

i
Replies
Josh Wheeler Shopify Employee
Posts:
322
8 days ago

Hey Rogelio, 

There's no documented method available for doing this, or field on an order object you could read to find out. Though I have heard of mixed success with GET requests to /admin/orders.json?chargeback_status=any.

However, given that isn't a documented field and not intended for normal use, if the result of the above GET request wasn't returning the expected result it isn't something we'd be able to support - and it could also potentially change at any time without warning (so use at your own risk). 

If you did know of an order that you suspected had a chargeback though, you could read the chargeback message to verify with our Event API endpoint.

 

 

Posts:
2
8 days ago

Thanks Josh for your response.

Looking your advice seems that I need to get order events and look for the fields "verb" where indicates the "dispute_won" or "dispute_lost" is that assumption correct?

What I'm trying look for is the chargeback_status of any order. 

Thanks in advance.

Josh Wheeler Shopify Employee
Posts:
322
7 days ago

Hey Rogelio, 

To my knowledge that would be the correct verbs, yes - there's a dispute_pending I believe as well. 

Is there any chance you have a test shop set up that is eligible to use our Shopify Payments payment gateway?

If you put Shopify Payments into test mode so you aren't making real transactions, you can actually simulate a chargeback using a dummy credit card number so you're able to test different scenarios and their results.