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.
| Endpoint | What it does | Started by |
|---|---|---|
| Card form | Collects a card in Evervault's iframe and returns the encrypted number, expiry and CVC. | POST /v1/checkout-sessions |
| ACH form | Account holder, routing number (checksum validated), account number and type, plus the customer's authorization. | checkout session, type=ach |
| Merchant settings | The merchant connects and removes gateways, sets the default and fallback order, and picks a pricing program. | POST /v1/merchant-settings-sessions |
| Update payment method | The customer replaces the card or bank account behind a saved payment method. | POST /v1/payment-methods/{id}/update-sessions |
| Price display | Shows the surcharge, or the card and cash prices, before the customer pays. | Built into the forms |
| Apple Pay, Google Pay | Wallet buttons. The wallet's network token and cryptogram come back encrypted. | checkout session with wallets |
| 3D Secure step | Evervault's frictionless or challenge flow. | POST /v1/3ds-sessions |
| Hosted payment page | A 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.
| Endpoint | What it does | Route |
|---|---|---|
| POST /v1/transactions/sale | Authorize and capture in one step (card), or debit (ACH). | Relay → gateway |
| POST /v1/transactions/authorize | Authorize only (card). | Relay → gateway |
| POST /v1/transactions/verify | $0 card check. | Relay → gateway |
| POST /v1/transactions/credit | Credit with no original sale. | Relay → gateway |
| POST /v1/transactions/{id}/capture | Full or partial capture. | Original connection |
| POST /v1/transactions/{id}/void | Void before settlement. | Original connection |
| POST /v1/transactions/{id}/refund | Full 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/transactions | Search 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": [] }}| Endpoint | What it does |
|---|---|
| POST /v1/merchants | Create a merchant record. Not boarding. |
| GET, PATCH /v1/merchants/{id} | Read or update a merchant, including its pricing program. |
| GET /v1/merchants/{id}/connections | All 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}/routing | Default 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.
| Endpoint | What it does |
|---|---|
| POST /v1/customers | Create a customer under a merchant. |
| GET, PATCH, DELETE /v1/customers/{id} | Read, update or remove a customer. |
| POST /v1/customers/{id}/payment-methods | Save a card or bank account from a checkout session. |
| GET /v1/customers/{id}/payment-methods | List 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.
| Endpoint | What it does |
|---|---|
| POST, GET, PATCH /v1/plans | A reusable amount and interval. |
| POST /v1/subscriptions | Start a schedule: open-ended, until an end date, or for a set number of payments. |
| POST /v1/subscriptions/{id}/pause | Also /resume and /cancel. |
| POST /v1/payment-plans | Split a balance into installments, equal or custom, with an optional down payment. Ends when paid in full. |
| POST /v1/payment-plans/{id}/payoff | Pay the remaining balance now. Also /pause, /resume and /cancel. |
| POST /v1/scheduled-payments | A 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.
| Endpoint | What it does |
|---|---|
| POST /v1/pricing-quotes | Base 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.
| Endpoint | What it does |
|---|---|
| POST /v1/3ds-sessions | Start 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-token | Create a network token for a saved card. |
| POST /v1/card-insights | BIN details plus optional address, name, CVV, email and phone checks. |
| POST /v1/bin-lookups | Brand, funding type, issuer, country and 3DS support. |
| POST /v1/merchants/{id}/chargeback-alerts | Turn on Visa RDR and Mastercard Ethoca alerts. |
§ 08
Settlement and reporting
| Endpoint | What it does | Route |
|---|---|---|
| GET /v1/batches | Settled batches per connection. | Gateway direct |
| GET /v1/batches/{id} | Transactions in one batch. | Gateway direct |
| GET /v1/reports/settlements | Daily 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.
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.