Get a list of plans for a member. You can filter or sort results based on optional query string.
GEThttps://api.dyntube.com/v1/member-plans
Query Parameters
Name
Type
Description
page
Integer
Page number
size
Integer
Page size
planType
Integer
Type of the plan
sort
String
Sort order of the results. See details below.
memberId
String
Id of a particular member
{"pager": {"page":1,"totalPages":1,"totalResults":1,"sort":"Created:-1" },"plans": [ {"id":"o8ycm3A","name":" Access To Channel","storePlanType":1,"planId":"ggovA","memberId":"gDbyQtqg","status":1,"created":"2022-10-29T03:40:05.0137275+00:00","updated":"2022-10-29T03:40:05.0232359+00:00" } ]}
{// Response}
{// Response}
Sorting of results
The sorting order of the results would be a query parameter sort with a value. the format of the value would be field:1 for ascending order and field:-1 for descending order.
# Here are examples to sort by "Created" date.#Sort by date created descending:https://api.dyntube.com/v1/member-plans?sort=Created:-1#Sort by date created ascending:https://api.dyntube.com/v1/member-plans?sort=Created:1