PayOrc
Subscription Plan

List Subscribers

Retrieve a paginated list of subscribers with optional filtering by email, mobile number, or subscriber ID.

List Subscribers

Version: 3.0.0

Generate an API Key for the Subscription channel before making requests.

Use this endpoint to retrieve a paginated list of all subscribers associated with your merchant account. You can filter subscribers by email/mobile number or subscriber ID, and paginate through results.

Endpoint

MethodURL
GEThttps://api.payorc.com/subscriptions/v1/subscriber/list

Please use the test credentials for sandbox testing.

Authentication

Include the following headers in every request:

HeaderTypeDescription
merchant-keyStringYour merchant key
merchant-secretStringYour merchant secret

All API requests must be made over HTTPS. Requests made over plain HTTP will be rejected.

Query Parameters

ParameterTypeRequiredDescription
perpageIntegerYesNumber of records per page
pageIntegerYesPage number (starting from 1)
subscriber_email_mobileStringNoFilter by subscriber email or mobile number
subscriber_idStringNoFilter by plain display subscriber ID

Pagination is required for accounts with many subscribers. Use perpage and page to navigate through results.

Response (200 OK)

FieldTypeDescription
dataArrayList of subscriber objects
data[].data_idStringEncrypted subscriber identifier — use for Subscriber Details
data[].subscriber_idStringPlain display subscriber number
data[].nameStringSubscriber name
data[].emailStringSubscriber email address
data[].mobile_noStringSubscriber mobile number
data[].country_codeStringCountry code
data[].created_dateStringDate created (DD-MM-YYYY HH:mm:ss)
data[].first_txn_dateStringFirst transaction date (DD-MM-YYYY HH:mm:ss)
data[].last_txn_dateStringLast transaction date (DD-MM-YYYY HH:mm:ss)
data[].countryStringCountry associated with the subscriber
messageStringHuman-readable status message
statusStringsuccess or error
codeStringStatus code (00 for success)
total_recordsIntegerTotal number of matching records

Code Examples

curl -X GET "https://api.payorc.com/subscriptions/v1/subscriber/list?perpage=10&page=1" \
  -H "merchant-key: YOUR_MERCHANT_KEY" \
  -H "merchant-secret: YOUR_MERCHANT_SECRET"

Example Response

{
    "data": [
        {
            "data_id": "Q0hkcGRSb0publgv",
            "subscriber_id": "0000000167",
            "name": "Krushnakant Moundekar",
            "mobile_no": "9876543210",
            "country_code": "91",
            "email": "[email protected]",
            "created_date": "23-01-2024 09:35:59",
            "first_txn_date": "23-01-2024 09:35:59",
            "last_txn_date": "23-01-2024 09:35:59",
            "country": ""
        },
        {
            "data_id": "QU9IdGRnM1VyZ2",
            "subscriber_id": "0000000248",
            "name": "Rahul S",
            "mobile_no": "9238328673",
            "country_code": "91",
            "email": "[email protected]",
            "created_date": "23-01-2024 10:34:07",
            "first_txn_date": "23-01-2024 10:34:07",
            "last_txn_date": "23-01-2024 10:34:07",
            "country": "IND"
        }
    ],
    "message": "Subscriber list fetched successfully.",
    "status": "success",
    "code": "00",
    "total_records": 4
}

Use data[].data_id (encrypted) for Subscriber Details. Use data[].subscriber_id (plain number) only for display or the optional subscriber_id filter on this endpoint.

On this page