# Confirm a match

Source: https://amanucci.com/nl/docs/developers/api/bank/confirmMatch

## POST /v1/entities/{entityId}/match-groups/{groupId}/confirm

Confirm a match

Confirm a PROPOSED match group: it becomes `confirmed`, names you as who decided, and its `assemble` item is enqueued in the same transaction — the settlement then posts and clears the item. A PROOF proposal (`filingId` set) instead records its bank line as that tax prepayment's proof, in the same transaction; it moves no money — and, being a filing act, it needs a firm seat with `filing.prepare` or `filing.sign` beside `banking.reconcile`, or the client owner (a member is 403 `owner-required`). A replay on a group already confirmed is 200 with the group as it stands (duplicate-ok); a rejected group is 409 `group_not_proposed`. Not a signed act: no step-up.

Operation ID: `confirmMatch`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "groupId",
    "in": "path"
  }
]
```

### Responses

#### 200 The group, confirmed.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/MatchDecision"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
