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

The Payments API from Mastercard — 17 operation(s) for payments.

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

Tagged areas include Payments. 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 8 operations across 8 paths, and defines 58 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 7 base URLs: https://mtf.services.mastercard.com/zapp/pbarfp/csp, https://services.mastercard.com/zapp/pbarfp/csp, https://sandbox.api.mastercard.com/carbon, https://api.mastercard.com/carbon, https://sandbox.api.mastercard.com/donations, https://mtf.mastercard.com/donations, https://api.mastercard.com/donations.

8 operations 8 paths 58 schemas 1 GET7 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://services.mastercard.com/zapp/pbarfp/csp
Resource Areas
1

Paths & Operations 8

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

Payments 8
POST
/payment-requests
Mastercard Payment Request Creation
createPaymentRequest 5 params body → 200400401
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…
GetPaymentCardAggregateTransactions body → 200400404415
POST
/payment-cards
Register a Payment Card (to be deprecated)
RegisterPaymentCard body → 200400404415
POST
/payment-card-enrolments
Batch Registration of Payment Cards (to be deprecated)
BatchRegisterPaymentCards body → 200400404415
POST
/payment-card-deletions
Delete one or more Payment Cards (to be deprecated)
PaymentCardDeletions body → 202400404415
POST
/payments/guests
Guest Donation
guestDonationUsingPOST 3 params body → 200201400401403404415500
POST
/payments
One Time Donation API
oneTimePaymentUsingPOST 3 params body → 200201400401403404415500

Schemas 58

The contract defines 58 schemas that model the data the API accepts and returns. The most detailed are TransactionMetadata (14 properties), TransactionForPAL (10 properties), RealTimePayment (7 properties), TransactionAckForPAL (6 properties). Each schema is shown below with its type and property counts.

ErrorList
array
The list of errors
MessageRequestBlock
object
4 properties 4 required
CreditorForPAL
object
5 properties 2 required
MessageResponseBlock
object
4 properties 4 required
Error
object
A single error
5 properties
Errors
object
Object that contains the list of errors
1 property 1 required
AgreementAcknowledgement
object
2 properties 2 required
Amount
object
2 properties 2 required
NewPaymentRequest
TransactionForPAL
object
10 properties 7 required
ErrorWrapper
object
A top level object for errors
1 property 1 required
PaymentRequest
TransactionAckForPAL
object
6 properties 3 required
PaymentCardId
string
Unique ID provided in the response while registering a payment card.
CurrencyCode
string
Currency code as per ISO 4217
ErrorList_2
array
HistoricalTransactionFootprint
object
A single transaction footprint along with transaction info for a corresponding payment transaction.
2 properties 2 required
Day
string
AggregateTransactionFootprint
object
Aggregate transaction footprint for a single payment card ID.
2 properties 2 required
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
Error_2
object
Error object which contains details about the error.
5 properties 4 required
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…
Errors_2
object
Error object which returns a list of Error objects.
1 property 1 required
TransactionMetadata
object
Metadata about a transaction.
14 properties 10 required
TransactionFootprint
object
A single transaction footprint calculated for a corresponding payment transaction.
2 required
HistoricalTransactionFootprints
object
Response object which holds all the transaction footprints for historical transactions.
5 properties
PaymentCardEnrolments
array
List of payment card enrolments corresponding to each of the payment cards. This information should be used to identify the success and failure enrolments and…
PaymentCardEnrolment
object
The response object which contains Payment Card information.
5 properties
X-MC-Correlation-ID
string
CarbonUsage
object
Object to hold carbon usage data.
2 properties
Category
object
User understandable information about an MCC categorization.
4 properties
AggregateTransactionFootprints
object
List of AggregateTransactionFootprint.
2 properties 1 required
FootprintAggregation
object
Aggregation of carbon score for a payment card ID and given aggregation level.
CrossPANAggregation
object
Cross PAN aggregated carbon footprint for given aggregate type.
1 property
PaymentCardReference
object
Reference information for a Payment Card generated after a successful registration. This information should be used to perform the further operation for that c…
4 properties 4 required
ErrorWrapper_2
object
The error response object gets returned in case of any error.
1 property 1 required
PaymentCard
object
The request object for registering a new Payment Card. This object will be encrypted before sending it to the server.
2 properties 2 required
Error-201
object
1 property 1 required
OneTimePaymentSuccess
object
3 properties
Authentication
object
2 properties
CardCVC
object
Cvc is a unique number.NOTE In case of card not added already then primaryAccountNumber and cardExpiry are required and cardCvc is conditional, optional for St…
3 properties
SessionDetails
object
1 property
Error_3
object
1 property 1 required
Error-415
object
1 property 1 required
Error-500
object
1 property 1 required
Error-404
object
1 property 1 required
GuestDonate
object
5 properties 3 required
cardExpiry
object
2 properties
Error-403
object
1 property 1 required
User
object
3 properties 2 required
GuestDonation
object
3 properties
CardCvcGuest
object
3 properties
Error-401
object
1 property 1 required
AuthPayerResponse
object
1 property
RealTimePayment
object
7 properties 2 required
Donation
object
3 properties 3 required
3ds2
object
Required If authPayerResponse object is passed, only for MPGS.
2 properties 1 required
3ds
object
Required If authPayerResponse object is passed.
4 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mastercard-payments-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 Payments 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.