ReturnGO Search for Return
Searches for return using either order number or RMA ID. Uses the ReturnGO module connection, or the API Key and Shop Name inputs.
This action retrieves returns using either order number or RMA ID.
Selecting RMA:
- Gives return details for the associated RMA number - only 1 return possible
Selecting Order Name:
- Gives return details for the associated order number - can retrieve multiple returns
Authentication
The action uses the ReturnGO module connection when one is set up and has a complete auth header. It reads the auth header (x-api-key) and the shop name from the connection, so you can leave the API Key and Shop Name inputs unmapped.
If you map the Shop Name input, it overrides the connection's shop name. This lets one connection (one API key) serve several ReturnGO shops.
If there is no ReturnGO connection, or the connection has no complete auth header, the action uses the API Key and Shop Name inputs instead. If neither the connection nor the inputs provide an API key and a shop name, the action fails with a missing credentials error.
Inputs
In order to use the action in your flow you need to provide it with the following inputs:
| Input | Type | Description |
|---|---|---|
| Search Option | String | Possible values: RMA or Order Name. |
| ID | String | RMA: The ID of the RMA to get the details of. E.g. for RMA1234, the ID is 1234 Order Name: The ID of the order associated with the return - for Shopify customers, the field is typically called order_name |
| Shop Name | Optional String | This refers to the x-shop-name header in the API. The shop to operate on, e.g. example.myshopify.com. To find your shop URL, click on the "copy" icon next to your store name at the top of the ReturnGO dashboard. Optional when a ReturnGO connection is set up. If mapped, it overrides the connection's shop name. |
| API Key | Credentials | The ReturnGO API key (sent as the x-api-key header). Leave unmapped when a ReturnGO connection is set up. |
Outputs
| Output | Type | Description |
|---|---|---|
| Success | Boolean | True if managed to find return; False if no return found. |
| All Returns Data | Object | Object containing all of the returns data associated with an order number (this output is only relevant if you select the 'Order Name' search option. |
| Latest Return Data | Object | Object containing data on the latest return |
This action uses the following ReturnGO endpoints:
- GET /rmas
- We're using the filters pagesize = 10 and order_name in the query parameters
- GET /rma/{{rmaid}}
https://static.returngo.ai/api-doc/returngo-api-swagger.html#/Returns/ReturnsController_list
Updated 6 days ago
