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 Countries API

Retrieve a list of countries and country subdivisions

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

Tagged areas include Countries. 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 5 operations across 5 paths, and defines 16 schemas. It is described by OpenAPI 2.0, at version 1.0.

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

5 operations 5 paths 16 schemas 2 GET3 POST

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 5

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

Countries 5

Retrieve a list of countries and country subdivisions

GET
/countries
Mastercard Get a List of Countries
getCountries → 200401403
GET
/country-subdivisions
Mastercard Get a List of Country Subdivisions
getCountrySubdivisions 1 param → 200400401403
POST
/source-verifications/{issuing_country}/medicare-cards
Verifies the details of a medicare card document with an identity verification provider
verifyMedicareCard 2 params body → 200400403404
POST
/source-verifications/{issuing_country}/passports
Verifies the details of a passport document with an identity verification provider
verifyPassport 2 params body → 200400403
POST
/source-verifications/{issuing_country}/driving-licenses
Verifies the details of a driving license document with an identity verification provider
verifyDriversLicense 2 params body → 200400403

Schemas 16

The contract defines 16 schemas that model the data the API accepts and returns. The most detailed are MedicareCardSourceVerificationRequestAttributes (11 properties), PassportSourceVerificationRequestAttributes (8 properties), DriversLicenseSourceVerificationRequestAttributes (7 properties), Error_2 (5 properties). Each schema is shown below with its type and property counts.

CountrySubdivision
object
Available information the Country Subdivision such as the name and code
2 properties
Errors
object
Only returned in the event of an error condition
1 property 1 required
Country
object
Available information for the Country such as the name and code
2 properties
CountrySubdivisions
object
List of country subdivisions
1 property
ErrorResponse
object
Only returned in the event of an error condition
1 property 1 required
Countries
object
List of countries
1 property
Error
object
Details of the error condition such as the source of the error, reason code for the error, if the error is recoverable, and details about the error
5 properties 4 required
MedicareCardSourceVerificationRequestAttributes
object
11 properties 7 required
MedicareCardSourceVerificationResult
object
1 property 1 required
ApiError
object
1 property 1 required
PassportSourceVerificationRequestAttributes
object
8 properties 5 required
DriversLicenseSourceVerificationRequestAttributes
object
7 properties 7 required
Errors_2
object
List of Errors.
1 property 1 required
ErrorList
array
Error Details.
SourceVerificationResult
object
1 property 1 required
Error_2
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mastercard-countries-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 Countries 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.