Returns APIs have inconsistent side effects on Sales Reports

Returns APIs have inconsistent side effects on Sales Reports

jake-frate
Shopify Partner
16 1 4

I work on a Shopify Returns App that heavily uses the Returns & Exchanges API. I am writing this message to ask for some clarification around unexpected behaviours that I noticed when using the API. I am referring specifically to how the Shopify Analytics (i.e., sales reports) are affected by the usage of the Returns & Exchanges API.

 

What you will see in the following examples is that, sometimes the returnCreate action does not affect the sales report while the refundCreate action does (Example 1), sometimes the returnCreate action does affect the sales report while the refundCreate action does not (Example 2), and sometimes both actions affect the sales report (Example 3).

 

Please see the examples below and see if you have any idea why we see these different behaviours. Thanks.

 

Example 1 (Refund action affects sales report):

Timeline:

  1. Sep 29: Two items were purchased, their SKUs prefixed with “S2199” and “ROU”
  2. Oct 15: We created a return using returnCreate for “S2199”, and clearly the sales report was NOT affected
  3. Oct 17: We created a refund using refundCreate, and clearly the sales report WAS affected

example1.png

 

Example 2 (Return action affects sales report):

Timeline:

  1. Oct 13: Three items were purchased, their SKUs are “12757”, “10188”, and “11333”
  2. Oct 22: We created a return using returnCreate for “11333”, and clearly the sales report WAS affected
  3. Oct 24: We created a refund using refundCreate, and clearly the sales report was NOT affected

Screenshot 2024-10-24 at 11.19.13 AM.png

 

Example 3 (Return action AND Refund action affects sales report):

Timeline:

  1. Sep 15: Two items were purchased, their SKUs are “12488” and “12490”
  2. Oct 2: We created a return using returnCreate, and clearly the sales report WAS affected
  3. Oct 8: We created a refund using refundCreate, and clearly the sales report WAS affected AGAIN, doubly decreasing the quantity of the return items!

 

Screenshot 2024-10-24 at 9.55.26 AM.png

Replies 0 (0)