Get Entitlements
Retrieve a paginated list of Entitlements, with the ability to order, sort (ASC for ascending, DESC for descending), and filter results( expiration date (expirationDate) or create date (createdAt) fields
Request
- Base URLhttp://localhost:8181
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Page offset of results to return
Number of results per page
Sort type, ASC for ascending, DESC for descending
UUID string representing the plan ID
UUIDs string array representing the plan IDs
Assign level, USER for user-level entitlements, TENANT for tenant-level entitlements
Field to order results by date (createdAt) or expiration date (expirationDate)
Comma separated user IDs to filter results by
Comma separated tenant IDs to filter results by
Boolean value to include related entities in the response
Response
Example response
{
"items": [
{
"id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"planId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"tenantId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"userId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"expirationDate": "2022-01-01T12:00:00",
"createdAt": "2022-01-01T12:00:00",
"updatedAt": "2022-01-01T12:00:00",
"plan": {
"id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"vendorId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"name": "Test Plan",
"description": "This is a test plan",
"createdAt": "2022-01-01T00:00:00",
"updatedAt": "2022-01-01T00:00:00"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.