Skip to content
§ 00PlatformComponents · API · Webhooks

Embed our components for the parts that touch card and bank data. Call one API for the rest. Every call works the same way on every gateway that supports it, and answers not_supported_on_gateway when one doesn't.

§ 01

Components

Hosted in iframes on js.merchsdk.com and mounted with our JavaScript SDK. They load only our code and Evervault's, and can be framed only on the domains you approve.

Components and the call that starts each one
EndpointWhat it doesStarted by
Card formCollects a card in Evervault's iframe and returns the encrypted number, expiry and CVC.POST /v1/checkout-sessions
ACH formAccount holder, routing number (checksum validated), account number and type, plus the customer's authorization.checkout session, type=ach
Merchant settingsThe merchant connects and removes gateways, sets the default and fallback order, and picks a pricing program.POST /v1/merchant-settings-sessions
Update payment methodThe customer replaces the card or bank account behind a saved payment method.POST /v1/payment-methods/{id}/update-sessions
Price displayShows the surcharge, or the card and cash prices, before the customer pays.Built into the forms
Apple Pay, Google PayWallet buttons. The wallet's network token and cryptogram come back encrypted.checkout session with wallets
3D Secure stepEvervault's frictionless or challenge flow.POST /v1/3ds-sessions
Hosted payment pageA full payment page on pay.merchsdk.com with all of the above.POST /v1/payment-pages

§ 02

Transactions

Cards and ACH through the same endpoints. Each response gives a status of approved, declined, pending or error, a normalized decline code, the gateway's raw code and message, and every attempt made.

Transaction endpoints
EndpointWhat it doesRoute
POST /v1/transactions/saleAuthorize and capture in one step (card), or debit (ACH).Relay → gateway
POST /v1/transactions/authorizeAuthorize only (card).Relay → gateway
POST /v1/transactions/verify$0 card check.Relay → gateway
POST /v1/transactions/creditCredit with no original sale.Relay → gateway
POST /v1/transactions/{id}/captureFull or partial capture.Original connection
POST /v1/transactions/{id}/voidVoid before settlement.Original connection
POST /v1/transactions/{id}/refundFull or partial refund.Original connection
GET /v1/transactions/{id}One transaction with attempts, AVS and CVV results, and settlement or return status.Our ledger
GET /v1/transactionsSearch by merchant, customer, connection, date or status.Our ledger

Optional on sale and authorize

  • connection_id
  • fallback
  • pricing_quote_id
  • billing address (AVS)
  • order_id
  • Level 2/3 data
  • three_ds_session_id
  • use_network_token

Stored-credential flags are set for you on saved-method charges: the first charge with consent is customer-initiated, later ones are merchant-initiated and carry the original network transaction ID.

§ 03

Merchants, connections and routing

A merchant here is a record, not a boarding application: a name, your own reference, and the business details Evervault needs. Each merchant can connect as many gateway accounts as it uses.

Charges go to the connection_id you pass, or the merchant's default for that payment type. On a soft decline, a gateway error or a timeout, we try the next connection in the fallback order. Hard declines and do-not-retry codes are never retried.

GET /v1/merchants/mer_7Rk2pQ/routing
{
  "card": {
    "default_connection_id": "con_aN3t01",
    "fallback": ["con_nM1x02"]
  },
  "ach": {
    "default_connection_id": "con_aN3t01",
    "fallback": []
  }
}
Illustrative response. Field names may change before launch.
Merchant, connection and routing endpoints
EndpointWhat it does
POST /v1/merchantsCreate a merchant record. Not boarding.
GET, PATCH /v1/merchants/{id}Read or update a merchant, including its pricing program.
GET /v1/merchants/{id}/connectionsAll of a merchant's gateway connections.
GET, PATCH, DELETE /v1/connections/{id}Status and gateway, label, or disconnect. Disconnecting moves scheduled charges to the default.
GET, PUT /v1/merchants/{id}/routingDefault connection for cards and for ACH, and the fallback order.

§ 04

Customers and saved payment methods

A saved card or bank account belongs to exactly one merchant. It can be charged on any of that merchant's connections, so it keeps working when the merchant changes gateways, and it can never be charged by another merchant.

Customer and payment method endpoints
EndpointWhat it does
POST /v1/customersCreate a customer under a merchant.
GET, PATCH, DELETE /v1/customers/{id}Read, update or remove a customer.
POST /v1/customers/{id}/payment-methodsSave a card or bank account from a checkout session.
GET /v1/customers/{id}/payment-methodsList saved methods: last 4, brand or bank, expiry.
PATCH /v1/payment-methods/{id}Update the billing address or the default method.
DELETE /v1/payment-methods/{id}Remove a saved method and its stored ciphertext.

§ 05

Recurring, payment plans and scheduled payments

You set the schedule; we run each charge as a merchant-initiated transaction with the original network transaction ID, through the merchant's routing and fallback. Saved cards are kept current with Visa, Mastercard and Amex account updates.

Recurring billing endpoints
EndpointWhat it does
POST, GET, PATCH /v1/plansA reusable amount and interval.
POST /v1/subscriptionsStart a schedule: open-ended, until an end date, or for a set number of payments.
POST /v1/subscriptions/{id}/pauseAlso /resume and /cancel.
POST /v1/payment-plansSplit a balance into installments, equal or custom, with an optional down payment. Ends when paid in full.
POST /v1/payment-plans/{id}/payoffPay the remaining balance now. Also /pause, /resume and /cancel.
POST /v1/scheduled-paymentsA one-time payment on a future date, cancellable until it runs.

§ 06

Dual pricing and surcharging

Surcharge

Added to credit cards only, never to debit, prepaid or ACH. A BIN lookup at checkout tells them apart. If the lookup fails, the charge goes through without a surcharge rather than guess.

Dual pricing

A card price and a cash (ACH) price. The method the customer picks sets the amount. Refunds return the matching share of any fee.

Pricing quote endpoints
EndpointWhat it does
POST /v1/pricing-quotesBase amount, fee, total and the disclosure text to show, for a merchant, amount and payment method.
GET /v1/pricing-quotes/{id}Read a quote. Quotes expire quickly.

§ 07

Wallets, 3D Secure, network tokens and card insights

Available on any connection whose gateway accepts them. Routing skips connections that can't take a wallet payment, a network token or outside 3DS values.

Card feature endpoints
EndpointWhat it does
POST /v1/3ds-sessionsStart 3DS: full, data-only or fail-on-challenge.
GET /v1/3ds-sessions/{id}Result: cryptogram, ECI and liability shift.
POST /v1/payment-methods/{id}/network-tokenCreate a network token for a saved card.
POST /v1/card-insightsBIN details plus optional address, name, CVV, email and phone checks.
POST /v1/bin-lookupsBrand, funding type, issuer, country and 3DS support.
POST /v1/merchants/{id}/chargeback-alertsTurn on Visa RDR and Mastercard Ethoca alerts.

§ 08

Settlement and reporting

Settlement and reporting endpoints
EndpointWhat it doesRoute
GET /v1/batchesSettled batches per connection.Gateway direct
GET /v1/batches/{id}Transactions in one batch.Gateway direct
GET /v1/reports/settlementsDaily settlement per connection.Gateway direct

§ 09

Webhooks

Signed with HMAC-SHA256 and a timestamp, retried with backoff, and kept so you can replay them from GET /v1/events. Register endpoints with /v1/webhook-endpoints.

  • transaction.succeeded
  • transaction.declined
  • transaction.updated
  • transaction.settled
  • transaction.returned
  • subscription.charged
  • subscription.failed
  • payment_plan.charged
  • payment_plan.failed
  • payment_plan.completed
  • scheduled_payment.charged
  • scheduled_payment.failed
  • payment_method.updated
  • network_token.updated
  • three_ds.completed
  • chargeback_alert.received
  • connection.created
  • connection.failed
  • connection.removed

Need the request and response conventions? Read the developer overview.

§ 10Early accessSandbox first

Build payments in once. Let your merchants bring their gateways.

We're onboarding software companies by invitation, sandbox first. Tell us what you build and which gateways your merchants use.