# decideCatchUpCard

Decide one HARVEST or BUNDLE card (`family`; the others are answered through their own operations) as the decision bar does, on the person's word: `verb` ACCEPT or DISMISS, `shownIds` every row the card showed (listCatchUpCards), `suggestionIds` the ticked ones (ACCEPT sets the unticked aside; DISMISS dismisses them), `reason` for a DISMISS. An ACCEPT runs each row's action (a record change, a merge, a skip trace that spends credits and is queued as `bulkTaskId`, or a send). Behind the send consent attestation and Pause everything. `remainingIds` are rows still on the card.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "decideCatchUpCard", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `cardId`: `ID!` (required)
- `verb`: `WorkThroughVerb!` (required, one of `ACCEPT`, `DISMISS`)
- `shownIds`: `[ID!]!` (required)
- `suggestionIds`: `[ID!]!` (required)
- `reason`: `ContactSuggestionDismissReason` (one of `NOT_RELEVANT`, `WRONG_TONE`, `WRONG_FACTS`, `ALREADY_DONE`, `OTHER`, `NO_LONGER_DISTRESSED`, `WRONG_PROPERTY`, `NOT_MY_LEAD`, `WRONG_PERSON`, `ESTATE_ALREADY_HANDLED`, `STILL_OWNS`, `KEPT_MINE`, `SHOULDNT_MESSAGE`)

## Response (data, an example)

```json
{
  "workThroughMutation": {
    "decideCard": {
      "applied": 0,
      "refused": 0,
      "setAside": 0,
      "queued": 0,
      "alreadyDecided": 0,
      "bulkTaskId": "<ID>",
      "retired": 0,
      "refusalMessage": "…",
      "remainingIds": [
        "<ID>"
      ],
      "cardGone": true
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "decideCatchUpCard",
    "variables": {
      "cardId": "<cardId>",
      "verb": "ACCEPT",
      "shownIds": [
        "<shownIds>"
      ],
      "suggestionIds": [
        "<suggestionIds>"
      ]
    }
  }'
```
