chargeguard
v0.1.0
Published
CLI for the ChargeGuard public API: card-network chargeback reason codes (Visa, Mastercard, Amex), response deadlines per gateway, and free store audits.
Maintainers
Readme
chargeguard
CLI for the ChargeGuard public API: card-network chargeback reason codes (Visa, Mastercard, Amex), response deadlines per gateway, and free store audits.
Zero dependencies. Node 18+.
Install
npm install -g chargeguardOr run without installing:
npx chargeguard codesWhat you get
- The 9 card-network reason codes that cover most e-commerce chargebacks (Visa 10.4/13.1/13.2/13.6/13.7, Amex 4515, Mastercard 4837/4853/4863): what each means, the evidence that wins the representment, and the response window.
- Response deadlines per gateway (Stripe, PayPal, Braintree, Adyen, Shopify Payments) and per network.
- Free store audit: submit your store and get a written report on dispute risk, agent readiness and evidence gaps.
Usage
# list the covered reason codes
chargeguard codes
# one code: meaning, winning evidence, response window
chargeguard code 13.2
chargeguard code visa-13-1
# response windows per gateway and per network
chargeguard deadlines
# request the free store audit
chargeguard audit --url https://mystore.com --email [email protected] --company "My Store" --platform shopify
# raw JSON output on any command
chargeguard code 13.2 --jsonOptions: CHARGEGUARD_API_BASE overrides the API base URL (default https://www.trychargeguard.com).
HTTP API
The CLI wraps the same public endpoints you can call directly:
GET /api/public/reason-codes— all codes (?network=visato filter)GET /api/public/reason-codes/{slug}— one code, with gateway notesGET /api/public/deadlines— response windowsPOST /api/audit-request— free store audit (also exposed as an MCP tool)
MCP server (ChatGPT connector, Claude, agents): https://www.trychargeguard.com/mcp
Why
Chargeback response windows are short (7-45 days depending on network and gateway) and the evidence rules differ per reason code. This CLI puts the reference data one command away, wherever you work.
Related
- ChargeGuard — AI-powered chargeback defense, flat $149/mo, no percentage fees
- Reason code guides
License
MIT
