Skip to Content
Docs
Network tokens

Retrieve a network token

GET/payment_methods/{payment_method_id}/network_token

Retrieves the network token of a payment method.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

payment_method_idstringRequired

The identifier of the payment method.

Returns

Returns the network token object.

idstring

Unique identifier for the network token.

resourcestring

String representing the object's type.

Default: network_token

numberstring

The network token number.

exp_monthstring

Two-digit string representing the network token's expiration month.

exp_yearstring

Four-digit string representing the network token's expiration year.

payment_account_referencestring

The payment account reference (PAR) linked to the network token.

token_servicestring

The card network token service that issued the network token, if applicable. One of vts (Visa), mdes (Mastercard) or aets (American Express).

One of vts, mdes, aets or .

requestor_idstring

The network token requestor ID.

Errors

400
Invalid request parameters.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
404
Payment method not found.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?