Skip to content

IntegrationsPayment Gateway · Beta

NMI API integration

Put NMI in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Built for specific customer use cases. Issues are resolved quickly.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1,150+ apps

01Proxy API

Call the NMI API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the NMI API. You call us, we call NMI, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APINMI

GEThttps://api.truto.one/proxy/invoices?integrated_account_id=…

  • GET/proxy/subscriptions
  • GET/proxy/plans
  • GET/proxy/customers
  • GET/proxy/products

NMI’s own response, passed back

02MCP server

NMI tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets NMI tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin NMI
  • PaymentsGet one, Sale, Auth, Credit, Validate, Capture, Void, Refund
  • InvoicesList, Get one, Create, Update, Close, Send
  • SubscriptionsList, Get one, Create, Update, Delete
  • PlansList, Get one, Create, Update, Delete
  • CustomersList, Get one, Create, Update, Delete
  • Billing addressGet one, Create, Update, Delete
  • Shipping addressGet one, Create, Update, Delete
  • ProductsList, Get one, Create, Update, Delete
  • Embedded component sessionCreate
  • AffiliatesList
  • MerchantsList, Get one, Create, Update
  • Fee schedulesList, Get fees
  • Ctv onboardingCreate
  • PackagesList, Get one
  • ApplicationsList, Get one, Create, Update, Submit, Upload document, Get legal consent, Download agreement, Update info
  • Webhook subscriptionsList, Get one, Create, Update, Delete
  • SignupAuth get token
Show tool names68 tools, for developers
  • nmi_payments_saleProcess a sale transaction in NMI — an authorization and capture in a single step. Pay with raw card details, an ACH bank account, a Collect.js payment_token, or a stored customer via customer_vault_id. Amounts are decimal strings (e.g. 10.00). Returns the transaction result including id, status, response (1 approved / 2 declined / 3 error), auth_code and response_text. Required: amount and a payment_details variant.
  • nmi_payments_authProcess an authorization for a payment in NMI, to be used in conjunction with the capture endpoint to prepare the payment for settlement. Returns: transaction_id, condition, transaction_type, requested_amount, currency, authorization_code.
  • nmi_payments_creditProcess a credit in NMI without a prior payment, crediting funds directly to the customer's payment method. Returns: merchant, features, transaction_id, transaction_type, condition, processor_id, ponumber, order_description, order_id, customerid, customertaxid, website, shipping, currency, tax, surcharge, convenience_fee, misc_fee, misc_fee_name, cash_discount, tip, requested_amount,…
  • nmi_payments_validateValidate a payment method in NMI without processing a payment. Returns the validation result including transaction_id, transaction_type, condition, response_code, and response_text.
  • nmi_payments_captureCapture a previously authorized payment in NMI. Returns the transaction object including transaction_id, condition, currency, requested_amount, and an action block with amount, action_type, success, response_code, and response_text. Required: payment_id.
  • nmi_payments_voidVoid an unsettled NMI payment. Returns the transaction object including transaction_id, condition, transaction_type, requested_amount, currency, card, and action. Required: payment_id. Only payments that have not yet been settled can be voided; send an empty JSON body when no void_reason applies.
  • nmi_payments_refundRefund a previously settled NMI payment back to the customer's payment method. Returns: transaction_id, condition, amount. Required: payment_id. Only settled transactions can be refunded.
  • get_single_nmi_payment_by_idGet a specific NMI payment by payment ID. Returns: transaction_id, transaction_type, condition, currency, requested_amount, billing_address, card, and action details. Required: id.
  • create_a_nmi_invoiceCreate a new invoice in NMI and email it to the customer. Returns the created invoice object including its id. A JSON request body is required.
  • list_all_nmi_invoicesList all invoices for the merchant in NMI with optional filtering. Returns a collection of invoices including id, created_at, and updated_at for each record. Supports pagination.
  • get_single_nmi_invoice_by_idGet a specific NMI invoice by id. Returns the invoice object including its id and currency. Required: id.
  • update_a_nmi_invoice_by_idUpdate an existing NMI invoice by id. All variables besides currency may be updated; updating does not resend the invoice to the customer. Returns: id, currency, created_at, updated_at. Required: id.
  • nmi_invoices_closeClose an existing NMI invoice by invoice_id. Once closed, the invoice cannot be modified or paid. Returns: id, currency, created_at, updated_at. Required: invoice_id.
  • nmi_invoices_sendEmail an existing NMI invoice to the customer. Takes no request body — send an empty JSON object. The invoice is addressed via the invoice_id parameter, and the email goes to the address on the invoice's billing contact. Returns the Invoice object. Required: invoice_id.
  • create_a_nmi_subscriptionCreate a recurring subscription in NMI. Attach the subscription to an existing plan via plan_id, or define the schedule inline with a plan object (amount plus day_frequency, or month_frequency with day_of_month). Pay with a stored customer (customer_vault_id in payment_details), raw card, ACH or payment_token. Returns the created Subscription including subscription_id and next_charge_date. Required: a plan reference and a payment_details variant.
  • list_all_nmi_subscriptionsList all NMI webhook subscriptions. Returns: id, callback_url, status, events, created_at, updated_at. Max 100 per page.
  • get_single_nmi_subscription_by_idGet a specific webhook subscription in NMI by id. Returns the subscription object including its id, callback_url, status, events, created_at, and updated_at. Required: id.
  • update_a_nmi_subscription_by_idUpdate an existing NMI subscription by id, modifying the subscribed events list or callback URL. Returns the updated subscription object including id, callback_url, events, status, created_at, and updated_at. Required: id.
  • delete_a_nmi_subscription_by_idDelete an NMI subscription by id. The customer will no longer be charged. Returns: code, message. Required: id.
  • create_a_nmi_planCreate a new recurring payment plan in NMI. Plans define recurring billing schedules that subscriptions can be associated with. Returns: id, name, amount, day_frequency, payments, month_frequency, day_of_month. Required: id, name, amount.
  • list_all_nmi_plansList all recurring payment plans in NMI. Returns each plan's id, name, amount, day_frequency, payments, month_frequency, and day_of_month. Max 100 per page.
  • get_single_nmi_plan_by_idGet a specific NMI recurring payment plan by id. Returns: id, name, amount, day_frequency, payments, month_frequency, day_of_month. Required: id.
  • update_a_nmi_plan_by_idUpdate an existing NMI recurring payment plan. Returns the updated plan including id, name, amount, day_frequency, month_frequency, day_of_month, and payments. Required: id. Exercise caution — all customers subscribed to this plan will have their billing changed based on your edits.
  • delete_a_nmi_plan_by_idDelete an NMI recurring payment plan by id. Returns an empty 204 response on success. Required: id.
  • create_a_nmi_customerCreate a customer in the NMI Customer Vault with one or more billing addresses and stored payment methods (card, ACH or Collect.js payment_token). Returns the created Customer including the vault id used for later charges. Required: billing (with payment_details).
  • list_all_nmi_customersList customers stored in the NMI Customer Vault. Filter by customer vault id (exact or partial), name, company, email, billing or shipping address id, payment account number, creation date range, or expiring cards. Returns Customer objects with their billing and shipping addresses.
  • get_single_nmi_customer_by_idGet a single NMI customer from the Customer Vault by id. Returns the customer record including its customer vault id, billing addresses, and associated payment method details. Required: id.
  • update_a_nmi_customer_by_idUpdate an existing NMI customer in the customer vault, including bulk updates of billing and shipping addresses. Returns: customer_vault_id, billing, shipping. Required: id. All provided billing and shipping addresses will be updated.
  • delete_a_nmi_customer_by_idDelete a customer from the NMI customer vault by id. This removes the customer and all associated billing and shipping addresses. Returns an empty 204 response on success. Required: id.
  • create_a_nmi_billing_addressAdd a new billing address to an existing NMI customer vault record. Returns the customer object including the billing address with first_name, last_name, address_1, city, state, postal_code, and country. Required: customer_id.
  • get_single_nmi_billing_address_by_idRetrieve a specific billing address for an NMI customer vault customer. Returns: id, first_name, last_name, address_1, address_2, company, city, state, postal_code, country, email, phone, cell_phone, fax. Required: customer_id, id.
  • update_a_nmi_billing_address_by_idUpdate an existing billing address for an NMI customer. Returns the updated billing address including first_name, last_name, address_1, city, state, postal_code, country, email, and phone. Required: customer_id, id.
  • delete_a_nmi_billing_address_by_idDelete a billing address from an NMI customer. The customer must retain at least one billing address after deletion. Returns an empty 204 response on success. Required: customer_id, id.
  • create_a_nmi_shipping_addressAdd a shipping address to an existing NMI Customer Vault customer. All address fields are optional strings. Returns the created shipping address including its id. Required: customer_id.
  • get_single_nmi_shipping_address_by_idGet a specific NMI customer shipping address by id. Returns: id, first_name, last_name, address_1, address_2, company, city, state, postal_code, country, email, phone, fax. Required: customer_id, id.
  • update_a_nmi_shipping_address_by_idUpdate an existing shipping address for an NMI customer. Returns the updated shipping address object including its id. Required: customer_id, id.
  • delete_a_nmi_shipping_address_by_idDelete a shipping address from an NMI customer. Returns an empty 204 response on success. Required: customer_id, id.
  • create_a_nmi_productCreate a product in the NMI product catalog, identified by a unique SKU, with cost, currency, optional category, tax/discount amounts and an optional base64 image. Returns the created Product. Required: product_sku, product_description, product_cost, product_currency.
  • list_all_nmi_productsList all products in NMI's Product Manager. Returns a list of product records including id, created_at, and updated_at.
  • get_single_nmi_product_by_idGet a single NMI product by id (SKU) from the Product Manager. Returns: id. Required: id.
  • update_a_nmi_product_by_idUpdate an existing product in the NMI Product Manager by id. Products can be used in invoices and other payment flows. Returns the updated product object. Required: id.
  • delete_a_nmi_product_by_idDelete an NMI product from the Product Manager by id. Returns an empty 204 response on success. Required: id.
  • create_a_nmi_embedded_component_sessionCreate a short-lived session token for NMI embedded components that can be used to authenticate and fetch data. Returns: session_token, expires_at. The optional body accepts either gateway credentials (api_key, merchant_id) or merchant-central credentials (api_key, tenant_id, merchant_id).
  • list_all_nmi_affiliatesList sub-affiliate accounts under your NMI partner account. Returns: objectType, id, firstName, lastName, company, email, replyToEmail, phone, fax, url, address1, address2, city, state, zip, country, timezone, features, status, created, updated, parentAffiliateId, support, branding, accountInfo, billTo, rejectedCertificates.
  • create_a_nmi_merchantCreate a merchant account under your NMI partner account (v4 partner API). Field names are camelCase. Requires company and primary contact details, address, timezone, language, a username for the merchant's primary user, and accountInfo with the bank account used to bill the merchant. Returns the created Merchant object. Required: type, company, country, address1, city, state, zip, timezone, firstName, lastName, email, phone, language, username, accountInfo.
  • list_all_nmi_merchantsList all merchant accounts under your NMI partner account. Returns merchant records including id, company, email, status, type, created, and updated. The type filter accepts only gateway, test, splitFunding, or mobile.
  • get_single_nmi_merchant_by_idGet all details of a specific NMI merchant account by id. Returns: objectType, id, type, created, updated, firstName, lastName, company, email, phone, fax, url, address1, address2, city, state, zip, country, timezone, costPlan, status, externalIdentifier, lastTransactionDate, parentAffiliateId, accountInfo, features, needsPendingServicesActivated, payFacBillingPeriod, rejectedCertificates.…
  • update_a_nmi_merchant_by_idUpdate an NMI merchant by id — this PATCH endpoint supports three operations: assign a fee schedule, complete & send the welcome email, or agree to TOS and fees. Returns: objectType, id, type, created, updated, firstName, lastName, company, email, phone, fax, url, address1, address2, city, state, zip, country, timezone, costPlan, status, externalIdentifier, lastTransactionDate, parentAffiliateId,…
  • nmi_fee_schedules_get_feesList all fees currently set on an existing NMI fee schedule. Returns each fee's objectType, feeType, name, sort, description, processor details, billMe flag, value, and applyTo targets. Required: fee_schedule_id.
  • list_all_nmi_fee_schedulesSearch all fee schedules available on your NMI account. Returns a list of fee schedule records including id, name, costPlan, currency, merchants, affiliates, isDefault, and isCustom. Required: maxResults (1-1000). Optionally filter by parentAffiliateId to narrow results to a specific affiliate's fee schedules.
  • create_a_nmi_ctv_onboardingAdd (or upgrade) Customer Token Vault to an NMI gateway account. Returns per-network onboarding results including requestStatus, requestStatusCode, onboardStatus, and onboardId for each card network. Required: merchantId, applications. If upgrading from Customer Vault to Customer Token Vault, the old vault extension does not need to be disabled first.
  • nmi_signup_auth_get_tokenRequest an OAuth access token from NMI using the client_credentials grant. Returns: access_token, token_type, expires_in. Required: grant_type, client_id, client_secret. The token is valid for 60 minutes.
  • list_all_nmi_packagesList all available application packages in NMI. Returns: id, name, description.
  • get_single_nmi_package_by_idGet a single NMI application package by id, including the full package rules, field definitions, and collections required for creating an application. Returns: id, name, description, package_rules, fields, collections. Required: id.
  • list_all_nmi_applicationsList NMI merchant applications with optional filtering by status, date range, package, and sort direction. Returns: id, package_id, status, created_at, updated_at.
  • create_a_nmi_applicationCreate a new NMI merchant application with a package, fields, and collections. Returns the full application object including id, package_id, status, fields, collections, created_at, and updated_at. Required: package_id.
  • get_single_nmi_application_by_idGet a single NMI merchant application by id. Returns the full application object including id, package_id, status, fields, collections, created_at, and updated_at. Required: id.
  • update_a_nmi_application_by_idPartially update an NMI merchant application by id with fields and collections. An application can only be updated when it is in draft status. Returns the full application object including id, package_id, status, fields, collections, created_at, and updated_at. Required: id.
  • nmi_applications_submitSubmit an NMI merchant application for underwriting review. Returns the full application object including id, package_id, status, fields, collections, created_at, and updated_at. Required: application.
  • nmi_applications_upload_documentUpload a supporting document to an NMI merchant application. Returns the uploaded document object including its id, type, and created_at. Required: application, type, file. Documents can only be uploaded while the application is in draft or underwriter_requested_information status; accepted file formats are PNG, JPG, JPEG, and PDF with a max size of 20 MB.
  • nmi_applications_get_legal_consentGet the legal consent URL for an NMI merchant application. The returned url is used with the Embed Helper to embed the legal consent widget so the applicant can review and accept the legal terms. Required: application (the application ID, e.g. app_341c7b5b432a3158).
  • nmi_applications_download_agreementDownload the signed agreement PDF for an NMI application. Returns the agreement as a binary PDF file (application/octet-stream, max 100 MB). The agreement can only be downloaded after the application has been submitted. Required: application.
  • nmi_applications_update_infoAdd additional information to an NMI application that is in the underwriter_requested_information status. Returns: code, message. Required: application, note.
  • list_all_nmi_webhook_subscriptionsList all NMI webhook subscriptions. Returns: id, callback_url, status, events, created_at, updated_at.
  • create_a_nmi_webhook_subscriptionCreate a new NMI webhook subscription with a callback URL, signing secret, and list of events. Returns the created subscription including id, callback_url, events, status, created_at, and updated_at. Required: callback_url, secret, events.
  • get_single_nmi_webhook_subscription_by_idGet a single NMI webhook subscription by id. Returns: id, callback_url, status, events, created_at, updated_at. Required: id.
  • update_a_nmi_webhook_subscription_by_idUpdate an NMI webhook subscription's subscribed events list or callback URL. Returns the updated subscription object including id, callback_url, events, status, and created_at. Required: id.
  • delete_a_nmi_webhook_subscription_by_idDelete an NMI webhook subscription by id. Returns: code, message. Required: id.

AMCP serverno code

For any MCP client

One URL per connected NMI account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every NMI tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

One API for NMI and every other Payment Gateway app. One mapping to go.

The Unified Payment Gateway API gives every Payment Gateway app the same call and the same data shape. NMI is not mapped to it yet. Map it yourself, or ask us.

NMIon Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified Payment Gateway APIOne mapping to goTo do

Then: one call for every Payment Gateway app

  • Path 1 Self-serve

    Map it yourself

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the NMI data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 a month, in Pro

    • 30-day trial on Free
    • Every unified API and your own unified models: Pro add-on

    See pricing

04Sync and webhooks

Sync NMI data on a schedule. Sent to your webhook.

A sync job reads NMI records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any NMI endpoint. With the Truto CLI.

Need a NMI endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any NMI path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use NMI in ChatGPT, Claude or Cursor with Elaichi.

Truto puts NMI in the product you build. To use NMI yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship NMI tools in your product

Give the AI in your product access to each customer’s own NMI account, with one MCP server per connected account.

Start free with NMI

Rather talk it through? Book a demo

Elaichi

For your own team

Use NMI in your own AI

Connect your company’s NMI once, then ask in the AI you already use, with exactly your own access.

Works in

NMI on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with NMI.

  1. Embed native payment acceptance in your SaaS

    Let your users charge their customers directly inside your product using saved cards, one-time sales, or authorization holds — without your platform ever touching raw card data or entering PCI scope.

  2. Automate merchant onboarding for PayFac and ISV models

    If you're acting as a payment facilitator or ISO, programmatically board sub-merchants by submitting applications, uploading KYC documents, and capturing legal consent so new users can start accepting payments the same day they sign up.

  3. Power recurring billing for subscription businesses

    Vertical SaaS platforms (gyms, memberships, SaaS-for-SaaS) can map their internal pricing tiers to NMI plans and subscriptions so end-user merchants can bill their own customers on a recurring schedule with zero manual work.

  4. Sync invoicing and A/R workflows

    Field service, professional services, and B2B platforms can generate invoices from work orders, email them to end customers via NMI, and reconcile paid status back into their own ledger through webhooks.

  5. Support delayed-capture and cancellation flows for B2B commerce

    ERPs and order management systems can authorize funds when an order is placed and only capture on shipment — or void the hold if the order is canceled — so your users' cash flow and accounting stay accurate automatically.

What you can build

Ship these with Truto and NMI.

  • Card-on-file charging with the NMI Customer Vault

    Create and manage customer records, billing addresses, and shipping addresses in NMI so your users can charge saved payment methods with a single click from your UI.

  • Auth, capture, void, and refund controls in-app

    Expose a full transaction lifecycle — sale, auth, capture, void, refund, credit, and validate — inside your dashboard so merchants never leave your product to manage payments.

  • Programmatic merchant application and underwriting flow

    Build a native onboarding wizard that constructs an NMI application, uploads supporting documents, presents legal consent, and submits to underwriting — all inside your signup experience.

  • Subscription and plan management UI

    Let merchants create plans, start and cancel subscriptions, and update billing details for their own customers directly from your interface, backed by NMI's recurring billing engine.

  • Invoice generation and delivery

    Create invoices, send them to end customers via NMI's email delivery, and close them out when paid — perfect for field service, healthcare, and B2B workflows.

  • Event-driven payment sync via webhooks

    Register webhook subscriptions programmatically so your platform reacts in real time to successful sales, failed recurring charges, invoice payments, and application status changes.

Security

Your customers’ NMI data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Truto managed OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s NMI account

    Use Truto’s frontend SDK to connect your customer’s NMI account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call NMI

    Truto’s Proxy API is a 1-to-1 mapping of the NMI API. You call us, we call NMI, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate NMI’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about NMI on Truto.

How does authentication work with NMI through Truto?

NMI uses API key–based authentication (security keys issued per merchant account or partner). Truto handles credential storage and injection so your end users connect their NMI account once and your platform can call the API on their behalf without you managing secrets.

Do we need to be PCI compliant to charge cards through NMI?

No. NMI's tokenization (Collect.js) and Customer Vault let you exchange raw card data for tokens on the client side, and Truto's API calls only pass tokens or vault IDs. Your servers never see PAN data, keeping you out of PCI scope.

Can we onboard merchants (PayFac / ISO model) programmatically?

Yes. The integration supports the full boarding flow: creating an application, uploading documents, retrieving legal consent, submitting to underwriting, and downloading signed agreements — so you can board sub-merchants without leaving your product.

What payment operations are supported?

Sale, auth, capture, void, refund, credit, and validate are all available, plus fetching a single transaction by ID. This covers both single-step (immediate charge) and dual-step (auth-then-capture) flows.

How do we get real-time updates on payments and subscriptions?

You can create, list, update, and delete NMI webhook subscriptions through the integration. Register endpoints to receive events for transaction outcomes, subscription lifecycle changes, invoice payments, and application status updates.

Can a single integration support multiple merchants under our platform?

Yes. NMI is built for partner hierarchies — you can list affiliates, create and manage merchants, view fee schedules, and manage packages, which lets your SaaS scale to many end-user merchants under one integration.

NMI

Get NMI integrated into your app

Sign up free, connect a test NMI account and make your first call today. No card and no sales call.