Lopay Partner API
  1. Subscription Plans
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
      POST
    • List all subscription plans
      GET
    • Get existing subscription plan
      GET
  • Subscriptions
    • Get existing subscription
  1. Subscription Plans

List all subscription plans

Production Environment
https://api.lopay.com
Production Environment
https://api.lopay.com
GET
/api/1/partner/subscription-plan
Subscription Plans

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Query Params
offsetId
string <uuid>
optional
Optional. ID of the last subscription plan in current response.
Example:
c689b77a-d47d-4d02-b037-6f49509f759b
pageSize
number 
optional
Optional - default 20. Number of subscription plans to return.
<= 100> 0
Example:
20
status[]
array[string]
optional
Optional. By default, all subscription plans will show.
Allowed values:
activedeactivatedcancelled
Example:
["active"]
Header Params
x-merchant-id
string <uuid>
Merchant ID
optional
If acting on behalf of a merchant, you will need to specify their merchant ID.

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 --location --request GET 'https://api.lopay.com/api/1/partner/subscription-plan' \
--header 'x-api-key;'

Responses

🟢200OK
application/json
OK response
Body
offsetId
string <uuid> | null 
optional
pageSize
number 
required
count
number 
required
data
array [object {15}] 
required
id
string <uuid>
required
merchantId
string <uuid>
required
status
enum<string> 
required
Allowed values:
activedeactivatedcancelled
deactivatedAt
string  | null 
required
dataCollection
array[string]
required
Allowed values:
namebusinessNamephoneNumberemailaddress
amount
object 
required
frequency
enum<string> 
required
Allowed values:
weeklymonthlyyearly
numberOfPayments
number  | null 
required
reference
string 
required
description
string  | null 
required
link
string <uri>
required
taxes
array [object {3}] 
required
returnUrl
string <uri> | null 
required
createdAt
string 
required
updatedAt
string 
required
Examples
{
    "pageSize": 2,
    "count": 3,
    "data": [
        {
            "id": "05d8c867-c21f-4c7d-a028-cbb04fe77ec1",
            "merchantId": "580b7a17-35c1-4936-81cd-25a4766d8885",
            "status": "active",
            "deactivatedAt": null,
            "dataCollection": [
                "name",
                "email"
            ],
            "amount": {
                "units": 1000,
                "currencyCode": "GBP"
            },
            "frequency": "weekly",
            "numberOfPayments": null,
            "reference": "PLAN#1",
            "description": "Standard Plan",
            "link": "https://lopay.app/00000/05d8c867-c21f-4c7d-a028-cbb04fe77ec1",
            "taxes": [],
            "returnUrl": null,
            "createdAt": "2025-06-02T10:59:51.708Z",
            "updatedAt": "2025-06-02T10:59:51.708Z"
        },
        {
            "id": "c9799996-f778-4eb3-9d0a-47bad3b11075",
            "merchantId": "580b7a17-35c1-4936-81cd-25a4766d8885",
            "status": "active",
            "deactivatedAt": null,
            "dataCollection": [],
            "amount": {
                "units": 100,
                "currencyCode": "GBP"
            },
            "frequency": "monthly",
            "numberOfPayments": 12,
            "reference": "Test payment",
            "description": null,
            "link": "https://lopay.app/00000/c9799996-f778-4eb3-9d0a-47bad3b11075",
            "taxes": [],
            "returnUrl": "http://google.co.uk",
            "createdAt": "2025-05-15T09:30:43.615Z",
            "updatedAt": "2025-05-15T09:30:43.787Z"
        }
    ]
}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2025-06-04 16:00:26
Previous
Create a new subscription plan
Next
Get existing subscription plan
Built with