Documentation
This section only applies if the module Subscriptions is active.

GET customer/hasactivesubscription

[[custom_message msg_text="Deze functie is alleen van toepassing indien de module abonnementen actief is"]]

Used for

Checks if given customer has at least one active subscription

Authentication

Needs to be logged in with admin rights

Parameters

Parameter Description Required Example
customer_id Customer ID Yes 2
subscription_id Subscription ID No 12

Output

Fields are depending on the configuration of the customer fields.

Response codes

  • 200 OK
  • 401 Unauthorized for current customer

Example

Login as user admin.

GET api/rest/customer/hasactivesubscription?customer_id=104 

Response:

{
   "hasactivesubscription":true
}
The following rights may be necessary in order to use this functionality.