Access control
At various points the system might need to check if a customer has access to some service, special price, or the like. This can be done by getting the active subscriptions for a customer and using the plan handle to determine which services are accessible. Active subscriptions can be fetched with (only one should be returned):
curl -X GET \
-u 'priv_12051dfac75143fc827cf63a87f46df3:' \
-H 'Content-Type: application/json' \
https://api.reepay.com/v1/list/subscription?customer=cust-001&state=active
The subscription object returned will contain the plan.
...
"state": "active",
"plan": "gold",
...
For full details on fetching subscriptions, see: Get list of subscriptions and for full details on the subscription see the subscription object.
Updated 8 months ago
What’s Next