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

# Extend Expiry

> Extend the expiry date of an active payment link.

## Overview

Extend the validity of an active payment link by setting a new expiry date. This is useful if a customer needs more time to complete a payment and you don't want to generate a new link.

## Path Parameters

* `paymentLinkId`: The unique identifier of the payment link.

## Request Body

* `expiry_date`: The new expiry date in UTC (ISO 8601 format).


## OpenAPI

````yaml POST /pg/payment-links/{paymentLinkId}/extend_expiry/
openapi: 3.0.0
info:
  title: Eximpe Payment Gateway API
  description: >-
    API for payment processing and order management through Eximpe payment
    gateway. This specification includes v1, v2, and v3 API versions.
  license:
    name: Proprietary
  version: 2.0.0
servers:
  - url: https://api-pacb-uat.eximpe.com
    description: Payment Gateway Sandbox URL
security:
  - clientAuth: []
    clientSecretAuth: []
    apiVersionHeader: []
tags:
  - name: Card Tokens
  - name: Merchants
  - name: Orders
  - name: Payment Links
  - name: Payments
  - name: Refunds
  - name: Settlements
  - name: Subscriptions
paths:
  /pg/payment-links/{paymentLinkId}/extend_expiry/:
    post:
      tags:
        - Payment Links
      summary: Extend Payment Link Expiry
      description: Extend the expiry date of an active payment link.
      operationId: v1_post_pg_payment-links_paymentLinkId_extend_expiry_
      parameters:
        - name: paymentLinkId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - expiry_date
              properties:
                expiry_date:
                  type: string
                  format: date-time
                  description: New expiry date in UTC
      responses:
        '200':
          description: Payment link expiry extended successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
      security:
        - clientAuth: []
          clientSecretAuth: []
          apiVersionHeader: []
components:
  securitySchemes:
    clientAuth:
      type: apiKey
      name: X-Client-ID
      in: header
      description: >-
        **Client Application ID** - Your unique application identifier used to
        authenticate API requests. You can find your Client ID in the Developer
        Settings section of the merchant dashboard.
      x-displayName: Client ID
      x-example: your-client-id
    clientSecretAuth:
      type: apiKey
      name: X-Client-Secret
      in: header
      description: >-
        **Client Secret Key** - Your secret key used alongside the Client ID for
        secure authentication. Keep this confidential and never expose it in
        client-side code. Available in the Developer Settings section of the
        merchant dashboard.
      x-displayName: Client Secret
      x-example: your-client-secret
    apiVersionHeader:
      type: apiKey
      name: X-API-Version
      in: header
      description: >-
        **API Version** - Specifies which version of the API to use (e.g.,
        '1.X.X', '2.X.X', or '3.X.X'). This header allows you to control which
        API version your integration uses. Default version information is
        available in the Developer Settings.
      x-displayName: API Version
      x-example: 3.0.0

````