// API Reference

Virtual Terminal

Run charges, pre-authorizations, and completions against vaulted cards through your account's configured gateway. Raw card data never appears -- the vault resolves the card and forwards the transaction to the processor.

Two ways to identify the card

Every operation exists in two flavors:

Charge and pre-authorize

REQUESTHTTP
POST /v1/virtual-terminal/token-charge      // or token-preauthorize
Authorization: Bearer ...

{
  "token":     "<charge token>",
  "amount":    25.00,               // decimal; 25.00 = $25.00
  "reference": "INV-2026-0042",
  "gatewayProfileId": "...",        // optional; defaults per segment
  "storedCredentialType": 5         // optional; MIT/CIT initiation type
}

The header flavor (/charge, /preauthorize) takes the same body minus token, with the card in X-Card-Token and the acting user in X-User-Token.

Complete a pre-authorization

REQUESTHTTP
POST /v1/virtual-terminal/token-complete-preauth

{
  "preAuthId": "<preAuthId from the preauthorize response>",
  "amount":    25.00               // completion amount (may differ from the hold)
}

Transaction response

RESPONSE200
{
  "approved":         true,
  "transactionLogId": "<guid>",    // Card Vault's log reference
  "transactionId":    "...",        // processor's reference
  "preAuthId":        "<guid>",     // present on pre-authorizations
  "txType":           1,
  "txTypeName":       "Charge",
  "amount":           25.00,
  "reference":        "INV-2026-0042",
  "message":          "APPROVED",
  "loggedAt":         "2026-07-09T18:30:00Z"
}

approved: false with a 200 status means the gateway processed the request and the issuer declined -- the message carries the processor's response. Non-2xx statuses mean the request never reached the issuer.

GET /v1/virtual-terminal/logs

Paged transaction history. Filters: txType, approved, openPreAuth (pre-auths awaiting completion), from/to date range, page/pageSize. Entries carry processor, amounts, card brand/last4, outcome, response message, and timing -- tied to tokens, never PANs.

Permissions. Charge, pre-authorize, completion, and log view are each separately permissioned on the API key, so an automation key can be limited to exactly the operations it performs.