Fairshop 3PL Invoices

v0.1.0
io.github.fpavia111-creator/fairshop-3pl-invoices Checked 2 days ago Published 5 days ago

Audits a 3PL invoice line by line against your rate card, shipped orders, receipts and pallet counts

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fairshop_info

Show this pack: pinned model, mode, caps, Auto opt-ins, and the allow/ask/block decision for every tool.

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

ParameterTypeDescription
path *stringA CSV, TSV, Excel .xlsx, JSON or JSONL file under the root
asstringSource kind to read it as (default: every kind this agent declares, best match first)
sheetstring | integerExcel sheet name or 0-based index (default: first visible sheet)

fulfillment_audit Audit the 3PL invoice

[ALLOW] Check every invoice line against your rate card and your own counts; returns what to dispute and what to ask about, by fee type.

ParameterTypeDescription
invoice *string3PL invoice detail under --root: invoice number, date, charge type, reference (order, ASN or period), quantity, rate, amount
ratecard *stringRate card JSON from your 3PL agreement: rates per charge, wording aliases, tolerance
palletsstringYour own pallet counts under --root (optional): period, pallets
receiptsstringReceipts under --root (optional): ASN or PO, units received
shippedstringOrders the 3PL shipped for you under --root (optional): order, units

fulfillment_explain Explain one charge

[ALLOW] Show every invoice line for one reference and why it was flagged.

ParameterTypeDescription
invoice *string3PL invoice detail under --root: invoice number, date, charge type, reference (order, ASN or period), quantity, rate, amount
ratecard *stringRate card JSON from your 3PL agreement: rates per charge, wording aliases, tolerance
reference *stringOrder, ASN or period on the invoice, or a line id from fulfillment_audit
palletsstringYour own pallet counts under --root (optional): period, pallets
receiptsstringReceipts under --root (optional): ASN or PO, units received
shippedstringOrders the 3PL shipped for you under --root (optional): order, units

fulfillment_write_report Write the 3pl-invoice worklist

[ALLOW] Write 3pl-invoice.csv and .html (by fee type, every line to dispute or ask about) into out_dir (default fairshop-out/fulfillment).

ParameterTypeDescription
invoice *string3PL invoice detail under --root: invoice number, date, charge type, reference (order, ASN or period), quantity, rate, amount
ratecard *stringRate card JSON from your 3PL agreement: rates per charge, wording aliases, tolerance
out_dirstringFolder under --root for the report files (default fairshop-out/fulfillment)
palletsstringYour own pallet counts under --root (optional): period, pallets
receiptsstringReceipts under --root (optional): ASN or PO, units received
shippedstringOrders the 3PL shipped for you under --root (optional): order, units

fulfillment_draft_invoice_dispute Draft a invoice dispute

[ASK] Write drafts/invoice_dispute-<provider>.md listing every line to credit or explain. Marked DRAFT. Sending goes through fulfillment_request_send (one click); a person sends it.

ParameterTypeDescription
invoice *string3PL invoice detail under --root: invoice number, date, charge type, reference (order, ASN or period), quantity, rate, amount
ratecard *stringRate card JSON from your 3PL agreement: rates per charge, wording aliases, tolerance
fromstringYour name and company
out_dirstringFolder under --root for the files this writes (default fairshop-out/fulfillment).
palletsstringYour own pallet counts under --root (optional): period, pallets
providerstring3PL name
receiptsstringReceipts under --root (optional): ASN or PO, units received
shippedstringOrders the 3PL shipped for you under --root (optional): order, units

fulfillment_request_send Approve the invoice dispute (one click)

[ASK · binding_send] After one named human click (even in Auto), record that the reviewed invoice dispute draft is approved in invoice_dispute-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. A person on your team acts on it; the agent never does.

ParameterTypeDescription
draft *stringDraft path returned by the draft tool
draft_sha256 *stringsha256 returned by the draft tool
accept_open_issuesbooleanSet true, together with a note, to go ahead while open markers or issues remain. Default false (refused while any remain).
notestringWhy it is fine to go ahead with open issues; required when accept_open_issues is true. Kept in the audit log.
out_dirstringFolder under --root for the files this writes (default fairshop-out/fulfillment).
tostringWho it goes to; must match the draft when the draft names someone

invoice_pay Invoice pay

[BLOCK · move_money] Listed so agents can see it is refused. Fairshop 3PL Invoices never pays an invoice.

portal_dispute_submit Portal dispute submit

[BLOCK · binding_send] Listed so agents can see it is refused. Fairshop 3PL Invoices never files a dispute in a 3PL portal.