Documentatie
Moeilijkheidsgraad:
Deze sectie is alleen van toepassing indien de module Abonnementen actief is.
API - Customer - GET customer/activesubscriptions
GET customer/activesubscriptions
Gebruikt voor
Ophalen van de abonnementen voor een specifieke klant
Alleen van toepassing als de abonnementen module actief is.
Authenticatie
Ingelogd als beheerder.
Parameters
Parameter | Omschrijving | Verplicht | Voorbeeld |
---|---|---|---|
customer_id | Customer ID | Ja | 2 |
subscription_id | Subscription ID | Nee | 12 |
Output
Velden zijn afhankelijk van de formulier configuratie
Response codes
- 200 OK
- 401 Unauthorized for current customer
Voorbeeld
Ophalen van de abonnementen voor klant 104.
GET api/rest/customer/activesubscriptions?customer_id=104
Response
[ { "subscription_id":"2", "subscription_name":"Test Abo", "valid_from":"2014-01-02", "valid_till":"2015-01-01", "price":"12", "currency":"EUR", "setupprice":"0", "setupcurrency":"EUR", "last_from":null, "last_till":null }, { "subscription_id":"3", "subscription_name":"Test twee", "valid_from":"2014-01-02", "valid_till":"2015-01-01", "price":"15", "currency":"EUR", "setupprice":"0", "setupcurrency":"EUR", "last_from":null, "last_till":null } ]