Receiving Returns Data
Each time a customer initiates a return, a Loop webhook will deliver details of the return to a pre-defined endpoint. This data can be leveraged to create a record (RA, RMA, etc) in a third party system. Subscribers can choose to receive webhooks upon the creation of a return, when the return status has been changed, or both.
In some cases, it’s best to pull returns from Loop on a recurring basis. This can be done using either of two endpoints, each delivering varying fidelities of returns data during a specified period (date parameters):
API responses can be found in the documentation above.
There are three actions that can be taken via the API:
- Process return
- Flag return
- Cancel return
When a return has met merchant criteria and is approved, hitting the Process Return endpoint will process the return and execute the customer’s requested outcome in Shopify.
Returns that require additional action can be flagged via the Flag Return endpoint. These returns will be sent to the “Needs Review” section of the Loop admin and can be actioned on a case by case basis by the merchant.
Although typically actioned manually by the merchant to handle edge cases, the Cancel Return endpoint can be leveraged to cancel a return within Loop.
1. Can I send custom parameters through the flag endpoint?
Currently, no. However, this functionality will be included in future API enhancements