Documentation

MID Management APIImprove this page

Manage the full lifecycle of Merchant IDs (MIDs) for your card-linked programs. Onboard, offboard, and reassign MIDs to control where you receive transaction data.


Merchant IDs (MIDs)

What is a MID

A Merchant ID (MID) is a unique identifier assigned to a physical or online merchant location by their payment processor. This identification number is crucial for the payment ecosystem to function properly.

Key functions of a MID:

  • 🏪 Location identifier: Each MID is associated with a specific merchant location, not the brand as a whole
  • 💰 Payment routing: Enables payment processors to route funds to the correct merchant account
  • 📍 Transaction attribution: Transmitted with cardholder information to ensure accurate transaction reconciliation
  • 🔍 Data tracking: Allows card-linked programs to identify and track transactions at specific merchant locations

💡 Think of it as an address: Without a MID, the payment networks wouldn't know where to send the merchant's money. In card-linked programs, MIDs enable you to receive transaction data from specific merchant locations enrolled in your program.

For more information, see the Locations/Merchant Onboarding FAQs.


View and manage Merchant IDs (MIDs) onboarded for your program by selecting a Program from the Programs page. This opens the 'Merchant IDs' tab in the Fidel Dashboard.

Merchant IDs

All onboarded MIDs for the selected program are displayed on this page. You can also retrieve this information via the API: Get MID | List MIDs


Onboard MID

Onboard MIDs to existing locations via the Create MID Request API or the Fidel Dashboard. Learn more about what is a MID request.

Dashboard Walkthrough

Step-by-step:

  1. Navigate to Programs - Select your program from the Programs page to open the Merchant IDs tab
  2. Initiate onboarding - Click + Onboard MID in the upper right
  3. Select location - Choose the brand and location where you want to onboard the MID, then click Next
  4. Choose MID origin - Select the appropriate origin from the dropdown (see table below for descriptions)
  5. Enter MID details - Select the card network and enter the MID value
  6. Submit - Click Done to create the request

MID Origin Types

OriginDescription
Missing transaction lookupA transaction was made at an onboarded location and the MID was identified from the transaction data (most accurate).
Manual lookupFidel support manually looked up the card network MID for an onboarded location through the card networks.
Brand providedThe MID was provided directly by the brand/merchant.
Processor providedThe MID was provided by the payment processor or acquirer (e.g., Stripe, Adyen).
Third-party providedA third-party service (e.g., Incubit) sourced the MID for the location.

⏱️ Processing Time: MID requests are processed asynchronously and typically take up to 7 days to complete due to card network constraints.


Bulk MID action (onboard, offboard or re-assign)

For Bulk MID requests like onboarding, reassigning or offboarding multiple MIDs at once, use the CSV bulk upload feature in the Fidel Dashboard. This is ideal when you have a large number of MIDs to onboard across multiple locations.

Dashboard Walkthrough

Step-by-step:

  1. Navigate to Programs - Select your program from the Programs page to open the Merchant IDs tab
  2. Initiate bulk upload - Click Bulk Upload in the upper right.
  3. Download template - Click Download CSV Template to get the required file format
  4. Prepare your CSV - Fill in the template with your MID data (see format requirements below)
  5. Upload file - Drag and drop your CSV file or click to browse and select it
  6. Review entries - Verify the parsed MID entries are correct
  7. Submit - Click Upload to create the onboard requests for all MIDs

CSV Format Requirements

Your CSV file must include the following columns:

ColumnRequiredDescription
actionYesThe MID request action. Accepted values: onboard, offboard, reassign.
locationIdYesThe unique identifier of the location where the MID should be onboarded.
schemeYesThe card network for the MID. Accepted values: visa, mastercard, amex.
originOnboard onlyThe source of the MID. Required for onboard actions. See MID Origin Types for accepted values.

Example CSV:

12345
action,locationId,origin,scheme,seNumber,mcAcquiringMid,mcLocationId,visaAcquiringMid,visaBin,vmid,vsid,midId,newLocationId,reason
onboard,f6200ed2-8a2d-4a6b-beb1-bf411539a1a8,third-party-provided-mid,mastercard,,214875,891234,,,,,,,
onboard,f6200ed2-8a2d-4a6b-beb1-bf411539a1a8,brand-provided-mid,visa,,,,567890,412345,,,,,
onboard,bdfe8b39-9e12-4e3b-bb97-1ee8c3043f7b,manual-mid-lookup,visa,,,,,,789012,65432110,,,

💡 Tip: Use the downloadable CSV template to ensure your file has the correct format and column headers.

⚠️ Limits: Each bulk upload supports up to 250 MIDs per file. For larger batches, split your data into multiple CSV files.

⏱️ Processing Time: Each MID in the bulk upload creates an individual MID request. Processing times remain the same (up to 7 days per request). You can track the status of all requests in the MID Requests tab.


Offboard MID

Offboard a MID via the Create MID Request API with the action 'offboard', or via the Fidel Dashboard.

Dashboard Walkthrough

Step-by-step:

  1. Locate MID - Find the MID you want to offboard in the Merchant IDs list
  2. Open actions menu - Click the three dots next to the relevant MID
  3. Select offboard - Choose Offboard MID from the dropdown menu
  4. Choose reason - Select the reason for offboarding from the dropdown
  5. Acknowledge impact - Confirm that you understand you will no longer receive transactions for this MID
  6. Submit - Click Confirm to create the offboard request

📋 Next Steps: This creates a new MID request. See the MID Requests section to track the status.


Reassign MID

Reassign a MID to a different location via the Create MID Request API with the action 'reassign', or via the Fidel Dashboard.

Dashboard Walkthrough

Step-by-step:

  1. Locate MID - Find the MID you want to reassign in the Merchant IDs list
  2. Open actions menu - Click the three dots next to the relevant MID
  3. Select reassign - Choose Reassign MID from the dropdown menu
  4. Choose reason - Select the reason for reassigning the MID
  5. Select new location - Choose the brand and location where the MID should be assigned
  6. Submit - Click Done to create the reassignment request

📋 Next Steps: This creates a new MID request. See the MID Requests section to track the status.


Block MID (Block-list)

Block a MID when it must not be used for a program — for example a MID that belongs to another brand, a location that was onboarded in error, or a MID that has to be excluded from a card-linked campaign. Blocking refuses the MID for the program, offboards any copy that is already onboarded, and can be undone later.

Block-list page in the Fidel Dashboard

The Block-list page lists every blocked MID for the selected program: the card scheme, the MID, the network identifiers attached to the block, the scope, and when it was blocked. Rows open the raw MID block record.

Scope: Exact or Parent

A block targets either one merchant location or the MID as a whole. The scope is derived from the identifiers you provide.

ScopeWhat is blockedIdentifiers
ExactA single merchant location.Parent identifier plus the child identifier (VSID, BIN or LID).
ParentThe MID and every location currently or later associated with it.Parent identifier only; the child identifier is omitted.

The identifiers available depend on the card scheme:

SchemeParent identifierChild identifier (optional)
Visa (merchant)vmidvsid
Visa (acquirer)visaAcquiringMidvisaBin
MastercardmcAcquiringMidmcLocationId
AmexseNumberNot applicable

Block a MID

Step-by-step:

  1. Open the Block-list - Select the program, then choose Block-list in the sidebar, or use Block MID from the Merchant IDs page
  2. Start a block - Click Block MID in the upper right
  3. Choose the scheme - Select the Visa, Mastercard or Amex tab
  4. Enter the parent identifier - Provide the VMID, acquiring MID or SE number, depending on the scheme
  5. Set the scope - Add the child identifier to block one location, or leave it blank to block the whole MID
  6. Submit - Review the parent-MID warning and click Block MID. When the drawer is opened from the Merchant IDs page, tick the acknowledgement first to enable the button
Block MID drawer

📋 Offboarding: Blocking a MID that is currently onboarded creates the offboard requests for the copies in the program. Track their progress in the MID Requests section. Blocking a MID that is already covered by a parent block returns the mid-already-block-listed error.

Filter the block-list

The block-list filters by card scheme and by the identifiers stored with each block. Identifier filters are scheme-specific and build on the parent identifier: a VSID filter also needs the VMID, a BIN filter the Visa acquiring MID, and an LID filter the Mastercard acquiring MID.

Block-list filters for scheme and identifiers

Unblock a MID

  1. Open the row actions - Find the blocked MID and open its actions menu
  2. Select unblock - Choose Unblock MID
  3. Confirm - Review the scheme, MID and scope, then click Unblock

Unblocking removes the entry from the block-list. It does not re-onboard the MID — create a new MID request if the merchant needs to receive transaction data again.

API

The block-list is also available through the API:

  • POST /programs/{programId}/mid-block — create a block
  • GET /programs/{programId}/mid-block — list blocks
  • DELETE /programs/{programId}/mid-block/{midBlockId} — remove a block

The request body accepts one scheme-specific shape. Send the child identifier to block a single location, or omit it to block the parent MID.

123456
{
  "scheme": "visa",
  "vmid": "412345678901",
  "vsid": "00123456"
}
123456
{
  "scheme": "visa",
  "visaAcquiringMid": "654321",
  "visaBin": "400000"
}
123456
{
  "scheme": "mastercard",
  "mcAcquiringMid": "549988771234567",
  "mcLocationId": "98765"
}
12345
{
  "scheme": "amex",
  "seNumber": "3022430235"
}

A successful create returns 201 with the new entry:

1234567891011121314151617
{
  "items": [
    {
      "id": "a1b2c3d4-0000-0000-0000-000000000000",
      "accountId": "00000000-0000-0000-0000-000000000000",
      "programId": "00000000-0000-0000-0000-000000000000",
      "scheme": "visa",
      "level": "exact",
      "vmid": "412345678901",
      "vsid": "00123456",
      "live": true,
      "created": "2026-11-19T10:00:00.000Z",
      "updated": "2026-11-19T10:00:00.000Z"
    }
  ]
}

List filters:

ParameterDescription
schemeFilters by card scheme.
seNumberAmex SE number.
mcAcquiringMidMastercard acquiring MID.
mcLocationIdMastercard location ID. Requires mcAcquiringMid.
vmidVisa merchant ID.
vsidVisa store ID. Requires vmid.
visaAcquiringMidVisa acquiring MID.
visaBinVisa acquirer BIN. Requires visaAcquiringMid.
limit, startPagination. start is the last value from the previous page.

Deleting a block returns 204 No Content. Removing a block that does not exist returns the mid-block-not-found error.

The complete API reference is available at reference.fidel.uk.


MID Requests

What is a MID Request

A MID request is a workflow instruction to the Fidel platform to source, remove, or re-link a card-network MID for a specific merchant location within a program.

Supported actions map to the MID lifecycle:

  • ✅ onboard: Ask Fidel to provision or ingest a MID for AMEX, Mastercard, or Visa.
  • ❌ offboard: Remove an existing MID that should no longer be associated with a location, stopping the transaction ingestion pipeline.
  • 🔄 reassign: Move an existing MID from one location to another.

📊 Request Tracking: Every request is tracked independently so you can poll for status, inspect error details, and retrieve the card-network outcome (returned MID identifiers) once processing finishes.

MID requests are displayed under the 'Requests' tab on the Dashboard. All MID requests you create to onboard, offboard, or reassign MIDs will be visible on this tab or can be retrieved via these endpoints: Get MID Request | List MID Requests

MID requests

The different statuses of MID requests are defined below:

StatusDescription
PendingThe request has been received and is queued for processing.
ProcessingThe request is currently being processed by the card networks.
SuccessfulThe request has been successfully completed and the MID has been onboarded, offboarded, or reassigned.
FailedThe request could not be completed. Check the error details for more information.

Webhooks

Subscribe to webhooks to receive real-time notifications when a MID request succeeds or fails:

  • ✅ mid-request.succeeded
  • ❌ mid-request.failed

You can also view the status on the Dashboard. To understand why a MID request failed, inspect the raw data by clicking on the failed request:

mid-request.json

1234567891011121314151617181920212223
{
  "accountId": "f7a83b85-2452-4715-806c-35be51b6515b",
  "action": "onboard",
  "brandId": "50c28205-ff3c-440e-8e27-42b7770d8dd9",
  "created": "2025-10-06T16:57:44.230Z",
  "estimatedCompletionDate": "2025-10-07T16:57:44.230Z",
  "id": "317e0700-2a9e-44d3-9380-6c06c6ef3593",
  "live": true,
  "locationId": "ed8ef30e-5e33-4bf8-93eb-aaa8ee8c2de4",
  "origin": "missing-transaction-lookup",
  "programId": "a7ce6bed-efad-4582-b9c2-a583185fa39e",
  "result": {
    "error": {
      "code": "card-scheme-mid-not-found",
      "message": "Merchant not valid"
    }
  },
  "scheme": "amex",
  "seNumber": "3022430235",
  "status": "failed",
  "updated": "2025-10-06T16:57:55.033Z"
}

Error Codes

These are the error codes for failed MID requests:

Error CodeMessageDescription
card-scheme-mid-not-foundMerchant not validThe card scheme could not locate a valid MID for this merchant.
program-not-configuredClient program not configured with card schemeThe client program has not been configured with the card scheme, so the MID cannot be onboarded.
card-scheme-shared-midShared MIDThe MID provided for onboarding is a 'shared MID'. See 'Shared MIDs' in the FAQs for more information.
no-mids-foundNo MIDs were found at the card schemeThe MID provided as part of the MID request does not exist at the card network/scheme.
visa-invalid-inputInvalid input provided for VisaOne or more Visa-specific MID fields (e.g., VMID, VSID, Visa BIN, or Visa Acquiring MID) contain invalid values.
mid-onboarding-conflictMID is onboarded to a different location or was deleted before this request completedThe request could not be completed because the MID state changed during processing: it is now linked to another location, or it was removed before onboarding finished.
unexpected-errorUnexpected errorAn unexpected exception occurred during processing.