# org.swappulse.tradeDispute

> Published by [bridge.swappulse.org](https://lexicon.garden/identity/did:plc:jwoatauidzr4lollmro2gh35)

## Description

A user-submitted dispute flag against a trade listing, mirrored to AT Protocol as a real org.swappulse.tradeDispute record. Filed when a collector has an issue with cards received. Moderators review and resolve.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jwoatauidzr4lollmro2gh35/org.swappulse.tradeDispute)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jwoatauidzr4lollmro2gh35/org.swappulse.tradeDispute/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jwoatauidzr4lollmro2gh35/org.swappulse.tradeDispute/examples)

## Definitions

### `org.swappulse.tradeDispute`

**Type**: `record`

A trade dispute flag.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reason` | `string` | Yes |  |
| `status` | `string` | No |  |
| `tradeId` | `string` | Yes |  |
| `tradeRef` | `string` (at-uri) | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `photoUrls` | `array` | No |  |
| `filedByDid` | `string` (did) | No |  |
| `resolvedAt` | `string` (datetime) | No |  |
| `resolvedBy` | `string` | No |  |
| `description` | `string` | Yes |  |
| `filedByName` | `string` | No |  |
| `filedByAvatar` | `string` (uri) | No |  |
| `filedByHandle` | `string` | No |  |
| `resolutionNotes` | `string` | No |  |

## Raw Schema

```json
{
  "id": "org.swappulse.tradeDispute",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "tradeId",
          "reason",
          "description",
          "createdAt"
        ],
        "properties": {
          "reason": {
            "type": "string",
            "knownValues": [
              "misgraded",
              "wrong_card",
              "damaged",
              "not_received",
              "scam",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "knownValues": [
              "pending",
              "reviewed",
              "resolved",
              "dismissed"
            ]
          },
          "tradeId": {
            "type": "string"
          },
          "tradeRef": {
            "type": "string",
            "format": "at-uri"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "photoUrls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "filedByDid": {
            "type": "string",
            "format": "did"
          },
          "resolvedAt": {
            "type": "string",
            "format": "datetime"
          },
          "resolvedBy": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          },
          "filedByName": {
            "type": "string"
          },
          "filedByAvatar": {
            "type": "string",
            "format": "uri"
          },
          "filedByHandle": {
            "type": "string"
          },
          "resolutionNotes": {
            "type": "string",
            "maxLength": 2000
          }
        }
      },
      "description": "A trade dispute flag."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1,
  "description": "A user-submitted dispute flag against a trade listing, mirrored to AT Protocol as a real org.swappulse.tradeDispute record. Filed when a collector has an issue with cards received. Moderators review and resolve."
}
```
