# POST /Indoor/api/setStatementDocumentId

**Resource:** [Statements and billing](../resources/Statements-and-billing.md)
**Service that updates the customers card statement document ID and sends a notification**
**Operation ID:** `setStatementDocumentId`

Sets or updates statement document IDs for a list of statements. For each statement in the request, it retrieves mailing info based on masked card number and statement date, then either creates a new statement document or updates an existing one. Additionally, if email sending is enabled, it triggers a notification with relevant statement and customer details. The SetStatementDocumentOnly method returns a summary of inserted, updated, and skipped rows.

## Request Body

Set Statement Document Id Request

**Required:** Yes

**Content Types:** `application/json`

**Schema:** [SetStatementDocumentIdRequest](../schemas/Set/SetStatementDocumentIdRequest.md)

## Responses

| Status | Description |
|--------|-------------|
| 200 | Success |
| 400 | (reference) |
| 404 | (reference) |
| 500 | (reference) |

