diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SesAccountAttributesTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SesAccountAttributesTest.java
index 94deb43157..883cd89b82 100644
--- a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SesAccountAttributesTest.java
+++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/SesAccountAttributesTest.java
@@ -17,18 +17,24 @@ import software.amazon.awssdk.services.ses.model.GetAccountSendingEnabledRespons
import software.amazon.awssdk.services.ses.model.UpdateAccountSendingEnabledRequest;
import software.amazon.awssdk.services.sesv2.SesV2Client;
+import software.amazon.awssdk.services.sesv2.model.AccountDetails;
+import software.amazon.awssdk.services.sesv2.model.ContactLanguage;
import software.amazon.awssdk.services.sesv2.model.DashboardAttributes;
import software.amazon.awssdk.services.sesv2.model.FeatureStatus;
import software.amazon.awssdk.services.sesv2.model.GetAccountRequest;
import software.amazon.awssdk.services.sesv2.model.GetAccountResponse;
import software.amazon.awssdk.services.sesv2.model.GuardianAttributes;
+import software.amazon.awssdk.services.sesv2.model.MailType;
+import software.amazon.awssdk.services.sesv2.model.PutAccountDetailsRequest;
import software.amazon.awssdk.services.sesv2.model.PutAccountSendingAttributesRequest;
import software.amazon.awssdk.services.sesv2.model.PutAccountSuppressionAttributesRequest;
import software.amazon.awssdk.services.sesv2.model.PutAccountVdmAttributesRequest;
+import software.amazon.awssdk.services.sesv2.model.SesV2Exception;
import software.amazon.awssdk.services.sesv2.model.SuppressionListReason;
import software.amazon.awssdk.services.sesv2.model.VdmAttributes;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
@DisplayName("SES account attributes: sending, suppression, VDM (v1 + v2)")
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@@ -198,4 +204,50 @@ class SesAccountAttributesTest {
GetAccountSendingEnabledResponse afterV2Enable = sesV1.getAccountSendingEnabled();
assertThat(afterV2Enable.enabled()).isTrue();
}
+
+ @Test
+ @Order(6)
+ void putAndGet_accountDetailsRoundTrip() {
+ // PutAccountDetails is POST (unlike the sibling PUT account operations); the SDK exercises the
+ // real verb, so a mis-wired route would surface here. Status is set by AWS's review and is not
+ // controllable, so assert only that ReviewDetails is present with a status and case id.
+ //
+ // PutAccountDetails has no delete/reset API and AWS owns the resulting ReviewDetails/case, so
+ // this mutation cannot be undone — re-submitting captured fields cannot restore the prior
+ // review status or case id. Skip it entirely on real AWS rather than risk changing a real
+ // caller's account; against Floci the in-memory store makes the round-trip safe and it still
+ // catches a mis-wired route there.
+ org.junit.jupiter.api.Assumptions.assumeFalse(TestFixtures.isRealAws(),
+ "skipping on real AWS: PutAccountDetails cannot be reset and AWS owns ReviewDetails");
+ sesV2.putAccountDetails(PutAccountDetailsRequest.builder()
+ .mailType(MailType.TRANSACTIONAL)
+ .websiteURL("https://example.com")
+ .contactLanguage(ContactLanguage.EN)
+ .useCaseDescription("compatibility test")
+ .additionalContactEmailAddresses("ops@example.com")
+ .build());
+
+ GetAccountResponse account = sesV2.getAccount(GetAccountRequest.builder().build());
+ AccountDetails details = account.details();
+ assertThat(details).isNotNull();
+ assertThat(details.mailType()).isEqualTo(MailType.TRANSACTIONAL);
+ assertThat(details.websiteURL()).isEqualTo("https://example.com");
+ assertThat(details.contactLanguage()).isEqualTo(ContactLanguage.EN);
+ assertThat(details.additionalContactEmailAddresses()).contains("ops@example.com");
+ assertThat(details.reviewDetails()).isNotNull();
+ assertThat(details.reviewDetails().statusAsString()).isNotBlank();
+ assertThat(details.reviewDetails().caseId()).isNotBlank();
+ }
+
+ @Test
+ @Order(7)
+ void putAccountDetails_invalidMailType_throwsBadRequest() {
+ // Server-side enum validation (the string bypasses the SDK's typed enum), rejected without
+ // mutating account state.
+ assertThatThrownBy(() -> sesV2.putAccountDetails(PutAccountDetailsRequest.builder()
+ .mailType("SPAM")
+ .websiteURL("https://example.com")
+ .build()))
+ .isInstanceOf(SesV2Exception.class);
+ }
}
diff --git a/docs/services/ses.md b/docs/services/ses.md
index f77edc7801..0ba103506d 100644
--- a/docs/services/ses.md
+++ b/docs/services/ses.md
@@ -209,6 +209,7 @@ Alongside the classic Query API, Floci implements a subset of the SES v2 REST JS
| `PUT` | `/v2/email/account/sending` | `PutAccountSendingAttributes` |
| `PUT` | `/v2/email/account/suppression` | `PutAccountSuppressionAttributes` |
| `PUT` | `/v2/email/account/vdm` | `PutAccountVdmAttributes` |
+| `POST` | `/v2/email/account/details` | `PutAccountDetails` |
| `POST` | `/v2/email/templates` | `CreateEmailTemplate` |
| `GET` | `/v2/email/templates` | `ListEmailTemplates` |
| `GET` | `/v2/email/templates/{templateName}` | `GetEmailTemplate` |
@@ -277,6 +278,8 @@ A successful send without a simulator-address recipient emits only the `Send` ev
Account-level VDM (Virtual Deliverability Manager) attributes are stored per region. `PutAccountVdmAttributes` sets `VdmEnabled` (opt-in, defaults `DISABLED`) plus the optional `DashboardAttributes.EngagementMetrics` and `GuardianAttributes.OptimizedSharedDelivery`. `GetAccount` omits `VdmAttributes` until VDM has been configured for the region, then returns `VdmEnabled`, adding the `DashboardAttributes`/`GuardianAttributes` sub-objects only while `VdmEnabled` is `ENABLED`. Floci stores the settings but does not run VDM analytics.
+Account provisioning details are stored per region. `PutAccountDetails` sets `MailType` (required, ∈ {`MARKETING`, `TRANSACTIONAL`}) and `WebsiteURL` (required, 1–1000 chars) plus the optional `ContactLanguage` (∈ {`EN`, `JA`}), `UseCaseDescription` (≤5000 chars), `AdditionalContactEmailAddresses` (1–4 entries, each 6–254 chars matching `^(.+)@(.+)$`), and `ProductionAccessEnabled`. Floci stores `ProductionAccessEnabled` as given but stays production-enabled regardless (it has no sandbox), so the flag has no functional effect. Like `VdmAttributes`, `GetAccount` omits `Details` until it has been configured for the region, then echoes the stored fields under `Details` with a `ReviewDetails` block. Matching AWS, all modeled-constraint violations (null / enum / length / list) are aggregated into a single `BadRequestException` reporting every failure; a malformed (but in-range) `WebsiteURL` is reported separately as `Url contains invalid format`. Floci has no sandbox and does not run a production-access review, so `ReviewDetails.Status` is always `GRANTED`.
+
Suppression list entries are stored per region with `Reason` ∈ {`BOUNCE`, `COMPLAINT`}. At send time, a recipient is suppressed when it appears on the suppression list AND its stored `Reason` is contained in the **effective** `SuppressedReasons` for the send. The effective list is the configuration set's `SuppressionOptions.SuppressedReasons` (set via `PutConfigurationSetSuppressionOptions`) when present — an **empty list is preserved as an explicit "no suppression filtering for this configuration set"** — otherwise it falls back to the account-level `AccountSuppressionAttributes.SuppressedReasons` (set via `PutAccountSuppressionAttributes`, default `[BOUNCE, COMPLAINT]`). Following the AWS V2 contract, there is no dedicated `GetConfigurationSetSuppressionOptions` action; once set, the block is read back through `GetConfigurationSet`'s response (the field is omitted when the configuration set has no override).
Suppressed recipients are filtered out of the SMTP relay step (non-suppressed recipients on the same send still reach the relay normally), and the configuration set's event destinations receive a synthetic `Bounce` or `Complaint` event alongside the always-emitted `Send` event. The `SendEmail` API response (`200` + `MessageId`), the stored `SentEmail` visible at `GET /_aws/ses`, and the published event's `mail.destination` all retain the original recipient list — matching the AWS contract that the message is "accepted, just not sent" for suppressed addresses.
diff --git a/src/main/java/io/github/hectorvent/floci/services/ses/SesAccountService.java b/src/main/java/io/github/hectorvent/floci/services/ses/SesAccountService.java
index 0e526d568e..b57761c158 100644
--- a/src/main/java/io/github/hectorvent/floci/services/ses/SesAccountService.java
+++ b/src/main/java/io/github/hectorvent/floci/services/ses/SesAccountService.java
@@ -1,23 +1,31 @@
package io.github.hectorvent.floci.services.ses;
import com.fasterxml.jackson.core.type.TypeReference;
+import io.github.hectorvent.floci.core.common.AwsException;
import io.github.hectorvent.floci.core.storage.StorageBackend;
import io.github.hectorvent.floci.core.storage.StorageFactory;
+import io.github.hectorvent.floci.services.ses.model.AccountDetails;
import io.github.hectorvent.floci.services.ses.model.AccountVdmAttributes;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import org.jboss.logging.Logger;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Map;
import java.util.Optional;
+import java.util.Set;
+import java.util.regex.Pattern;
/**
* Account-level SES settings, extracted from {@link SesService} as part of the store-based domain
* split. Reached through the {@code SesService} facade, which delegates here.
*
- *
Owns the account sending-enabled flag ({@code accountSettingsStore}) and the VDM (Virtual
- * Deliverability Manager) attributes ({@code accountVdmStore}). Account suppression is account-level
- * too, but it shares {@code validateSuppressionReason} with the suppression list, so it lives in
+ *
Owns the account sending-enabled flag ({@code accountSettingsStore}), the VDM (Virtual
+ * Deliverability Manager) attributes ({@code accountVdmStore}), and the provisioning details
+ * ({@code accountDetailsStore}). Account suppression is account-level too, but it shares
+ * {@code validateSuppressionReason} with the suppression list, so it lives in
* {@link SesSuppressionService} instead.
*/
@ApplicationScoped
@@ -27,6 +35,7 @@ public class SesAccountService {
private final StorageBackend accountSettingsStore;
private final StorageBackend accountVdmStore;
+ private final StorageBackend accountDetailsStore;
@Inject
public SesAccountService(StorageFactory storageFactory) {
@@ -34,12 +43,16 @@ public class SesAccountService {
new TypeReference