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

List Disputes

Lists Stripe disputes stored for the project. Search matches the customer email and the Stripe ids.

GET
/projects/{projectId}/disputes

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project.

Query Parameters

searchstring
skipinteger

Number of disputes to skip before collecting results.

Default: 0
sortBystring

Field to sort by. Defaults to when Stripe created the dispute.

Default: "stripeCreatedAt"Value in: "stripeCreatedAt" | "createdAt" | "amount" | "reason" | "customerEmail" | "status" | "evidenceSubmittedAt" | "lastActivityAt"
sortDirstring

Sort direction. Defaults to descending.

Default: "desc"Value in: "asc" | "desc"
statusstring
takeinteger

Maximum number of disputes to return, between 1 and 100.

Default: 50

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/disputes"
{
  "items": [
    {
      "id": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "projectId": "string",
      "stripeDisputeId": "string",
      "stripeChargeId": "string",
      "stripePaymentIntentId": "string",
      "stripeCustomerId": "string",
      "customerEmail": "string",
      "amount": -9007199254740991,
      "currency": "string",
      "reason": "string",
      "status": "string",
      "evidenceSubmittedAt": "string",
      "evidenceJson": {
        "access_activity_log": "string",
        "billing_address": "string",
        "cancellation_policy": "string",
        "cancellation_policy_disclosure": "string",
        "cancellation_rebuttal": "string",
        "customer_communication": "string",
        "customer_email_address": "string",
        "customer_name": "string",
        "customer_purchase_ip": "string",
        "customer_signature": "string",
        "duplicate_charge_documentation": "string",
        "duplicate_charge_explanation": "string",
        "duplicate_charge_id": "string",
        "product_description": "string",
        "receipt": "string",
        "refund_policy": "string",
        "refund_policy_disclosure": "string",
        "refund_refusal_explanation": "string",
        "service_date": "string",
        "service_documentation": "string",
        "shipping_address": "string",
        "shipping_carrier": "string",
        "shipping_date": "string",
        "shipping_documentation": "string",
        "shipping_tracking_number": "string",
        "uncategorized_file": "string",
        "uncategorized_text": "string"
      },
      "evaluationJson": {
        "action": "fight",
        "confidence": "high",
        "isCompliance": true,
        "modelUsed": "string",
        "reasons": [
          "string"
        ],
        "source": "rules"
      },
      "lastNotifiedKind": "string",
      "receiptR2Key": "string",
      "serviceDocR2Key": "string",
      "submissionError": "string",
      "outcome": "string",
      "resolvedAt": "string",
      "stripeEvidenceDueBy": "string",
      "stripeCreatedAt": "string",
      "modelUsed": "string"
    }
  ],
  "total": -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": []
}

Subscribe Changelog

Subscribes an email address to changelog publish mail. Public and unauthenticated. Subscribing an address that is already on the list succeeds.

Get Dispute

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