# org.swappulse.tradeListing

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

## Description

A peer-to-peer card trade listing published by a collector. Offer/wanted card sets reference TCGDex catalog records; status tracks the trade lifecycle.

## Links

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

## Definitions

### `org.swappulse.tradeListing`

**Type**: `record`

A trade listing offering cards in exchange for wanted cards.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `notes` | `string` | No |  |
| `status` | `string` | Yes |  |
| `authorDid` | `string` (did) | No |  |
| `circleRef` | `string` (at-uri) | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `expiresAt` | `string` (datetime) | No |  |
| `authorName` | `string` | No |  |
| `visibility` | `string` | Yes |  |
| `authorAvatar` | `string` (uri) | No |  |
| `authorHandle` | `string` | No |  |
| `offerCardUris` | `array` | No |  |
| `offerCardNames` | `array` | Yes |  |
| `wantedCardUris` | `array` | No |  |
| `offerCardImages` | `array` | No |  |
| `shippingRegions` | `array` | No |  |
| `wantedCardNames` | `array` | Yes |  |
| `preferredCurrency` | `string` | No |  |

## Raw Schema

```json
{
  "id": "org.swappulse.tradeListing",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "offerCardNames",
          "wantedCardNames",
          "status",
          "visibility",
          "createdAt"
        ],
        "properties": {
          "notes": {
            "type": "string",
            "maxLength": 500
          },
          "status": {
            "type": "string",
            "knownValues": [
              "open",
              "negotiating",
              "pending_ship",
              "completed",
              "cancelled"
            ]
          },
          "authorDid": {
            "type": "string",
            "format": "did"
          },
          "circleRef": {
            "type": "string",
            "format": "at-uri"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "expiresAt": {
            "type": "string",
            "format": "datetime"
          },
          "authorName": {
            "type": "string"
          },
          "visibility": {
            "type": "string",
            "knownValues": [
              "public",
              "wishlist_only",
              "circle_scoped"
            ]
          },
          "authorAvatar": {
            "type": "string",
            "format": "uri"
          },
          "authorHandle": {
            "type": "string"
          },
          "offerCardUris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxLength": 50
          },
          "offerCardNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "wantedCardUris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxLength": 50
          },
          "offerCardImages": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "shippingRegions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "wantedCardNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "preferredCurrency": {
            "type": "string",
            "knownValues": [
              "GBP",
              "EUR",
              "USD"
            ]
          }
        }
      },
      "description": "A trade listing offering cards in exchange for wanted cards."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1,
  "description": "A peer-to-peer card trade listing published by a collector. Offer/wanted card sets reference TCGDex catalog records; status tracks the trade lifecycle."
}
```
