Link

Subscription Groups and plans



GET Subscription groups

This API will list out all public subscription groups of standard type

Arguments
key required
The account key
  $ curl -X GET 'https://www.accesstype.com/api/v1/subscription_groups?key=<key>'
Returns

This returns an array of subscription group objects.


GET Campaign groups

This API will list out all public subscription groups of campaign type

Arguments
key required
The account key
  $ curl -X GET 'https://www.accesstype.com/api/v1/campaigns?key=<key>'
Returns

This returns an array of subscription group objects.


GET Group Access Subscription groups

Used to get the list of all public subscription groups of type group-access and the list of subscription plans in each group. Subscriptions of plans under this group support multiple subscribers.

Arguments
key required
The account key
  $ curl -X GET 'https://www.accesstype.com/api/v1/group_subscriptions?key=<key>'
Returns

This returns an array of subscription group objects.


GET Pay Per Asset Pricing plans

This API can be used to get prices of a story for selling individually.

Arguments
key required
The account key
asset-type required
Value can be story
id optional
Id of asset
  $ curl -X GET 'https://www.accesstype.com/api/v1/asset/<asset-type>/pricing_plans.json?key=<key>&id=<asset-id>'
Returns

This returns an array of pricing plans.

{
    "pricing_plans": [
        {
            "id": 1071,
            "price_cents": 1400,
            "price_currency": "INR",
            "duration_length": 1,
            "duration_unit": "lifetime"
        },
        {
            "id": 1959,
            "price_cents": 1000,
            "price_currency": "INR",
            "duration_length": 1,
            "duration_unit": "months"
        }
    ]
}