This endpoint allows you to check whether your tenant has an active subscription to a business type.
This uses the same endpoint as Get business type, adding the extended=true query parameter to also return whether your tenant has an active subscription to the business type.
In order to use this endpoint:
- Check that your application is authorized to the
businesstypes:listscope in the Visma Developer Portal - Create a Get request to the method’s /businesstypes/{id} URI and add the query parameter extended=true
Example - Has Subscriptions Request
GET https://fileapi.youforce.com/v1.0/businesstypes/8000?extended=true
GET v1.0/businesstypes/8000
?extended=true
HTTP/1.1
Host: fileapi.youforce.com
Authorization: Bearer xxxxxxxxx
If the request succeeds, the response includes a 200 OK HTTP status code, along with the business type information and the subscription status.
Example - Response of Has Subscriptions
HTTP/1.1 200
Content-Type: application/json
{
"hasSubscription": true,
"id": 8000,
"tenantId": "6401970"
}
Response fields
| Field | Type | Description |
|---|---|---|
| hasSubscription | boolean | Whether your tenant has an active subscription to this business type. |
| id | integer | The id of the business type. |
| tenantId | string | The tenantid your application is authorized to for this business type. |
Possible errors
See Get business type for the possible error responses, which are the same for this endpoint.