Lopay Partner API
  1. Payment Links
Lopay Partner API
  • Introduction
  • Environments
  • Authentication
  • Webhooks
  • Terminal ordering
  • Reporting
  • Errors
  • Getting started
  • Payment Links
    • List all payment links
      GET
    • Create a new payment link
      POST
    • Get existing payment link
      GET
    • Update existing payment link
      PATCH
    • Revoke an existing payment link
      DELETE
    • Send a payment link via email and/or SMS
      POST
  • Webhook subscriptions
    • Get login link for Lopay Partner Webhook Portal
      GET
    • List webhook subscriptions
      GET
    • Create webhook subscription
      POST
    • Update existing webhook subscription
      PUT
    • Remove an existing webhook subscription
      DELETE
  • Merchants
    • List all merchants
      GET
    • Register a new merchant
      POST
    • Get merchant details
      GET
    • Update merchant bank details for receiving payouts.
      PUT
    • Get merchant onboarding link
      GET
    • Create account session with permissions for the specified embedded components.
      POST
    • Get list of available hardware for given merchant to purchase
      GET
    • Order terminal hardware for the specified merchant.
      POST
  • Marketing Deeplinks
    • List all affiliate marketing deeplinks.
    • Create a new affiliate marketing deeplink.
  • Reports
    • List all statement activity
  • Customers
    • Temporarily store customer details
  • Subscription Plans
    • Create a new subscription plan
    • List all subscription plans
    • Get existing subscription plan
  • Subscriptions
    • Get existing subscription
  1. Payment Links

Update existing payment link

Production Environment
https://api.lopay.com
Production Environment
https://api.lopay.com
PATCH
/api/1/partner/payment-link/{id}
Payment Links

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
id
string <uuid>
required
Payment link ID (UUID)
Header Params
x-merchant-id
string <uuid>
Merchant ID
required
If acting on behalf of a merchant, you will need to specify their merchant ID.
Body Params application/json
description
string 
required
returnUrl
string <uri> | null 
optional
Examples
{
    "description": "My updated payment link description"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request PATCH 'https://api.lopay.com/api/1/partner/payment-link/' \
--header 'x-merchant-id;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "description": "My updated payment link description"
}'

Responses

🟢200OK
application/json
OK response
Body
id
string <uuid>
required
merchantId
string <uuid>
required
status
enum<string> 
required
Allowed values:
pendingcancelledcompleted
link
string <uri>
required
amount
object 
required
units
integer 
required
currencyCode
enum<string> 
required
Allowed values:
GBPUSDEURDKK
description
string 
required
reference
string  | null 
required
dataCollection
array[string]
required
Allowed values:
namebusinessNamephoneNumberemailaddress
taxes
array [object {3}] 
required
name
string 
required
inclusive
boolean 
required
amount
object 
required
payments
array [object {9}] 
required
id
string <uuid>
required
type
enum<string> 
required
Allowed values:
cardbankTransfer
cardDetails
object 
optional
tip
object 
required
taxes
array [object {4}] 
required
subtotal
object 
required
total
object 
required
createdAt
string 
required
updatedAt
string 
required
returnUrl
string <uri> | null 
required
createdAt
string 
required
updatedAt
string 
required
Example
{
    "id": "dd82c9e8-63a2-45a2-9e74-6d82c5b22c65",
    "amount": {
        "units": 15000,
        "currencyCode": "GBP"
    },
    "link": "https://lopay.app/08adf/b9f0bc31-4209-4bbb-bf1d-2ea124031056",
    "reference": null,
    "description": "Payment for INV#1000 (Gary Smith)",
    "status": "pending",
    "dataCollection": [
        "name"
    ],
    "taxes": [],
    "payments": [],
    "returnUrl": null,
    "createdAt": "2025-06-04T15:49:48.881Z",
    "updatedAt": "2025-06-04T15:49:48.881Z"
}
🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🟠422Parameter Error
Modified at 2025-06-04 16:00:16
Previous
Get existing payment link
Next
Revoke an existing payment link
Built with