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

# Modifier votre profil

> name, support_email, support_phone, website_url, category uniquement

<Note>
  `is_active` et `kyc_status` sont en lecture seule — ils ne bougent que via l'approbation d'un [dossier KYC](/api-reference/kyc) ou une action admin, jamais par édition directe de ce endpoint.
</Note>


## OpenAPI

````yaml api-reference/openapi.json PATCH /merchants/{id}/
openapi: 3.1.0
info:
  title: SasPay API
  description: >-
    API d'encaissement et de paiement mobile money/carte pour l'Afrique de
    l'Ouest et du Centre. Toutes les routes marchand nécessitent une clé API
    secrète (header Authorization: Bearer sk_...).
  version: 1.0.0
servers:
  - url: https://api.saspay.me/api/v1
security:
  - bearerAuth: []
paths:
  /merchants/{id}/:
    patch:
      tags:
        - Marchand
      summary: Modifier votre profil marchand
      description: >-
        Champs modifiables : name, support_email, support_phone, website_url,
        category. is_active et kyc_status sont en lecture seule.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Identifiant du marchand
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                support_email:
                  type: string
                  format: email
                support_phone:
                  type: string
                website_url:
                  type: string
                  format: uri
                category:
                  type: string
            example:
              support_email: contact@kolofa.shop
              website_url: https://kolofa.shop
      responses:
        '200':
          description: Profil mis à jour
          content:
            application/json:
              example:
                id: 8a2f3c10-9b4e-4a1d-8c3f-1e2d3c4b5a6f
                owner_user: 9d1e2f3a-4b5c-4d6e-8f7a-0b1c2d3e4f5a
                name: Kolofa Boutique
                support_email: support@kolofa.shop
                support_phone: '+22997000000'
                website_url: https://kolofa.shop
                category: E-commerce
                is_active: true
                kyc_status: VERIFIED
                configs:
                  - id: c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f
                    merchant: 8a2f3c10-9b4e-4a1d-8c3f-1e2d3c4b5a6f
                    key: ALLOW_CLIENT_OVERRIDE
                    value: 'true'
                    type: boolean
                    description: Autoriser le client à choisir qui paie les frais
                    created_at: '2026-07-01T09:00:00Z'
                    updated_at: '2026-07-01T09:00:00Z'
                created_at: '2026-05-10T08:30:00Z'
                updated_at: '2026-08-01T14:12:00Z'
        '400':
          description: Corps de requête invalide
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_live_... / sk_test_...
      description: >-
        Clé API secrète du marchand — header Authorization: Bearer sk_live_xxx
        (ou sk_test_xxx en environnement de test).

````