ForthRoute Returns

v1.0.1
io.forthroute/returns Checked 1 day ago Published 11 days ago

Search, 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.

ParameterTypeDescription
cursorstringnext_cursor from a previous call.
daysintegerOnly returns created in the last N days.
include_testboolean
limitinteger
querystringOrder number (e.g. #1001), RMA, customer name/email, or return reason.
reasonstringSubstring filter on return_reason (e.g. damaged, wrong size).
resolutionstringFilter by resolution/refund_type (e.g. REFUND, EXCHANGE, STORE_CREDIT).
statusarrayOnly these statuses. REQUESTED = awaiting review.

get_return Get return details

Full details of one return: items, customer, order, shipping/tracking, timestamps and status history.

ParameterTypeDescription
return_id *integerForthRoute 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.

ParameterTypeDescription
daysintegerLookback 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.

ParameterTypeDescription
return_id *integerForthRoute 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.

ParameterTypeDescription
daysintegerLookback 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.

ParameterTypeDescription
average_order_value *numberAverage order value in store currency.
monthly_orders *numberMonthly order volume.
return_rate_percent *numberReturn rate as a percentage (e.g. 12 for 12%).
exchange_conversion_percentnumberShare of returns converted to exchanges/store credit.
gross_margin_percentnumberProduct gross margin percentage.
keep_it_share_percentnumberShare of low-margin returns resolved via keep-it.
return_handling_costnumberReverse 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.

ParameterTypeDescription
item_price *numberRetail selling price of the item.
landed_unit_cost *numberLanded COGS per unit.
return_shipping_and_handling *numberReturn label + warehouse handling cost.
resale_recovery_percentnumberExpected 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.

ParameterTypeDescription
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.

ParameterTypeDescription
return_id *integer
message_to_customerstringOptional note included in the decline email.
reasonstring