.png)
Modern Treasury Integration Guide
Connect Modern Treasury payment, banking, ledger, and reconciliation operations with enterprise systems through REST APIs, selected webhook events, and Martini workflows.
Modern Treasury integration options at a glance
Modern Treasury’s primary integration interface is its REST API, which supports payment orders, counterparties, external accounts, ledger accounts, ledger transactions, expected payments, and related resources. Selected webhook events notify systems about payment status changes, returns, reversals, and other documented events. Martini can consume these APIs, receive and validate webhook requests, retrieve the latest resource after an event, and orchestrate downstream updates. API-key authentication and the Modern Treasury organization identifier can be stored as environment-specific secrets. Document-related API resources can support selected supporting-document workflows, subject to confirmation of the required upload and file operations.
Common Modern Treasury integration patterns
Common Modern Treasury data objects used in integrations
Authentication and security considerations
API authentication
Modern Treasury uses API credentials for general API access, commonly through HTTP Basic Authentication, together with an organization identifier in the required request header. OAuth should not be assumed for standard server-to-server access.
Secrets and environments
Store API credentials, organization identifiers, webhook verification settings, and environment-specific endpoints as Martini secrets or protected configuration. Keep sandbox and production values separate and apply least-privilege access.
Webhook protection
Webhook consumers should validate the authenticity and integrity of incoming requests using the verification mechanism documented by Modern Treasury. Record event identifiers and avoid exposing credentials or sensitive financial data in logs.
Operational considerations for Modern Treasury integrations
Pagination and checkpoints
List responses may contain only a page of Payment Orders, Counterparties, External Accounts, Ledger Transactions, or Expected Payments. Use documented pagination and filters, retain durable checkpoints, and run periodic reconciliation to recover from missed webhook deliveries.
Idempotency and financial precision
Persist stable source transaction keys and idempotency keys before creating payment instructions. Preserve monetary values without binary floating-point rounding, map currencies explicitly, and distinguish accepted, pending, completed, failed, returned, and reversed states.
Retries and schema changes
Use bounded retries for transient network, service, and rate-limit failures. Route validation and business-state errors for correction rather than repeatedly retrying them. Treat webhook payloads and API responses as external contracts and tolerate additive fields.
Testing and monitoring
Test payment creation, status transitions, returns, reversals, webhook verification, duplicate delivery, timeouts, retries, ledger mappings, and reconciliation behavior in a controlled non-production environment. Monitor event identifiers, resource identifiers, workflow outcomes, and unresolved exceptions.
Why use Martini instead of scripts or point-to-point integrations?
Orchestration beyond point-to-point calls
Martini separates inbound requests, Modern Treasury API calls, webhook processing, scheduled reconciliation, target-system updates, and exception handling into maintainable workflows rather than embedding all logic in scripts.
Reusable transformation and business rules
Mappings and validation rules can be reused across finance, payment, ledger, and operational flows. Martini can normalize Modern Treasury objects, preserve financial controls, and apply account, approval, currency, matching, and duplicate-prevention rules consistently.
Operational reliability
Martini provides workflow-based handling for retries, checkpoints, asynchronous processing, logging, and controlled deployment. It can also expose an internal API façade so applications interact with a governed interface instead of calling Modern Treasury directly.