Documentatie
difficulty level:
Module textPhrase before ModuleName Abonnementen Module textPhrase after ModuleName.
API - Customer - GET customer/activesubscriptions
GET customer/activesubscriptions
Verwendet für
Abrufen der Abonnements für einen bestimmten Kunden
Nur zutreffend, wenn das Abonnement-Modul aktiv ist.
Authentifizierung
Als Administrator angemeldet.
Parameter
| Parameter | Beschreibung | Erforderlich | Beispiel |
|---|---|---|---|
| customer_id | Kunden-ID | Ja | 2 |
| subscription_id | Abonnement-ID | Nein | 12 |
Ausgabe
Die Felder hängen von der Formularkonfiguration ab
Antwortcodes
- 200 OK
- 401 Unauthorized for current customer
Beispiel
Abrufen der Abonnements für Kunde 104.
GET api/rest/customer/activesubscriptions?customer_id=104
Antwort
[
{
"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
}
]






