Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/antiwork/gumroad/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

GET /v2/subscribers/:id
Retrieve detailed information about a specific subscriber using their subscription ID. This endpoint returns comprehensive subscription details including subscriber information, purchase history, billing status, and more.

Authentication

This endpoint requires the view_sales OAuth scope.

Path Parameters

id
string
required
The unique external ID of the subscription

Response

success
boolean
required
Indicates whether the request was successful
subscriber
object
required
The subscriber object containing all subscription details

Examples

Basic Request

curl "https://api.gumroad.com/v2/subscribers/SUBSCRIPTION_ID" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response Examples

Active Subscription

{
  "success": true,
  "subscriber": {
    "id": "sub_1234567890abcdef",
    "email": "subscriber@example.com",
    "product_id": "prod_abc123",
    "product_name": "Monthly Membership",
    "user_id": "user_xyz789",
    "user_email": "subscriber@example.com",
    "purchase_ids": [
      "purc_original123",
      "purc_renewal456",
      "purc_renewal789"
    ],
    "created_at": "2024-01-15T10:30:00Z",
    "user_requested_cancellation_at": null,
    "charge_occurrence_count": null,
    "recurrence": "monthly",
    "cancelled_at": null,
    "ended_at": null,
    "failed_at": null,
    "free_trial_ends_at": null,
    "license_key": "ABCD-1234-EFGH-5678",
    "status": "alive"
  }
}

Subscription with Free Trial

{
  "success": true,
  "subscriber": {
    "id": "sub_trial123456789",
    "email": "newuser@example.com",
    "product_id": "prod_abc123",
    "product_name": "Premium Membership",
    "user_id": "user_new123",
    "user_email": "newuser@example.com",
    "purchase_ids": [
      "purc_trial001"
    ],
    "created_at": "2024-03-01T08:00:00Z",
    "user_requested_cancellation_at": null,
    "charge_occurrence_count": null,
    "recurrence": "monthly",
    "cancelled_at": null,
    "ended_at": null,
    "failed_at": null,
    "free_trial_ends_at": "2024-03-08T08:00:00Z",
    "license_key": "TRIAL-9876-WXYZ-4321",
    "status": "alive"
  }
}

Pending Cancellation

{
  "success": true,
  "subscriber": {
    "id": "sub_cancelling123",
    "email": "leaving@example.com",
    "product_id": "prod_abc123",
    "product_name": "Monthly Membership",
    "user_id": "user_leaving456",
    "user_email": "leaving@example.com",
    "purchase_ids": [
      "purc_123abc",
      "purc_456def"
    ],
    "created_at": "2024-02-01T12:00:00Z",
    "user_requested_cancellation_at": "2024-03-05T10:30:00Z",
    "charge_occurrence_count": null,
    "recurrence": "monthly",
    "cancelled_at": "2024-04-01T12:00:00Z",
    "ended_at": null,
    "failed_at": null,
    "free_trial_ends_at": null,
    "status": "pending_cancellation"
  }
}

Fixed-Length Subscription

{
  "success": true,
  "subscriber": {
    "id": "sub_fixed789",
    "email": "student@example.com",
    "product_id": "prod_course456",
    "product_name": "6-Month Course Access",
    "user_id": "user_student999",
    "user_email": "student@example.com",
    "purchase_ids": [
      "purc_m1_abc",
      "purc_m2_def",
      "purc_m3_ghi"
    ],
    "created_at": "2024-01-01T00:00:00Z",
    "user_requested_cancellation_at": null,
    "charge_occurrence_count": 6,
    "recurrence": "monthly",
    "cancelled_at": null,
    "ended_at": null,
    "failed_at": null,
    "free_trial_ends_at": null,
    "status": "alive"
  }
}

Non-Gumroad User Subscriber

{
  "success": true,
  "subscriber": {
    "id": "sub_nogumroad123",
    "email": "customer@example.com",
    "product_id": "prod_abc123",
    "product_name": "Monthly Newsletter",
    "user_id": null,
    "user_email": null,
    "purchase_ids": [
      "purc_ext001",
      "purc_ext002"
    ],
    "created_at": "2024-02-10T15:45:00Z",
    "user_requested_cancellation_at": null,
    "charge_occurrence_count": null,
    "recurrence": "monthly",
    "cancelled_at": null,
    "ended_at": null,
    "failed_at": null,
    "free_trial_ends_at": null,
    "status": "alive"
  }
}

Error Responses

Subscriber Not Found

{
  "success": false,
  "message": "The subscriber was not found."
}
This error occurs when:
  • The subscription ID doesn’t exist
  • The subscription doesn’t belong to a product owned by the authenticated user
  • The subscription ID is invalid

Insufficient Permissions

{
  "error": "The access token is invalid"
}
HTTP Status: 403 Forbidden This error occurs when the access token doesn’t have the view_sales scope.

Invalid Access Token

{
  "error": "The access token is invalid"
}
HTTP Status: 401 Unauthorized
This endpoint only returns subscriptions that belong to products owned by the authenticated user. You cannot retrieve subscription information for products you don’t own.
The purchase_ids array includes all purchases associated with the subscription, ordered chronologically. The first ID is the original subscription purchase, and subsequent IDs are recurring charges.

Build docs developers (and LLMs) love