Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference

REST API

Quick start
getList DisputesgetGet DisputegetGet Dispute StatsgetGet Dispute SettingsputUpdate Dispute SettingspostPreview Dispute EvidencepostRegenerate Dispute EvidencepostSubmit Dispute EvidencepostProvision Dispute WebhookdelDelete Dispute WebhookpostSync Disputes
Disputes

Get Dispute Stats

Counts and amounts for the project's disputes: open, won, lost, and the last 30 days and 12 months.

GET
/projects/{projectId}/dispute-stats

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://www.saasco.com/api/v2/projects/string/dispute-stats"
{
  "amountDisputedLast12moCents": -9007199254740991,
  "amountDisputedLast30dCents": -9007199254740991,
  "countLast12mo": -9007199254740991,
  "countLast30d": -9007199254740991,
  "lost": -9007199254740991,
  "pending": -9007199254740991,
  "total": -9007199254740991,
  "totalAmountDisputedCents": -9007199254740991,
  "won": -9007199254740991
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

Get Dispute

Fetches one Stripe dispute stored for the project, including the evidence drafted for it.

Get Dispute Settings

Reads dispute settings and whether a webhook signing secret is stored. The secret itself is not returned.