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

The Transaction API from Mastercard — 3 operation(s) for transaction.

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

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

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

3 operations 3 paths 41 schemas 1 GET2 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 3

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

Transaction 3
GET
/payment-cards/{payment_card_id}/transaction-footprints
Fetches Historical Transactions and its Transaction Footprints
GetPaymentCardTransactionHistory 5 params → 200400404
POST
/payment-cards/transaction-footprints/aggregates
Fetches carbon score for payment cards and aggregates the same on a weekly and monthly basis. The result will be in descending order.
GetPaymentCardAggregateTransactions body → 200400404415
POST
/transaction-footprints
Calculate Transaction Footprints
FootprintsByTransactionData body → 200400415

Schemas 41

The contract defines 41 schemas that model the data the API accepts and returns. The most detailed are TransactionMetadata (14 properties), ClimateProfile (9 properties), TransactionFootprintData (7 properties), Transaction (6 properties). Each schema is shown below with its type and property counts.

TransactionData
object
Object which holds information about payment transaction for carbon scoring and other properties.
TransactionId
string
A unique ID associated with a payment transaction, For example, original payment transaction ID. The same ID will be returned in the response corresponding to…
X-MC-Correlation-ID
string
AggregateSearchCriteria
object
Request object which holds the criteria (that is, list of payment card IDs and aggregate type) for retrieving aggregate transactions.
5 properties 2 required
CardBrand
string
Brand type of the payment card through which transaction done. Possible values are, MA = Mastercard branded payment card. OTH = Payment card brand other than M…
TransactionMetadata
object
Metadata about a transaction.
14 properties 10 required
PaymentCardId
string
Unique ID provided in the response while registering a payment card.
ClimateProfile
object
Represents a Climate Profile for a User. Always use updated profile present in the response, which might include benchmarks, comparisons, insights and surveys.
9 properties 5 required
TransactionFootprintsData
array
List of transaction footprints corresponding to each transaction in Transactions request.
AdditionalInformation
object
Additional Information object with key value pair.
2 properties
Transactions
array
List of payment transactions from API consumer for calculating transaction footprint.
ErrorWrapper
object
The error response object gets returned in case of any error.
1 property 1 required
HistoricalTransactionFootprint
object
A single transaction footprint along with transaction info for a corresponding payment transaction.
2 properties 2 required
TransactionFootprint
object
A single transaction footprint calculated for a corresponding payment transaction.
2 required
Amount
object
The value and the currency of a payment transaction.
2 properties 2 required
CarbonUsage
object
Object to hold carbon usage data.
2 properties
Type
string
Type defines transaction scoring type, based on which score has been generated.Allowed value is AIIA.
Category
object
User understandable information about an MCC categorization.
4 properties
ClassificationType
string
Classification for this transaction. Possible values are, mcc docc MCC plaid
HistoricalTransactionFootprints
object
Response object which holds all the transaction footprints for historical transactions.
5 properties
AggregateTransactionFootprints
object
List of AggregateTransactionFootprint.
2 properties 1 required
Errors
object
Error object which returns a list of Error objects.
1 property 1 required
Transaction
object
A single payment transaction for carbon scoring.
6 properties 2 required
AggregateTransactionFootprint
object
Aggregate transaction footprint for a single payment card ID.
2 properties 2 required
ErrorList
array
CrossPANAggregation
object
Cross PAN aggregated carbon footprint for given aggregate type.
1 property
Day
string
TransactionFootprintData
object
A single transaction footprint calculated for a corresponding transaction.
7 properties
FootprintAggregation
object
Aggregation of carbon score for a payment card ID and given aggregation level.
CurrencyCode
string
Currency code as per ISO 4217
Error
object
Error object which contains details about the error.
5 properties 4 required
MCTransactionFootprints
object
Response object which holds all the transaction footprints corresponding to each transaction in Transactions request.
1 property 1 required
MCErrors
object
Error object which returns list of Error objects
1 property 1 required
TransactionId_2
string
A unique id associated with a payment transaction, e.g. original payment transaction id. The same id will be returned in the response corresponding to its paym…
MCError
object
Error object which contains details about error
5 properties 4 required
MCTransactions
object
Request object which holds all the payment transactions from API consumer for calculating transaction footprint.
1 property 1 required
MCTransaction
object
This object holds data corresponding to a single payment transaction.
3 properties 3 required
MCTransactionFootprint
object
This object holds the transaction footprint for a payment transaction.
4 properties 1 required
MCErrorResponseObject
object
The error response object which gets returned in case of any error.
1 property 1 required
CurrencyCode_2
string
Currency code as per ISO 4217
MCAmount
object
Amount object that includes the value and the currency in which a payment transaction has been performed
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mastercard-transaction-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 Transaction 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.