Skip to main content
GET
/
products
/
{productId}
/
licenses
List licenses
curl --request GET \
  --url https://pandabase.io/api/products/{productId}/licenses \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Storefront-Id: <x-storefront-id>'
{
  "ok": true,
  "data": {
    "licenses": [
      {
        "id": "lic_abc123",
        "key": "XXXX-XXXX-XXXX-XXXX",
        "product_id": "prod_xyz789",
        "status": "active",
        "customer_id": "cust_123456",
        "metadata": {},
        "expires_at": "2025-12-31T23:59:59Z",
        "activated_at": "2023-11-07T05:31:56Z",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ],
    "meta": {
      "page": 1,
      "page_size": 10,
      "total": 25
    }
  }
}

Authorizations

Authorization
string
header
required

V3 API key authentication. Format: sk_v3_xxxxx

Headers

X-Storefront-Id
string
required

Your storefront/shop ID

Path Parameters

productId
string
required

Product ID

Query Parameters

status
enum<string>

Filter licenses by status

Available options:
active,
suspended,
expired,
revoked
page
integer
default:1
page_size
integer
default:10

Response

Licenses retrieved successfully

ok
boolean
Example:

true

data
object