Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.98 KB

SearchTokensApi.md

File metadata and controls

58 lines (36 loc) · 1.98 KB

MdesDigitalEnablementApi.SearchTokensApi

All URIs are relative to https://api.mastercard.com/mdes

Method HTTP request Description
searchTokens POST /digitization/static/1/0/searchTokens Used to get basic token information for all tokens on a specified device, or all tokens mapped to the given Account PAN.

searchTokens

SearchTokensResponseSchema searchTokens(opts)

Used to get basic token information for all tokens on a specified device, or all tokens mapped to the given Account PAN.

This API is used to get basic token information for all tokens on a specified device, or all tokens mapped to the given Account PAN. It may be used to check current Token(s) state or, in exception scenarios (such as network time out), to ensure that external systems remain in sync with the Token state as maintained by MDES. Deactivated tokens are not returned.

Example

var MdesDigitalEnablementApi = require('mdes_digital_enablement_api');

var apiInstance = new MdesDigitalEnablementApi.SearchTokensApi();
var opts = {
  'searchTokensRequestSchema': new MdesDigitalEnablementApi.SearchTokensRequestSchema() // SearchTokensRequestSchema | Contains the details of the request message. 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.searchTokens(opts, callback);

Parameters

Name Type Description Notes
searchTokensRequestSchema SearchTokensRequestSchema Contains the details of the request message. [optional]

Return type

SearchTokensResponseSchema

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json