The Snapplify subscription service allows you to define a Subscription and then allocated that Subscription to a valid Snapplify User.
Documentation
Visit the Snapplify Developer Portal: Subscription API Documentation.
Subscription creation API call
A subscription API call may be made to create a subscription. This defines the subscription type and the content in the subscription.
The following information is passed in the API call:
Item | Type | Example |
Subscription name | String | grade-10-business-studies-1-year-course |
Subscription type | String | could represent different subscription plans, e.g., "monthly", or "yearly" |
Subscription assets | Array of Strings | 1Y9781928354192 |
Subscription price | Float | 1999.99 |
Subscription allocation API call | String or Integer | A POST request with a JSON payload containing userID (String or Integer) and subscriptionID (String or Integer |
Example:
{ "name": "grade-10-business-studies-1-year-course", "type": "yearly", "assets": [ "1Y9781928354192", "1Y9781928354178", "1Y9781928354161" ], "price": 1999.99 }
A subscription API call may be made to allocate a subscription to a Snapplify user.
The following information is passed in the API call:
- The Snapplify User
- Subscription ID
For assitance with the Subscription API please reach out to [email protected]