> ## 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.

# Retrieve Payment Link

> This GET API is used to retrieve the payment link record by the order ID.

# Retrieve Payment Link

This endpoint retrieves the payment link record associated with the given order ID.

## Path Parameters

* **orderId** (string, required): The unique identifier for retrieves the payment link record.

## Request Headers

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

## Example Request

```http theme={null}
GET /payment-link/get/12345
User-Agent: Mozilla/5.0
```


## OpenAPI

````yaml GET /payment-link/get/{id}
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:
  /payment-link/get/{id}:
    get:
      tags:
        - Public API for Payment Link Operations
      summary: Retrieve the payment link record by order ID.
      description: >-
        This GET API is used to retrieve the payment link record by the order
        ID.
      operationId: getPaymentLinkRecordByOrderId
      parameters:
        - name: User-Agent
          in: header
          required: false
          schema:
            type: string
        - name: id
          in: path
          description: Order ID for retrieving the payment link record
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK. Payment link record retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '400':
          description: Bad Request. Invalid or malformed order ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '401':
          description: >-
            Unauthorized. Access is denied due to invalid credentials or missing
            authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '403':
          description: >-
            Forbidden. You do not have permission to access this payment link
            record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '404':
          description: Not Found. No payment link record exists for the specified order ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '409':
          description: >-
            Conflict. A conflict occurred while retrieving the payment link
            record
          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

````