---
updatedAt: 2026-07-31T14:17:40.000Z
agentTools:
  projectIndex: https://reference.fidel.uk/llms.txt
---

# Get mid

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "fidel-api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.fidel.uk/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Fidel-Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/programs/{programId}/mids/{midId}": {
      "get": {
        "summary": "Get mid",
        "description": "",
        "operationId": "get_cards{cardId}-1",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Fidel-Key",
            "in": "header",
            "description": "test/live API secret or public key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "programId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the program where the MID belongs to"
          },
          {
            "in": "path",
            "name": "midId",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the MID to retrieve"
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "items": [
                        {
                          "id": "eea320c8-889d-48ee-be73-cf4d770c1150",
                          "accountId": "e3fc656c-b43a-4933-a1df-c94357697990",
                          "programId": "a96317b3-a259-4b6d-8254-ea61d2ec1166",
                          "locationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                          "brandId": "52be0f0c-2063-47ea-88c9-6f6137e4fe12",
                          "scheme": "visa",
                          "visa": {
                            "type": "merchant",
                            "merchant": {
                              "vmid": "99616405",
                              "vsid": "8778179150"
                            }
                          },
                          "isShared": false,
                          "live": true,
                          "created": "2025-08-01T10:15:41.423Z",
                          "updated": "2025-08-01T10:15:41.423Z"
                        }
                      ],
                      "resource": "/v1/programs/a96317b3-a259-4b6d-8254-ea61d2ec1166/mids/eea320c8-889d-48ee-be73-cf4d770c1150",
                      "status": 200,
                      "execution": 56.217957
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "612ff311-dc0c-448d-8199-5a371f07433d",
                            "description": "The ID of the MID"
                          },
                          "scheme": {
                            "type": "string",
                            "example": "visa",
                            "enum": [
                              "amex",
                              "mastercard",
                              "visa"
                            ],
                            "description": "The scheme name"
                          },
                          "accountId": {
                            "type": "string",
                            "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b",
                            "description": "The ID of the account"
                          },
                          "created": {
                            "type": "string",
                            "example": "2018-09-10T10:30:50.494Z",
                            "description": "The timestamp when the MID was onboarded"
                          },
                          "live": {
                            "type": "boolean",
                            "example": false,
                            "default": true,
                            "enum": [
                              true,
                              false
                            ],
                            "description": "Whether the resource belongs to the live or test environment"
                          },
                          "updated": {
                            "type": "string",
                            "example": "2018-09-10T10:30:50.494Z",
                            "description": "The timestamp when the MID was last updated"
                          },
                          "programId": {
                            "type": "string",
                            "example": "f76ed1be-e434-480b-aa1d-ff48f548f62a",
                            "description": "The ID of the program"
                          },
                          "locationId": {
                            "type": "string",
                            "description": "The ID of the location"
                          },
                          "brandId": {
                            "type": "string",
                            "description": "The ID of the brand"
                          },
                          "isShared": {
                            "type": "boolean",
                            "enum": [
                              true,
                              false
                            ],
                            "description": "Indicates if the MID is a payment facilitator"
                          },
                          "amex": {
                            "type": "object",
                            "properties": {
                              "seNumber": {
                                "type": "string",
                                "description": "The Amex Service Establishment number (Merchant ID)"
                              }
                            },
                            "required": [
                              "seNumber"
                            ]
                          },
                          "visa": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "acquirer",
                                  "merchant"
                                ],
                                "description": "The type of Visa MID, either Acquirer (visaAcquiringMid and visaBin) or Merchant (vmid and vsid)"
                              },
                              "acquirer": {
                                "type": "object",
                                "properties": {
                                  "acquiringMid": {
                                    "type": "string",
                                    "description": "The Visa Acquiring Merchant ID"
                                  },
                                  "bin": {
                                    "type": "string",
                                    "description": "The Acquirer Bank Identification Number as assigned by Visa"
                                  }
                                },
                                "required": [
                                  "acquiringMid",
                                  "bin"
                                ],
                                "description": ""
                              },
                              "merchant": {
                                "type": "object",
                                "properties": {
                                  "vmid": {
                                    "type": "string",
                                    "description": "The Visa Merchant ID"
                                  },
                                  "vsid": {
                                    "type": "string",
                                    "description": "The Visa Store ID"
                                  }
                                },
                                "required": [
                                  "vmid"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "mastercard": {
                            "type": "object",
                            "properties": {
                              "acquiringMid": {
                                "type": "string",
                                "description": "The Acquiring Merchant ID"
                              },
                              "auth": {
                                "type": "boolean",
                                "enum": [
                                  true,
                                  false
                                ],
                                "description": "Indicates if the MID captures authorizations"
                              },
                              "clearing": {
                                "type": "boolean",
                                "enum": [
                                  true,
                                  false
                                ],
                                "description": "Indicates if the MID captures clearings"
                              },
                              "locationId": {
                                "type": "string",
                                "description": "The Mastercard Location ID"
                              }
                            },
                            "required": [
                              "acquiringMid",
                              "auth",
                              "clearing"
                            ]
                          }
                        }
                      }
                    },
                    "resource": {
                      "type": "string",
                      "example": "/v1/cards/612ff311-dc0c-448d-8199-5a371f07433d"
                    },
                    "status": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "execution": {
                      "type": "number",
                      "example": 56.217957,
                      "default": 0
                    }
                  },
                  "required": [
                    "items",
                    "resource",
                    "status",
                    "execution"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"resource\": \"/v1/cards/8536c6ba-35e7-45asw2-8180-fae49a7dfbf9\",\n\t\"status\": 400,\n\t\"error\": {\n\t\t\"code\": \"uuid\",\n\t\t\"date\": \"2020-08-27T11:15:46.489Z\",\n\t\t\"message\": \"Invalid uuid\"\n\t},\n\t\"execution\": 1.734118\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "example": "/v1/cards/8536c6ba-35e7-45asw2-8180-fae49a7dfbf9"
                    },
                    "status": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "uuid"
                        },
                        "date": {
                          "type": "string",
                          "example": "2020-08-27T11:15:46.489Z"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid uuid"
                        }
                      },
                      "required": [
                        "code",
                        "date",
                        "message"
                      ]
                    },
                    "execution": {
                      "type": "number",
                      "example": 1.734118,
                      "default": 0
                    }
                  },
                  "required": [
                    "resource",
                    "status",
                    "error",
                    "execution"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"resource\": \"/v1/cards/8536c6ba-35e7-45a2-8180-fae49a7dfbf9\",\n\t\"status\": 401,\n\t\"error\": {\n\t\t\"code\": \"credential\",\n\t\t\"date\": \"2020-08-27T11:14:59.134Z\",\n\t\t\"message\": \"Credential does not exist\"\n\t},\n\t\"execution\": 5.240948\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "example": "/v1/cards/8536c6ba-35e7-45a2-8180-fae49a7dfbf9"
                    },
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "credential"
                        },
                        "date": {
                          "type": "string",
                          "example": "2020-08-27T11:14:59.134Z"
                        },
                        "message": {
                          "type": "string",
                          "example": "Credential does not exist"
                        }
                      },
                      "required": [
                        "code",
                        "date",
                        "message"
                      ]
                    },
                    "execution": {
                      "type": "number",
                      "example": 5.240948,
                      "default": 0
                    }
                  },
                  "required": [
                    "resource",
                    "status",
                    "error",
                    "execution"
                  ]
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "    curl -X GET \\\n      https://api.fidel.uk/v1/programs/ \\\n      -H 'Content-Type: application/json' \\\n      -H 'Fidel-Key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63'",
              "name": "cURL"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```