{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-decide-dispute-dto-schema.json",
  "title": "DecideDisputeDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-trust-api-openapi.yml#/components/schemas/DecideDisputeDto",
  "type": "object",
  "properties": {
    "against": {
      "type": "string",
      "enum": [
        "buyer",
        "seller"
      ],
      "description": "Who the decision went against. They get a dispute_lost reputation event; the other party gets dispute_won."
    },
    "note": {
      "type": "string",
      "description": "The written decision, kept with the dispute.",
      "maxLength": 5000
    },
    "refund_amount": {
      "type": "number",
      "description": "Payments on only. Minor units to refund to the buyer; the rest goes to the seller. Defaults: a claimed order whose claim is upheld refunds nothing; one whose claim is rejected refunds everything; a dispute on a completed order refunds nothing.",
      "minimum": 0
    },
    "decided_by": {
      "type": "string",
      "description": "Who on your team decided, for the record. Up to 200 characters.",
      "maxLength": 200
    }
  },
  "required": [
    "against",
    "note"
  ]
}