> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.modernfi.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.modernfi.com/_mcp/server.

# Post Account Monthly Statement Config

POST https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config
Content-Type: application/json

Reference: https://docs.modernfi.com/api-reference/files/post-account-monthly-statement-config-digital-banking-v-1-files-account-monthly-statement-config-post

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.modernfi.com` (Production, default)
- `https://api.uat.modernfi.com` (UAT)
- `http://localhost:8000` (Local)

## Request

### Body (application/json)

This endpoint expects an AccountMonthlyStatementConfigRequest.

- `is_regulatory_mark` (boolean, required) — Indicates whether to display the regulatory mark.
- `is_account_id_masking` (boolean, required) — Determines whether account numbers should be masked.
- `statement_title` (string, optional, nullable) — Custom statement title. Leave blank or null to use the default title.
- `disclosures_paragraph` (string, optional, nullable) — Disclosures text displayed at the bottom of each page. Leave blank or null to omit.
- `contact_and_mailing_info` (string, optional, nullable) — Contact and mailing information shown on the statement. Supports multiple lines.
- `closing_paragraph` (string, optional, nullable) — Closing message displayed at the end of the statement. Leave blank or null to use the default text.

## Response

### 201

Successful Response

- `id` (string, required) — Unique ID of the statement config
- `institution_id` (string, required) — Institution this config belongs to
- `is_regulatory_mark` (boolean, required) — Show the regulatory mark on the statement
- `is_account_id_masking` (boolean, required) — Mask account numbers on the statement
- `statement_title` (string, optional, nullable) — Header title on the statement
- `disclosures_paragraph` (string, optional, nullable) — Disclosures text at the bottom of the statement
- `contact_and_mailing_info` (string, optional, nullable) — Contact info displayed in the statement footer
- `closing_paragraph` (string, optional, nullable) — Closing message or signature text

## Errors

### 400 Bad Request Error

Bad Request - Invalid input or validation error

- `detail` (list of map from string to any, required)

### 401 Unauthorized Error

Unauthenticated - Invalid or missing authentication credentials

- `detail` (string, required)

### 403 Forbidden Error

Unauthorized - Insufficient permissions to access resource

- `detail` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 500 Internal Server Error

Internal Server Error

- `detail` (string, required)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

### ValidationErrorCtx

## Examples

**Request**

```json
{
  "is_regulatory_mark": true,
  "is_account_id_masking": true
}
```

**Response**

```json
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "institution_id": "9b2d7f4e-8c3a-4d1e-9f2a-1a2b3c4d5e6f",
  "is_regulatory_mark": true,
  "is_account_id_masking": true,
  "statement_title": "Monthly Account Statement",
  "disclosures_paragraph": "This statement is for informational purposes only. Please review all transactions carefully.",
  "contact_and_mailing_info": "Customer Service: 1-800-555-1234\n123 Finance St.\nMoney City, CA 90210",
  "closing_paragraph": "Thank you for banking with us. For any questions, please contact our support team."
}
```

**SDK Code**

```python
import requests

url = "https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config"

payload = {
    "is_regulatory_mark": True,
    "is_account_id_masking": True
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"is_regulatory_mark":true,"is_account_id_masking":true}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config"

	payload := strings.NewReader("{\n  \"is_regulatory_mark\": true,\n  \"is_account_id_masking\": true\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"is_regulatory_mark\": true,\n  \"is_account_id_masking\": true\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"is_regulatory_mark\": true,\n  \"is_account_id_masking\": true\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config', [
  'body' => '{
  "is_regulatory_mark": true,
  "is_account_id_masking": true
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"is_regulatory_mark\": true,\n  \"is_account_id_masking\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "is_regulatory_mark": true,
  "is_account_id_masking": true
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modernfi.com/digital-banking/v1/files/account-monthly-statement-config")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```