Skip to content

GET   /mids/{midId}

Get a MID by ID

Retrieve a specific MID by its ID with optional related data

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

x-account-id   header string

Account ID for the request

midId   path string

The ID of the MID to retrieve

Optional Parameters

Click here to view an exhaustive list of all available parameters
includeRelations   query boolean

Include additional related data (configuration, limits, metrics)

Try it out

Loading...

Output:

Responses

Description

Successful response

{
"id": 0,
"merchantId": 0,
"midNumber": "string",
"descriptor": "string",
"status": "string",
"processingStatus": "string",
"agentId": "string",
"agentName": "string",
"isoId": "string",
"isoName": "string",
"activatedDate": "string",
"lastProcessingDate": "string",
"createdBy": "string",
"updatedBy": "string",
"createdAt": "string",
"updatedAt": "string",
"configuration": {
"id": 0,
"midId": 0,
"descriptor": "string",
"timezone": "string",
"batchTime": "string",
"autoSettle": false,
"allowRefunds": false,
"allowPartialRefunds": false,
"refundLimit": "string",
"status": "string",
"configuredDate": "string",
"configuredBy": "string"
},
"processingLimits": {
"id": 0,
"midId": 0,
"dailyLimit": "string",
"monthlyLimit": "string",
"transactionLimit": "string",
"currentDaily": "string",
"currentMonthly": "string",
"resetDate": "string"
},
"gatewaySettings": {
"id": 0,
"midId": 0,
"gatewayId": "string",
"gatewayName": "string",
"endpoint": "string",
"merchantId": "string",
"terminalId": "string",
"isActive": false,
"lastSync": "string",
"connectionStatus": "string"
},
"performanceMetrics": [
{
"id": 0,
"midId": 0,
"period": "string",
"transactionVolume": "string",
"transactionCount": 0,
"successRate": "string",
"chargebackRate": "string",
"chargebackCount": 0,
"refundRate": "string",
"revenue": "string",
"averageTicket": "string",
"tier": "string"
}
],
"merchant": {}
}

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: Account ID for the request
required: true
example: "2311"

#/components/schemas/Mid

type: object
properties:
id:
type: integer
description: Unique identifier for the MID
merchantId:
type: integer
description: ID of the merchant this MID belongs to
midNumber:
type: string
description: Unique MID number
descriptor:
type: string
description: MID descriptor
status:
type: string
enum:
- pending
- active
- suspended
- terminated
description: Current status of the MID
processingStatus:
type: string
enum:
- enabled
- disabled
- limited
- hold
description: Processing status of the MID
agentId:
type: string
description: Agent ID associated with the MID
agentName:
type: string
description: Agent name
isoId:
type: string
description: ISO ID
isoName:
type: string
description: ISO name
activatedDate:
type: string
format: date-time
description: Date when MID was activated
lastProcessingDate:
type: string
format: date-time
description: Last processing date
createdBy:
type: string
description: User who created the MID
updatedBy:
type: string
description: User who last updated the MID
createdAt:
type: string
format: date-time
description: Creation timestamp
updatedAt:
type: string
format: date-time
description: Last update timestamp

#/components/schemas/MidConfiguration

type: object
properties:
id:
type: integer
midId:
type: integer
descriptor:
type: string
timezone:
type: string
batchTime:
type: string
autoSettle:
type: boolean
allowRefunds:
type: boolean
allowPartialRefunds:
type: boolean
refundLimit:
type: string
status:
type: string
enum:
- pending
- configured
- incomplete
- review
configuredDate:
type: string
format: date-time
configuredBy:
type: string

#/components/schemas/MidProcessingLimits

type: object
properties:
id:
type: integer
midId:
type: integer
dailyLimit:
type: string
monthlyLimit:
type: string
transactionLimit:
type: string
currentDaily:
type: string
currentMonthly:
type: string
resetDate:
type: string
format: date-time

#/components/schemas/MidGatewaySettings

type: object
properties:
id:
type: integer
midId:
type: integer
gatewayId:
type: string
gatewayName:
type: string
endpoint:
type: string
merchantId:
type: string
terminalId:
type: string
isActive:
type: boolean
lastSync:
type: string
format: date-time
connectionStatus:
type: string
enum:
- connected
- disconnected
- error

#/components/schemas/MidPerformanceMetrics

type: object
properties:
id:
type: integer
midId:
type: integer
period:
type: string
transactionVolume:
type: string
transactionCount:
type: integer
successRate:
type: string
chargebackRate:
type: string
chargebackCount:
type: integer
refundRate:
type: string
revenue:
type: string
averageTicket:
type: string
tier:
type: string
enum:
- excellent
- good
- fair
- poor

#/components/schemas/MidWithRelations

allOf:
- type: object
properties:
id:
type: integer
description: Unique identifier for the MID
merchantId:
type: integer
description: ID of the merchant this MID belongs to
midNumber:
type: string
description: Unique MID number
descriptor:
type: string
description: MID descriptor
status:
type: string
enum:
- pending
- active
- suspended
- terminated
description: Current status of the MID
processingStatus:
type: string
enum:
- enabled
- disabled
- limited
- hold
description: Processing status of the MID
agentId:
type: string
description: Agent ID associated with the MID
agentName:
type: string
description: Agent name
isoId:
type: string
description: ISO ID
isoName:
type: string
description: ISO name
activatedDate:
type: string
format: date-time
description: Date when MID was activated
lastProcessingDate:
type: string
format: date-time
description: Last processing date
createdBy:
type: string
description: User who created the MID
updatedBy:
type: string
description: User who last updated the MID
createdAt:
type: string
format: date-time
description: Creation timestamp
updatedAt:
type: string
format: date-time
description: Last update timestamp
fromRef: "#/components/schemas/Mid"
- type: object
properties:
configuration:
$ref: "#/components/schemas/MidConfiguration"
processingLimits:
$ref: "#/components/schemas/MidProcessingLimits"
gatewaySettings:
$ref: "#/components/schemas/MidGatewaySettings"
performanceMetrics:
type: array
items:
$ref: "#/components/schemas/MidPerformanceMetrics"
merchant:
type: object
description: Associated merchant information

Route Source Code

Check out the source code for this route entrypoint here: /mids/[midId]/route.ts

Or the swagger.yaml spec this documentation was generated from: /mids/swagger.yaml