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

# Business Details

> This GET API retrieves business details from the database based on the provided API key.

# Retrieve Business Details by API Key

This endpoint retrieves **business details** from the database based on the provided API KEY.

## Path Parameters

* **id** (string, required):\
  The unique identifier of the business record to be retrieved.
  * Example: `QmEB3OK3rjTZS1SBjsXUxANWWh198y5uv`
  * If a valid ID is provided, the API will return the business details.

📌 **How it Works**\
The system fetches business details for the given api key and returns relevant information. If no matching business exists, a `404 Not Found` response is returned.

## Request Headers

* **User-Agent** (string, optional): The User-Agent header, which is not mandatory.

## Example Request

```http theme={null}
GET /business-details
User-Agent: Mozilla/5.0
```


## OpenAPI

````yaml GET /business-details
openapi: 3.0.1
info:
  title: OP APIs
  description: OP APIs
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://sandbox.omnispay.com/api/
    description: Sandbox server for testing and integration without affecting live data
security:
  - apiKey: []
    hmacSignature: []
    accountId: []
paths:
  /business-details:
    get:
      tags:
        - Public API for User Business Details
      summary: Retrieve a business details by api key
      description: >-
        This GET API retrieves business details from the database based on the
        provided API key.
      operationId: getBusinessDetails
      parameters:
        - name: User-Agent
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK. Business details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '400':
          description: Bad Request. Invalid or malformed api key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '401':
          description: >-
            Unauthorized. Access is denied due to invalid or missing
            authorization token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '403':
          description: Forbidden. You do not have permission to access this transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '404':
          description: Not Found. No business exists for the specified ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '409':
          description: Conflict. A conflict occurred while processing the request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '429':
          description: >-
            Too Many Requests. The user has exceeded the allowed number of
            requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
components:
  schemas:
    CommonResponse:
      type: object
      properties:
        status:
          type: string
        message:
          type: string
        response:
          type: object
  securitySchemes:
    apiKey:
      type: apiKey
      name: apiKey
      in: header
    hmacSignature:
      type: apiKey
      name: X-HMAC-Signature
      in: header
    accountId:
      type: apiKey
      name: accountId
      in: header

````