Tokens

Network tokens and payment instrument tokens — store and manage tokenized card credentials.

View as Markdown

A token represents a network-tokenized card credential issued by the card scheme (Visa VTS or Mastercard MDES) on behalf of a stored payment method. VINR creates and maintains tokens automatically — you reference the parent pm_ ID on payments and VINR silently routes through the live network token, improving authorization rates and keeping card data current via the card network's account updater service.

Illustrative content. Hand-authored to demonstrate the Standard/Advanced pattern; the production page will be generated from the VINR OpenAPI spec (roadmap item #1). Field names are representative.

The token objectAsk

idstring

Unique identifier for the token, e.g. tok_5Xm1.

typeenum

How the token was issued. network_token — provisioned by Visa VTS or Mastercard MDES. card_token — a VINR-managed instrument token for card-present or recurring use without a full network scheme token.

paymentMethodIdstring

The pm_ ID of the payment method this token was created from.

networkTokenobject

Present when type is network_token. Contains the live token detail returned by the card network.

statusenum

VINR-level token status: active, inactive, or expired. Reflects networkToken.status but is also set to inactive when you call the deactivate endpoint directly.

createdAtinteger

Unix timestamp when the token was created.

updatedAtinteger

Unix timestamp when the token was last modified.

The network token objectAsk

VINR automatically provisions a network token with Visa VTS or Mastercard MDES whenever a card is stored with a recurring or card_present usage intent. Merchants do not call a create endpoint — the token is a side effect of creating or updating a payment method. Once provisioned, VINR transparently uses the network token on every payment that references the parent pm_ ID, passing the cryptogram required by the scheme. You can inspect the resulting token objects via the endpoints below, and deactivate them when a card is lost or the customer requests removal.

Retrieve a tokenAsk

Fetch a single token by its tok_ ID.

List tokens for a payment methodAsk

Returns all tokens provisioned for a given payment method. Use the status query parameter to filter to only active tokens.

ParameterTypeDescription
statusenumFilter by token status: active, inactive, or expired.
limitintegerNumber of results to return. Default 10, max 100.
starting_afterstringCursor for forward pagination — the tok_ ID of the last item from the previous page.

Deactivate a tokenAsk

Deactivates a network token so it can no longer be used to authorize payments. Use this when a card is reported lost or stolen, or when a customer requests that their credentials be removed. Deactivating a token does not delete the parent payment method — the pm_ object is retained and you may re-provision a replacement token by updating the payment method's usage intent. To fully remove the instrument, detach the payment method separately.

Token eventsAsk

EventFired when
payment_method.updatedA network token is refreshed by the card network (account updater). The parent payment method's updatedAt is bumped and the token's lastRefreshedAt is updated.
token.deactivatedA token transitions to inactive, either via the deactivate endpoint or a scheme-side revocation.

Subscribe to these events via Webhook endpoints to keep your records synchronized without polling.

Next stepsAsk

  • Tokenization overview — how VINR uses network tokens to raise authorization rates and keep card credentials current.
  • Payment methods — create and manage the pm_ objects that tokens are attached to.
  • Payments — charge a stored payment method; VINR routes through the network token transparently.
Was this page helpful?