Codat · Schema

Commerce: Dispute

A customer may file a payment dispute with their bank or other card issuer when they're unsatisfied with their purchase or believe they have been charged incorrectly. For example: - They didn't receive an order. - The product they received was different to the commerce store's description. - They've been the victim of online fraud. You can use data from the Disputes endpoints to calculate key metrics, such as the number of chargebacks.

Unified-API
View JSON Schema on GitHub

JSON Schema

codat-commercedispute-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CommerceDispute",
  "title": "Commerce: Dispute",
  "description": "A customer may file a payment dispute with their bank or other card issuer when they're unsatisfied with their purchase or believe they have been charged incorrectly. For example:  \n- They didn't receive an order.  \n- The product they received was different to the commerce store's description.  \n- They've been the victim of online fraud.  \n\nYou can use data from the Disputes endpoints to calculate key metrics, such as the number of chargebacks.",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/CommerceOrder/allOf/0"
    },
    {
      "type": "object",
      "required": [
        "currency"
      ],
      "properties": {
        "disputedTransactions": {
          "description": "Link to the source event(s) which triggered this transaction.",
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/CommerceTransaction/definitions/transactionSourceRef"
          }
        },
        "totalAmount": {
          "description": "Total transaction amount that is under dispute.",
          "format": "decimal",
          "examples": [
            194.12,
            -283.56,
            0
          ]
        },
        "currency": {
          "description": "Currency of the disputed transaction.",
          "$ref": "#/components/schemas/SourceAccount/properties/currency"
        },
        "status": {
          "$ref": "#/components/schemas/CommerceDispute/definitions/disputeStatus"
        },
        "reason": {
          "description": "Reason for the dispute",
          "type": "string",
          "examples": [
            "Unhappy with product"
          ]
        },
        "dueDate": {
          "description": "Date when the next action in the dispute resolution is due",
          "$ref": "#/components/schemas/DateTime"
        }
      }
    },
    {
      "$ref": "#/components/schemas/CommerceOrder/allOf/2"
    },
    {
      "$ref": "#/components/schemas/CommerceOrder/allOf/3"
    }
  ],
  "definitions": {
    "disputeStatus": {
      "description": "Current status of the dispute",
      "x-internal": true,
      "type": "string",
      "enum": [
        "Won",
        "Lost",
        "Accepted",
        "Processing",
        "ChargeRefunded",
        "EvidenceRequired",
        "InquiryEvidenceRequired",
        "InquiryProcessing",
        "InquiryClosed",
        "WaitingThirdParty",
        "Unknown"
      ],
      "example": "EvidenceRequired"
    }
  },
  "examples": [
    {
      "id": "03e608e3-bd1c-454f-8c2b-fb0133e43b95",
      "disputedTransactions": [
        {
          "id": "e63ad857-7e12-4e64-9185-cdfd7c45d09d",
          "type": "Order"
        }
      ],
      "totalAmount": -47.66,
      "currency": "GBP",
      "status": "InquiryEvidenceRequired",
      "reason": "Unhappy with product",
      "dueDate": "2021-03-29T14:39:55",
      "createdDate": "2021-03-22T14:39:55",
      "modifiedDate": "2022-02-02T11:02:45Z",
      "sourceModifiedDate": "2021-03-22T14:39:55"
    }
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/codat-commercedispute"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.