# Get merchant profile

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /merchant/profile:
    get:
      summary: Get merchant profile
      deprecated: false
      description: Returns the authenticated merchant's profile.
      tags:
        - Merchant
        - Merchant
      parameters: []
      responses:
        '200':
          description: Merchant profile returned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  merchant:
                    $ref: '#/components/schemas/MerchantProfile'
                required:
                  - success
                  - merchant
                x-apidog-orders:
                  - success
                  - merchant
                x-apidog-ignore-properties: []
              example:
                success: true
                merchant:
                  id: 01HZY9W7W4H7T2H7Q51T9G1C2N
                  businessName: SX Digital Pay
                  status: ACTIVE
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
            X-RateLimit-Remaining:
              schema:
                type: string
            X-RateLimit-Reset:
              schema:
                type: string
          x-apidog-name: ''
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/Error'
              examples:
                '2':
                  summary: missing
                  value:
                    error: API Key not found
                '3':
                  summary: invalid
                  value:
                    error: Invalid API Key
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: Merchant is not active.
          content:
            application/json:
              schema: *ref_0
              example:
                error: Inactive Merchant
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: Resource not found.
          content:
            application/json:
              schema: *ref_0
              examples:
                '5':
                  summary: linkMissing
                  value:
                    error: Payment link not found
                '6':
                  summary: merchantMissing
                  value:
                    error: Merchant not found
          headers: {}
          x-apidog-name: NotFound
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema: *ref_0
              example:
                error: Too many requests. Try again in 60 seconds.
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
            X-RateLimit-Remaining:
              schema:
                type: string
            X-RateLimit-Reset:
              schema:
                type: string
            Retry-After:
              schema:
                type: string
          x-apidog-name: TooManyRequests
      security:
        - ApiKeyAuth: []
          x-apidog:
            schemeGroups:
              - id: 0wOaKPYF4UAvp6-juJDyn
                schemeIds:
                  - ApiKeyAuth
            required: true
            use:
              id: 0wOaKPYF4UAvp6-juJDyn
            scopes:
              0wOaKPYF4UAvp6-juJDyn:
                ApiKeyAuth: []
      x-apidog-folder: Merchant
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1147027/apis/api-26108740-run
components:
  schemas:
    MerchantProfile:
      type: object
      properties:
        id:
          type: string
        businessName:
          type: string
        status:
          $ref: '#/components/schemas/MerchantStatus'
      required:
        - id
        - businessName
        - status
      x-apidog-orders:
        - id
        - businessName
        - status
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    MerchantStatus:
      type: string
      enum:
        - PENDING
        - UNDER_REVIEW
        - ACTIVE
        - BANNED
      x-apidog-folder: ''
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
      x-apidog-orders:
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    ApiKeyAuth:
      type: apikey
      in: header
      name: x-api-key
      description: >-
        API key provisioned per merchant. Authorization: Bearer <api-key> is
        also accepted.
    WebhookSignature:
      type: apikey
      in: header
      name: x-sxpay-signature
      description: >
        HMAC-SHA256 signature calculated over "{timestamp}.{rawBody}" using the
        link's webhookSecret. Includes header x-sxpay-timestamp (epoch ms) for
        replay protection. These headers are only sent when a webhookSecret is
        configured for the link.
servers:
  - url: https://sandbox.sxdigitalpay.com/api/v1
    description: Sandbox
  - url: https://app.sxdigitalpay.com/api/v1
    description: Prod
security:
  - ApiKeyAuth: []
    x-apidog:
      schemeGroups:
        - id: aSabarTaLKMkoazJDLTtw
          schemeIds:
            - ApiKeyAuth
      required: true
      use:
        id: aSabarTaLKMkoazJDLTtw
      scopes:
        aSabarTaLKMkoazJDLTtw:
          ApiKeyAuth: []

```
