Swap Get Returns

It uses the following Swap Returns API V2 endpoint: https://docs.api-swap-os.com/products/returns/returns-reference/get-external-returns-v-2/

Note: This action requires a Swap Module Connection to be set up.

Inputs

NameTypeDescription
Search ByStringThe field to search returns by. One of: Order Number, Email, Custom Query.
ValueStringThe value to search for, corresponding to the selected Search By field.
ResultsOptional NumberNumber of results to return. Defaults to 3.
Safe ModeOptional BooleanIf set to True, errors are logged in the Action Outputs instead of stopping the Flow. Defaults to False.

Outputs

NameTypeDescription
SuccessBooleanWhether the API call was successful and returns data was retrieved
Returns DataListFull list of return objects returned by the Swap API
Latest Return DataObjectThe most recent return object from the results
Return StatusStringThe status of the most recent return
Return Created DateStringThe date the most recent return was created
Return Status Updated DateStringThe date the most recent return was last updated
Shipping CarrierStringThe shipping carrier used for the most recent return
Return ShipmentsListList of shipment objects associated with the most recent return
Return ProductsListList of product objects included in the most recent return