Shopify Get Returns

Retrieves all returns associated with a Shopify order using the Shopify GraphQL Admin API. Provide an order ID and the action returns detailed information for each return, including:

  • Return status — current state of the return (OPEN, CLOSED, etc.) along with created and closed timestamps.
  • Return line items — each item being returned with quantities (processable, processed, refundable, refunded), SKU, variant details, and customer/reason notes.
  • Exchange line items — any items exchanged as part of the return.
  • Refunds — refund records linked to the return.
  • Reverse deliveries — shipping details for the return including carrier name, tracking number, tracking URL, label URL, and per-item delivery line items.
  • Decline info — decline details if the return was declined.

Inputs

NameTypeDescription
Order IDStringShopify order ID

Outputs

NameTypeDescription
SuccessBooleanWhether the order was found and has returns
ReturnsObjectArray of return details
Number of ReturnsNumberTotal number of returns found
Shopify ErrorsObjectGraphQL errors returned by Shopify (if any)
ErrorStringError message when found is false or on invalid input
HintStringHint for the error