Resolve reconciliation tasks

post/v1/reconciliation/resolve

Batch-resolves up to 100 reconciliation (duplicate-merge) tasks by approving (merge + FK migration) or rejecting. Response reports per-task resolved results and errors.

Requires a bearer token: Authorization: Bearer <token>.

Request

cURL
curl -X POST https://api.wellapp.ai/v1/reconciliation/resolve \
  -H "Authorization: Bearer $WELL_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "data": {
    "type": "reconciliation-resolve",
    "attributes": {
      "task_ids": [
        "3c…",
        "9d…"
      ],
      "action": "approve"
    }
  }
}'
Request body
{
  "data": {
    "type": "reconciliation-resolve",
    "attributes": {
      "task_ids": [
        "3c…",
        "9d…"
      ],
      "action": "approve"
    }
  }
}

Responses

200Per-task resolution outcome (resolved[], errors[]).

{
  "data": {
    "type": "reconciliation-resolve",
    "attributes": {
      "resolved": [
        {
          "task_id": "3c…",
          "action": "approve",
          "success": true,
          "merge_result": {
            "primary_id": "co_1",
            "secondary_id": "co_2",
            "fks_migrated": 14
          }
        }
      ],
      "errors": []
    }
  }
}

400Validation error.

{
  "code": "BAD_REQUEST",
  "status": 400,
  "title": "Bad Request",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

401Unauthorized.

{
  "code": "UNAUTHORIZED",
  "status": 401,
  "title": "Unauthorized",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}