Copy for Claude Code

Click Copy full API spec, then paste it into Claude Code. It's a single self-contained Markdown document covering every endpoint, every field, the calculation rules and live examples โ€” enough for an assistant to write a correct integration without seeing this codebase.

Endpoints at a glance

MethodPathPurpose
POST/api/calculate-sports-ngrPrimary. Calculate GGR/NGR for a bet (single or multi-leg). Returns values (numbers) + data (display strings).
POST/api/calculate-ngrSingle-bet variant. Flat top-level fields + ngrDetailed running total.
GET/api/tax-ratesPOC & GST rates by state.
GET/api/racing-feesAll racing bodies + rates. Also /:stateCode.
GET/api/sport-feesAll sport bodies + rates. Also /:bodyCode.
GET/api/operational-feesBank fee and other operational rates.
GET/api/transaction-typesTransaction type reference list.
GET/api/healthService + DB health.
POST/api/update-racing-feesAdmin: update racing rates.
POST/api/update-sport-feesAdmin: update sport rates.
POST/api/update-tax-ratesAdmin: update POC/GST.
POST/api/update-operational-feesAdmin: update bank fee etc.
GET / POST/api/racing-contract/:bodyCode
/api/sport-contract/:bodyCode
Download / upload a body's contract PDF.

Full specification

โœ“ Copied to clipboard