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

# Update link

> Change a payment link's details.



## OpenAPI

````yaml /openapi.json patch /v1/payment-links/{id}
openapi: 3.0.0
info:
  title: Payve API
  version: v1
  description: >-
    Send, collect and convert money across African corridors. Amounts are
    integers in minor units.
servers:
  - url: https://sandbox.api.payvehq.com
    description: Sandbox
  - url: https://api.payvehq.com
    description: Live
security:
  - api-key: []
tags:
  - name: quotes
    description: Lock an exchange rate and fee before you move money.
    x-group: Quotes
  - name: payouts
    description: Send money to bank accounts and mobile money wallets.
    x-group: Payouts
  - name: payins
    description: Collect money from a payer.
    x-group: Pay-ins
  - name: payment-links
    description: Hosted checkout pages you can share.
    x-group: Payment links
  - name: conversions
    description: Move a balance from one of your wallets to another currency.
    x-group: Conversions
  - name: wallets
    description: Balances and virtual accounts.
    x-group: Wallets
  - name: beneficiaries
    description: Saved payout recipients.
    x-group: Beneficiaries
  - name: refunds
    description: Return a pay-in to the payer.
    x-group: Refunds
  - name: statements
    description: Statement files for your wallets.
    x-group: Statements
  - name: webhooks
    description: Read your endpoints and delivery history.
    x-group: Webhooks
  - name: reference-data
    description: Currencies, indicative rates, banks and operators. No key needed.
    x-group: Reference data
paths:
  /v1/payment-links/{id}:
    patch:
      tags:
        - payment-links
      summary: Update link
      description: Change a payment link's details.
      operationId: PaymentLinksController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePaymentLinkDto'
      responses:
        '200':
          description: Updated payment link
      security:
        - api-key: []
components:
  schemas:
    UpdatePaymentLinkDto:
      type: object
      properties:
        title:
          type: string
          description: Shown to the payer on the checkout page.
        description:
          type: string
        amount:
          type: integer
          minimum: 1
          description: >-
            Fixed amount in minor units. Leave it out to let the payer enter an
            amount.
        currency:
          type: string
          example: NGN
        expiresAt:
          type: string
          format: date-time
        metadata:
          type: object
          additionalProperties: true
        overpaymentTolerance:
          type: integer
          minimum: 0
          description: >-
            How far above `amount` a payment may be and still be accepted, in
            minor units.
        underpaymentTolerance:
          type: integer
          minimum: 0
          description: >-
            How far below `amount` a payment may be and still be accepted, in
            minor units.
        status:
          type: string
          enum:
            - active
            - paid
            - inactive
            - expired
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Your secret key. It starts with sk_test_ or sk_live_.

````