ForthRoute Returns
v1.0.1Search, review, approve and decline Shopify returns in ForthRoute (OAuth, merchant account).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_returns Search returns
Find returns in this store, newest activity first. Filter by order number, RMA, customer name or email, return reason (e.g. damaged), resolution, status, or recent days. Excludes onboarding test returns unless include_test is true.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from a previous call. |
days | integer | Only returns created in the last N days. |
include_test | boolean | |
limit | integer | |
query | string | Order number (e.g. #1001), RMA, customer name/email, or return reason. |
reason | string | Substring filter on return_reason (e.g. damaged, wrong size). |
resolution | string | Filter by resolution/refund_type (e.g. REFUND, EXCHANGE, STORE_CREDIT). |
status | array | Only these statuses. REQUESTED = awaiting review. |
get_return Get return details
Full details of one return: items, customer, order, shipping/tracking, timestamps and status history.
| Parameter | Type | Description |
|---|---|---|
return_id * | integer | ForthRoute return id from search_returns. |
get_returns_overview Returns overview
Counts of returns by status, how many await review and since when, top return reasons, and returns created in the last 30 days.
get_return_reason_and_sku_analytics Return reason and SKU analytics
Summarize top return reasons, highest-return SKUs, total return value, and damaged/defective counts over a recent day window.
| Parameter | Type | Description |
|---|---|---|
days | integer | Lookback window in days (default 30). |
explain_label_failure Explain a label failure
Use this when a merchant asks why a return has no prepaid shipping label, or why buying the label failed. Reads the stored result of the last label attempt for one return, together with the store's label billing approval and return address, and says in plain words what is wrong and what to do next. Read-only: it does not retry or buy a label and it does not contact the carrier.
| Parameter | Type | Description |
|---|---|---|
return_id * | integer | ForthRoute return id from search_returns. |
get_label_costs Get label costs
Use this when a merchant asks what prepaid return labels cost in a period. Adds up the labels bought in the last N days: how many and what ForthRoute billed the store through Shopify, in total, per carrier and per shopper country. Read-only. Leaves out test returns and does not show fees a shopper paid.
| Parameter | Type | Description |
|---|---|---|
days | integer | Lookback window in days (default 30). |
calculate_return_profit_impact Calculate return profit impact
No sign-in required. Estimate monthly and annual profit recovered by shifting refunds to instant exchanges and keep-it returnless rules.
| Parameter | Type | Description |
|---|---|---|
average_order_value * | number | Average order value in store currency. |
monthly_orders * | number | Monthly order volume. |
return_rate_percent * | number | Return rate as a percentage (e.g. 12 for 12%). |
exchange_conversion_percent | number | Share of returns converted to exchanges/store credit. |
gross_margin_percent | number | Product gross margin percentage. |
keep_it_share_percent | number | Share of low-margin returns resolved via keep-it. |
return_handling_cost | number | Reverse shipping + inspection cost per return. |
evaluate_keep_it_or_exchange_rule Evaluate keep-it or exchange rule
No sign-in required. Calculate whether a return should use a keep-it refund, instant exchange, or physical return based on unit cost, reverse shipping, and resale recovery.
| Parameter | Type | Description |
|---|---|---|
item_price * | number | Retail selling price of the item. |
landed_unit_cost * | number | Landed COGS per unit. |
return_shipping_and_handling * | number | Return label + warehouse handling cost. |
resale_recovery_percent | number | Expected share of COGS recovered if returned and resold. |
approve_return Approve a return
Approve one REQUESTED return in Shopify, the same as clicking Approve in ForthRoute. The customer is emailed, and a prepaid label may be purchased according to the store's label settings. Does not issue the refund.
| Parameter | Type | Description |
|---|---|---|
return_id * | integer |
decline_return Decline a return
Decline one REQUESTED return in Shopify, the same as clicking Decline in ForthRoute. The customer is emailed.
| Parameter | Type | Description |
|---|---|---|
return_id * | integer | |
message_to_customer | string | Optional note included in the decline email. |
reason | string |