How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Mastercard Tokens API

The Tokens API from Mastercard — 7 operation(s) for tokens.

Mastercard Tokens API is one of 249 APIs that Mastercard publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Tokens. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, code examples, a changelog, a support channel, and a getting-started guide.

This API exposes 9 operations across 7 paths, and defines 34 schemas. It is described by OpenAPI 2.0, at version 1.0.

Requests are made against the base URL https://api.example.com.

9 operations 7 paths 34 schemas 1 DELETE2 GET5 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 2.0
API Version
1.0
Base URL
https://api.example.com
Resource Areas
1

Paths & Operations 9

Across 7 paths, the API surfaces 9 operations — 1 DELETE, 2 GET, 5 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Tokens 9
GET
/widgets/access-tokens
Generate Access Token
generateBenefitsAccessToken → 200401
POST
/multi-access-tokens
Add and Validate a Document - Request a token to enroll an additional document.
getMultiAccessToken 2 params body → 200400
POST
/access-tokens
Request a token to enroll an identity.
getAccessToken 1 param body → 200400
POST
/data-extractions/access-tokens
The provider token is retrieved by country code and SDK version
retrieveDataExtractionAccessToken 1 param body → 200400
POST
/users/{user_guid}/virtual-card-accounts/{account_guid}/tokens
Register a token linked to a user and a virtual card
TokenCreate 2 params body → 201400401403404
GET
/users/{user_guid}/virtual-card-accounts/{account_guid}/tokens/{token_guid}
Retrieve token details linked to a user and a virtual card
getTokenById 3 params → 200400401403404
PUT
/users/{user_guid}/virtual-card-accounts/{account_guid}/tokens/{token_guid}
Update a token linked to a user and a virtual card
updateTokenById 3 params body → 200400401403404
DELETE
/users/{user_guid}/virtual-card-accounts/{account_guid}/tokens/{token_guid}
Delete a token linked to a user and a virtual card
deleteTokenById 3 params → 204400401403404
POST
/user-data-tokens
Mastercard Create a User Data Token Which Is Used in the Redirection Url That Redirects the Cardholder to the Website for Submitting a New Claim.
createUserToken body → 200400401

Schemas 34

The contract defines 34 schemas that model the data the API accepts and returns. The most detailed are AuditEventsItem (12 properties), RetrieveAccessToken_2 (11 properties), SubmitClaimUserData (11 properties), AccessTokenCommonFields (7 properties). Each schema is shown below with its type and property counts.

Errors
object
Object that contains the list of errors
1 property 1 required
ErrorWrapper
object
A top level object for errors
1 property 1 required
ErrorList
array
The list of errors
BenefitsAccessToken
object
1 property
Error
object
A single error
5 properties
TpAuditMetadata
object
Object containing metadata related to the request.
2 properties 2 required
PDS
string
Encrypted Personal Device Storage (PDS) which hosts the users identity attributes. The PDS can be retrieved from the MIDS Core SDK, please refer to the SDK gui…
AccessToken
object
3 properties 3 required
ErrorResponse
object
The error response model used by all the API endpoints.
1 property 1 required
AuditEventsItem
object
12 properties
SdkVersion
string
Mastercard SDK version integrated with TP App, it is a constant extracted from MIDS SDK Configurations (generated while bundling SDK artifacts). If the TP app…
MultiRetrieveAccessToken
5 required
RetrieveAccessToken
4 required
AccessTokenCommonFields
object
7 properties 4 required
ARID
string
A unique identifier for any activity being executed arising out of a Claim Share request. This value is passed as a parameter in the URL redirecting a User to…
CountryCode
string
The country code of the country where the transaction originates from.
ApiError
object
1 property 1 required
AccessToken_2
object
6 properties 3 required
RetrieveAccessToken_2
object
11 properties 2 required
Errors_2
object
List of Errors.
1 property 1 required
ErrorList_2
array
Error Details.
Error_2
object
5 properties
Token
object
4 properties
ResourceIdentifier
string
A UUID which uniquely identifies a resource
ErrorWrapper_2
object
1 property 1 required
Card
object
2 properties 2 required
TokenUpdate
object
1 property
Errors_3
object
1 property 1 required
ErrorList_3
array
Error_3
object
5 properties
SubmitClaimUserToken
object
1 property
ErrorItem
object
5 properties
SubmitClaimUserData
object
11 properties 1 required
ErrorItems
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mastercard-tokens-api-openapi.yml Raw ↑

Other APIs Mastercard publishes across the network.

Mastercard Universal Specification Submission API
Mastercard Account to Account Commerce for Creditor Service Providers
Mastercard Debtor Service Provider Resources API
Mastercard Automatic Billing Updater API
Mastercard Benefit Eligibility Service API
Mastercard Bill Pay API
Mastercard Bill Payment Validator
Mastercard BIN Lookup API
Mastercard Business Payment Controls
Mastercard Carbon Calculator API
Mastercard Carbon Calculator Experience API
Mastercard Checkout Solutions
Where this information came from

This is an independent, third-party profile of Mastercard Tokens API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.