# community.gifthood.exchangeResponse

> Published by [gifthood.community](https://lexicon.garden/identity/did:plc:7prvtl4j6wsfmkrfrnwknuxj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.exchangeResponse)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.exchangeResponse/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.exchangeResponse/examples)

## Definitions

### `community.gifthood.exchangeResponse`

**Type**: `record`

The counterparty's half of an exchange attestation: confirm that the gift happened, or decline the selection. Public, like the interest record. Indexers honor only responses authored by the DID the referenced exchange names as counterparty; the first valid response wins; a decline created after the exchange's completedAt is not honored (disputes go through reporting, not attestation records).

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | Strong reference (URI + CID) to the community.gifthood.exchange record being answered. |
| `response` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "community.gifthood.exchangeResponse",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "response",
          "createdAt"
        ],
        "properties": {
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Strong reference (URI + CID) to the community.gifthood.exchange record being answered."
          },
          "response": {
            "enum": [
              "confirm",
              "decline"
            ],
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "The counterparty's half of an exchange attestation: confirm that the gift happened, or decline the selection. Public, like the interest record. Indexers honor only responses authored by the DID the referenced exchange names as counterparty; the first valid response wins; a decline created after the exchange's completedAt is not honored (disputes go through reporting, not attestation records)."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
