Fairhaul Returns Tracking
v0.1.0Follows every return from authorisation to credit
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fairhaul_info
Show this pack: pinned model, mode, caps, Auto opt-ins, and the allow/ask/block decision for every tool.
fairhaul_inspect_input
Show how a CSV, TSV, Excel, JSON or JSONL file under the root would be read: its format, which export it looks like, which of its columns map to this pack's columns, and what each column holds. Returns column names and shapes only, never cell values. Use it before a tool when a file comes straight from another system.
| Parameter | Type | Description |
|---|---|---|
path * | string | A CSV, TSV, Excel .xlsx, JSON or JSONL file under the root |
as | string | Source kind to read it as (default: every kind this agent declares, best match first) |
sheet | string | integer | Excel sheet name or 0-based index (default: first visible sheet) |
returns_track Follow returns from label to credit
[ALLOW] Each RMA's stage (awaiting return, label unused, received not credited, credited not received, closed), every point found with its amount, and return value and freight by reason, customer and SKU.
| Parameter | Type | Description |
|---|---|---|
rmas * | string | Return authorisations under --root: RMA, customer, SKU, units, value, reason, date authorised, return label tracking, status |
as_of | string | Date to judge ages from (default today) |
charges | string | Optional return freight billed by carriers: tracking, carrier, amount, invoice number, invoice date |
credit_days | integer | Days after receipt by which a credit is expected (default 7) |
credits | string | Optional credits or refunds issued: RMA, amount, date, credit memo number |
receipts | string | Optional returns received at the warehouse: RMA or tracking, date received, units received, condition |
unused_days | integer | Days after authorisation with nothing received before the label counts as unused (default 30) |
returns_write_report Write the returns report
[ALLOW] Write returns.csv and .html (points found; every RMA with its stage; by reason, customer and SKU) into out_dir (default fairhaul-out/returns).
| Parameter | Type | Description |
|---|---|---|
rmas * | string | Return authorisations under --root: RMA, customer, SKU, units, value, reason, date authorised, return label tracking, status |
as_of | string | Date to judge ages from (default today) |
charges | string | Optional return freight billed by carriers: tracking, carrier, amount, invoice number, invoice date |
credit_days | integer | Days after receipt by which a credit is expected (default 7) |
credits | string | Optional credits or refunds issued: RMA, amount, date, credit memo number |
out_dir | string | Folder under --root for the report (default fairhaul-out/returns) |
receipts | string | Optional returns received at the warehouse: RMA or tracking, date received, units received, condition |
unused_days | integer | Days after authorisation with nothing received before the label counts as unused (default 30) |
returns_draft_carrier_dispute Draft a carrier dispute
[ASK] Write drafts/carrier_dispute-<carrier>.md: return freight charges from one carrier billed twice or on tracking numbers with no return authorised, with the total to credit. Marked DRAFT. Sending goes through returns_request_send (one click).
| Parameter | Type | Description |
|---|---|---|
carrier * | string | Carrier to dispute with, as named in the charges file |
charges * | string | Optional return freight billed by carriers: tracking, carrier, amount, invoice number, invoice date |
rmas * | string | Return authorisations under --root: RMA, customer, SKU, units, value, reason, date authorised, return label tracking, status |
as_of | string | Date to judge ages from (default today) |
credit_days | integer | Days after receipt by which a credit is expected (default 7) |
credits | string | Optional credits or refunds issued: RMA, amount, date, credit memo number |
from | string | Your name |
out_dir | string | Folder under --root for the files this writes (default fairhaul-out/returns). |
receipts | string | Optional returns received at the warehouse: RMA or tracking, date received, units received, condition |
to | string | Carrier billing contact |
unused_days | integer | Days after authorisation with nothing received before the label counts as unused (default 30) |
returns_request_send Approve the carrier dispute (one click)
[ASK · binding_send] After one named human click (even in Auto), record that the reviewed carrier dispute draft is approved in carrier_dispute-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. Your returns or freight audit person acts on it; the agent never does.
| Parameter | Type | Description |
|---|---|---|
draft * | string | Draft path returned by the draft tool |
draft_sha256 * | string | sha256 returned by the draft tool |
accept_open_issues | boolean | Set true, together with a note, to go ahead while open markers or issues remain. Default false (refused while any remain). |
note | string | Why it is fine to go ahead with open issues; required when accept_open_issues is true. Kept in the audit log. |
out_dir | string | Folder under --root for the files this writes (default fairhaul-out/returns). |
to | string | Who it goes to; must match the draft when the draft names someone |
erp_issue_credit Erp issue credit
[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Returns Tracking never issues, reverses or changes customer credits.
carrier_void_label Carrier void label
[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Returns Tracking never voids labels with carriers.
email_send Email send
[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Returns Tracking never emails carriers or customers.