Mastercard Merchant Identifier API Python SDK for retrieving merchant information. Version 2.0.0. Release cadence irregular, tied to API updates.
pip install mastercard-merchant-identifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart using environment variables for credentials and sandbox.
Update imports to use mastercard_merchant_identifier.rest and mastercard-api-common for ApiClient.
pip install mastercard-api-common and import ApiClient from mastercard_api_common.
Inspect response or rely on API reference.
Set MASTERCARD_CONSUMER_KEY, MASTERCARD_KEY_ALIAS, MASTERCARD_SIGNING_KEY_PATH (or equivalently use PKCS12 keystore).
Use ApiClient(..., sandbox=False) for production.