Documentation

List MID InsightsImprove this page

The List MID Insights endpoint provides programmatic clarity into the health, status, and validation details of your onboarded Merchant Identification Numbers (MIDs) across card networks. As part of our Phase 2 rollout, this endpoint enables advanced programmatic querying to proactively monitor your transaction ingestion pipelines.


Overview

The List MID Insights endpoint allows you to query and monitor the full lifecycle of your onboarded MIDs. Key capabilities include:

  • 🔍 Health monitoring: Track the current status of every onboarded MID across card networks
  • 📊 Network activation details: View scheme-specific identifiers (Visa, Mastercard, Amex) for each MID
  • 🔗 Transaction linkage: Identify the first and last transactions seen on each MID for your program
  • 📅 Date filtering: Filter MID insights by last seen transaction date ranges
  • 🏷️ Origin tracing: Understand how each MID was discovered or sourced
  • 📄 Paginated results: Efficiently retrieve large sets of MID insights using cursor-based pagination

Availability & Requirements

⚠️ Important Eligibility Notice: This endpoint is exclusively available to Premium Tier customers.

  • Activation: This feature is not enabled by default. It is only available to Premium Tier clients. To unlock access for your program, please reach out directly to your assigned Customer Success Manager (CSM).
  • Dashboard Support: This release represents the programmatic API phase. Full self-service visualization and dashboard functionality for MID Insights will be available in the Fidel Dashboard by August 2026.

API Endpoints

List MID Insights

Retrieve a paginated list of MID insights for a program, including health, status, and validation details across card networks.

Endpoint: GET /programs/{programId}/mid-insights | API Reference

Request Parameters

Headers
Header NameTypeDescriptionRequired
AuthorizationStringYour live secret API key (Bearer SK_KEY).Yes
Fidel-VersionStringThe targeted API version (e.g., 2024-11-25).Yes
Path Parameters
ParameterTypeDescriptionRequired
programIduuidThe id of the program.Yes
Query Parameters
ParameterTypeDescriptionRequired
brandIduuidBrand unique identifier.No
iduuidMid insight unique identifier.No
limitstringNumerical digit from 1 up to 100.No
locationIduuidLocation unique identifier.No
midIduuidMerchant unique identifier.No
lastSeenTransactionDateFromdate, date-timeFilter MID insights with a last seen transaction date on or after this value for your program. Accepts ISO 8601 date or date-time format.No
lastSeenTransactionDateTodate, date-timeFilter MID insights with a last seen transaction date on or before this value for your program. Accepts ISO 8601 date or date-time format.No
originenumFilters MID insights by how the MID was sourced or discovered for your program. Accepted values: address-match, brand-provided-mid, customer-provided-mid, manual-mid-lookup, missing-transaction-lookup, processor-provided-mid, system-mid-lookup, system-provided-mid, third-party-provided-mid.No
seNumberstringThe Amex Service Establishment number (Merchant ID). Must be exactly 10 numeric digits.No
mcAcquiringMidstringThe Mastercard Acquiring Merchant ID.No
mcLocationIdstringThe Mastercard Location ID.No
visaAcquiringMidstringThe Visa Acquiring Merchant ID (CAID).No
visaBinstringThe Visa Bank Identification Number.No
vmidstringThe Visa Merchant ID. Must be 6 to 8 numeric digits.No
vsidstringThe Visa Store ID.No
selectenumSelect specific response mode. Use count to return only the total count without items.No
sortenumField to sort results by. Accepted values: created, onboardedAt, offboardedAt, lastSeenTransactionDate, sourcedAt, eventTs, updated, origin, status, scheme.No
orderenumSort order direction. Accepted values: asc, desc.No
startstringBase64-encoded pagination cursor for the next page of results. Obtained from the last field of a previous response.No
statusenumFilter by MID insight status. Accepted values: onboarded, offboarded.No

Response Object

The endpoint returns a JSON object containing a paginated array of MID insights. Each entry details network activation statuses and diagnostic messages to help you resolve network mismatches quickly.

The top-level response contains:

  • count — Total number of matching MID insights
  • items — Array of MID insight records (see fields below)
  • last — Pagination cursor for the next page of results (pass as start in your next request)
FieldTypeRequiredDescription
brandIdstringRequiredThe brand (merchant) this MID insight belongs to.
cardNetworkMerchantNamestringOptionalMerchant name as registered with the card network.
createdstringRequiredTimestamp when the MID insight record was created.
idstringRequiredUnique identifier of this MID insight record.
locationIdstringRequiredThe location this MID is associated with.
mcAcquiringMidstringOptionalMastercard acquiring MID.
mcLocationIdstringOptionalMastercard location identifier.
midIdstringRequiredThe MID record this insight is linked to.
midRequestIdstringOptionalThe MID request that originated this MID, if applicable.
offboardedAtstringOptionalTimestamp when the MID was offboarded from the card network.
onboardedAtstringOptionalTimestamp when the MID was onboarded to the card network.
originstringOptionalHow the MID was sourced (e.g. manual, automatic). See MID Origin Types.
programIdstringRequiredThe program this MID insight belongs to.
seNumberstringOptionalService Establishment number (Amex merchant identifier).
sourcedAtstringOptionalTimestamp when the MID was initially sourced or discovered.
schemestringRequiredCard network scheme (e.g. visa, mastercard, amex).
statusstringRequiredCurrent status of the MID insight (e.g. onboarded, offboarded, sourced).
visaAcquiringMidstringOptionalVisa acquiring MID.
visaBinstringOptionalVisa Bank Identification Number.
vmidstringOptionalVisa Merchant ID (assigned by Visa).
vsidstringOptionalVisa Store ID.
lastSeenTransactionDatestringOptionalDate of the most recent transaction seen on this MID for your program.
lastSeenTransactionIdstringOptionalID of the most recent transaction seen on this MID for your program.
firstTransactionClearingIdstringOptionalID of the first clearing transaction on this MID.
firstTransactionAuthIdstringOptionalID of the first authorisation transaction on this MID for your program.

MID Origin Types

The origin field describes how each MID was discovered or sourced for a location.

OriginResponse Field ValueDescription
Address matchaddress-matchMID was identified as part of searching the address automatically on the card network and matching MIDs based on brand name and address details provided by the client on location level.
Brand providedbrand-provided-midThe MID was provided directly by the brand or merchant.
Customer providedcustomer-provided-midThe client added the MID to the location or to a MID request for onboarding.
Manual lookupmanual-mid-lookupFidel support manually looked up the card network MID for an onboarded location through the card networks.
Missing transaction lookupmissing-transaction-lookupA transaction was made at an onboarded location and the MID was identified from the transaction data (most accurate).
Processor providedprocessor-provided-midThe MID was provided by the payment processor or acquirer (e.g., Stripe, Adyen).
System MID lookupsystem-mid-lookupA Mastercard CAID (Card Acceptor ID) triggered the system to look up the Visa MIDs/CAIDs through the Mastercard CAID.
System providedsystem-provided-midThe MID was automatically identified and provided by the Fidel system.
Third-party providedthird-party-provided-midA third-party service (e.g., Incubit) sourced the MID for the location.

Scheme-Specific Fields

Depending on the card network (scheme) of a MID insight, different identifier fields will be populated in the response.

FieldSchemeDescription
seNumberAmexAmex MID number (Service Establishment number).
mcAcquiringMidMastercardMastercard Acquiring Merchant ID.
mcLocationIdMastercardMastercard Location ID.
visaAcquiringMidVisaVisa Acquiring Merchant ID (CAID).
visaBinVisaVisa Bank Identification Number.
vmidVisaVisa Merchant ID (assigned by Visa).
vsidVisaVisa Store ID.
cardNetworkMerchantNameAll schemesMerchant name as registered with the card network at the scheme for this MID.
lastSeenTransactionDateAll schemesDate of the last transaction tracked by Fidel for your program on this MID.
lastSeenTransactionIdAll schemesLast tracked Fidel transaction ID on this MID for your program (confirms whether the MID is still active).
firstTransactionClearingIdAll schemesFirst Fidel clearing transaction ID tracked on this MID.
firstTransactionAuthIdAll schemesFirst Fidel authorisation transaction ID tracked on this MID for your program.

Implementation Example

123456
curl --request GET \
  --url 'https://api.fidel.uk/v1/programs/programId/mid-insights?sort=created&order=desc' \
  --header 'accept: application/json' \
  --header 'Authorization: Bearer clsk_live_...' \
  --header 'Fidel-Version: 2024-11-25'

Error Codes

HTTP StatusError CodeDescription
401unauthorizedThe API key provided is invalid or expired.
403tier_restrictedFeature locked. Your account is not configured for Premium tier access.
404resource_not_foundThe requested programId could not be found.
429rate_limit_exceededRequest volume limits exceeded. Implement request back-off mechanisms.