Skip to content

PUT   /merchants/{merchantId}

Update a merchant by ID

Updates a specific merchant by its ID

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

merchantId   path integer

The ID of the merchant 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

Merchant updated successfully

{
"id": 0,
"merchantName": "string",
"dba": "string",
"legalName": "string",
"mcc": "string",
"mccDescription": "string",
"status": "string",
"processingStatus": "string",
"riskLevel": "string",
"merchantAccountId": "string",
"agentAccountId": "string",
"agentName": "string",
"isoAccountId": "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/UpdateMerchantRequest

type: object
properties:
merchantName:
type: string
dba:
type: string
legalName:
type: string
mcc:
type: string
mccDescription:
type: string
status:
type: string
enum:
- active
- inactive
- suspended
- pending
- closed
processingStatus:
type: string
enum:
- enabled
- disabled
- limited
- hold
riskLevel:
type: string
enum:
- low
- medium
- high
- critical
agentAccountId:
type: string
agentName:
type: string
isoName:
type: string
activatedDate:
type: string
format: date-time
lastProcessingDate:
type: string
format: date-time
principals:
type: array
items:
type: object
properties:
type:
type: string
enum:
- FOUNDER
- CO_FOUNDER
- INVESTOR
- SHAREHOLDER
- PARTNER
- SILENT_PARTNER
- LIMITED_PARTNER
- EMPLOYEE_OWNER
- FAMILY_MEMBER
- HEIR
- BOARD_MEMBER_WITH_EQUITY
firstName:
type: string
lastName:
type: string
email:
type: string
phone:
type: string
ssn:
type: string
driversLicenseNumber:
type: string
driversLicenseState:
type: string
dateOfBirth:
type: string
homeStreet1:
type: string
homeStreet2:
type: string
homeCity:
type: string
homeState:
type: string
homeZipCode:
type: string
equityOwnership:
type: integer
addresses:
type: array
items:
type: object
properties:
type:
type: string
enum:
- business
- legal
- mailing
street1:
type: string
street2:
type: string
city:
type: string
state:
type: string
postalCode:
type: string
country:
type: string
banking:
type: object
properties:
routingNumber:
type: string
accountNumber:
type: string
accountType:
type: string
enum:
- checking
- savings
bankName:
type: string
processing:
type: object
properties:
monthlyVolume:
type: number
format: decimal
averageTicket:
type: number
format: decimal
highTicket:
type: number
format: decimal
currentReserve:
type: number
format: decimal
reservePercentage:
type: number
format: decimal
processingLimit:
type: number
format: decimal
dailyLimit:
type: number
format: decimal
monthlyLimit:
type: number
format: decimal
rates:
type: object
properties:
discountRate:
type: number
format: decimal
transactionFee:
type: number
format: decimal
monthlyFee:
type: number
format: decimal
annualFee:
type: number
format: decimal
chargebackFee:
type: number
format: decimal
batchFee:
type: number
format: decimal
statementFee:
type: number
format: decimal
pciComplianceFee:
type: number
format: decimal
agentSplit:
type: number
format: decimal
isoSplit:
type: number
format: decimal
effectiveDate:
type: string
format: date
compliance:
type: object
properties:
pciCompliant:
type: boolean
pciLevel:
type: string
lastPciDate:
type: string
format: date
nextPciDue:
type: string
format: date
certificateUrl:
type: string
documentsRequired:
type: array
items:
type: object
properties:
type:
type: string
status:
type: string
enum:
- pending
- approved
- expired
expiryDate:
type: string
format: date
riskMetrics:
type: object
properties:
riskScore:
type: integer
chargebackCount:
type: integer
chargebackRatio:
type: number
format: decimal
refundRatio:
type: number
format: decimal
suspiciousActivity:
type: boolean
lastRiskReview:
type: string
format: date
nextRiskReview:
type: string
format: date

#/components/schemas/Merchant

type: object
description: Core merchant object
properties:
id:
type: integer
description: Unique identifier for the merchant
merchantName:
type: string
description: Business trading name
dba:
type: string
description: Doing Business As name
legalName:
type: string
description: Legal business name
mcc:
type: string
description: Merchant category code
mccDescription:
type: string
description: Description of the MCC
status:
type: string
enum:
- active
- inactive
- suspended
- pending
- closed
description: Current merchant status
processingStatus:
type: string
enum:
- enabled
- disabled
- limited
- hold
description: Processing status
riskLevel:
type: string
enum:
- low
- medium
- high
- critical
description: Risk assessment level
merchantAccountId:
type: string
description: Merchant account ID reference
agentAccountId:
type: string
description: Agent account ID reference
agentName:
type: string
description: Agent name
isoAccountId:
type: string
description: ISO account ID reference
isoName:
type: string
description: ISO name
activatedDate:
type: string
format: date-time
description: Date merchant was activated
lastProcessingDate:
type: string
format: date-time
description: Last processing activity date
createdBy:
type: string
description: Email of user who created the merchant
updatedBy:
type: string
description: Email of user who last updated the merchant
createdAt:
type: string
format: date-time
description: When the merchant was created
updatedAt:
type: string
format: date-time
description: When the merchant was last updated

Route Source Code

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

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