> ## Documentation Index
> Fetch the complete documentation index at: https://eximpe.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Merchant

> Update specific fields of an existing merchant.



## OpenAPI

````yaml openapi.json patch /partners/merchants/{merchant_id}/
openapi: 3.0.0
info:
  title: Eximpe Payment Gateway API
  description: >-
    API for payment processing and order management through Eximpe payment
    gateway
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api-staging.eximpe.com
    description: Staging server
  - url: https://api.eximpe.com
    description: Production server
security:
  - clientAuth: []
    clientSecretAuth: []
paths:
  /partners/merchants/{merchant_id}/:
    patch:
      tags:
        - Merchants
      summary: Update Merchant
      description: Update specific fields of an existing merchant.
      parameters:
        - name: merchant_id
          in: path
          description: The ID of the merchant to update.
          required: true
          schema:
            type: string
      requestBody:
        description: Merchant update request - only include fields to update
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMerchantRequest'
            example:
              company_details:
                website: https://updated-website.com
                monthly_avg_transaction_value: '75000.00'
                description_of_products_and_services: Updated description of services
              settlement_details:
                bank_account_number: '9876543210'
                bank_account_name: Updated Company Ltd
      responses:
        '200':
          description: Merchant updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMerchantResponse'
              example:
                success: true
                message: Merchant updated successfully
                data:
                  merchant_id: '3604346598'
                  updated_fields:
                    - company_details
                    - settlement_details
        '400':
          description: Bad request - Invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Merchant not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - clientAuth: []
          clientSecretAuth: []
components:
  schemas:
    UpdateMerchantRequest:
      type: object
      description: Request body for updating merchant - only include fields to update
      properties:
        company_details:
          type: object
          description: Company details to update
          properties:
            website:
              type: string
              format: uri
              description: Updated company website URL
            monthly_avg_transaction_value:
              type: string
              description: Updated average monthly transaction value
            description_of_products_and_services:
              type: string
              description: Updated description of products and services
        settlement_details:
          type: object
          description: Settlement details to update
          properties:
            bank_account_number:
              type: string
              description: Updated bank account number
            bank_account_name:
              type: string
              description: Updated bank account name
    UpdateMerchantResponse:
      type: object
      required:
        - success
        - message
        - data
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
        message:
          type: string
          description: Response message
        data:
          type: object
          description: Contains the updated merchant fields
          properties:
            merchant_id:
              type: string
              description: The ID of the updated merchant
            updated_fields:
              type: array
              items:
                type: string
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
        error:
          $ref: '#/components/schemas/ErrorDetails'
    ErrorDetails:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Error code (e.g., ERR_ORDER_002)
        message:
          type: string
          description: Error message
        details:
          type: object
          description: Detailed validation error information with field-specific errors
          additionalProperties:
            type: string
            description: Error message for the specific field
  securitySchemes:
    clientAuth:
      type: apiKey
      name: X-Client-ID
      in: header
      description: Client app ID. You can find your app id in the merchant dashboard.
    clientSecretAuth:
      type: apiKey
      name: X-Client-Secret
      in: header
      description: Client secret key. You can find your secret in the merchant dashboard.

````