Skip to content

PUT   /mids/{midId}

Update a MID

Update an existing MID with new information

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

midId   path string

The ID of the MID to update

Optional Parameters

Click here to view an exhaustive list of all available parameters
x-account-id   header string

The account ID for the request

Request Body

{}

Try it out

Loading...

Output:

Responses

Description

MID updated successfully

{
"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"
}

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: The account ID for the request
required: false

#/components/schemas/UpdateMidRequest

type: object
properties:
descriptor:
type: string
status:
type: string
enum:
- pending
- active
- suspended
- terminated
processingStatus:
type: string
enum:
- enabled
- disabled
- limited
- hold

#/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

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