Service Group API
Retrieve details of a specific service group including discount tiers and localization settings
Service Group API
Access detailed information about a specific service group. View discount configurations for all subscription durations and localization settings.
Group Details
Complete service info.
Discount Tiers
All duration discounts.
Localization
Language-specific content.
Endpoint Overview
/graphqlRetrieve detailed information about a specific service group, including discount percentages for all subscription durations.
Request Parameters
idInt!RequiredThe unique identifier of the service group to retrieve.
GraphQL Query
query serviceGroup($id: Int!) {
serviceGroup(id: $id) {
id
name
description
language
discount
discount3
discount6
discount12
discount24
discount36
discountLifetime
}
}Variables:
{
"id": 1
}HTTP Request:
curl -X POST https://api.orbnet.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"query": "query serviceGroup($id: Int!) { serviceGroup(id: $id) { id name description discount discount3 discount6 discount12 discount24 discount36 discountLifetime } }",
"variables": {
"id": 1
}
}'Response
{
"data": {
"serviceGroup": {
"id": "1",
"name": "Premium VPN",
"description": "High-speed premium VPN service with unlimited bandwidth",
"language": "en",
"discount": 0,
"discount3": 10,
"discount6": 20,
"discount12": 33,
"discount24": 42,
"discount36": 50,
"discountLifetime": 60
}
}
}{
"errors": [
{
"message": "Service group not found",
"path": ["serviceGroup"],
"extensions": {
"code": "NOT_FOUND"
}
}
],
"data": null
}Response Fields
idID!Unique identifier for the service group.
nameString!Display name of the service group.
descriptionStringDetailed description of the service offering.
languageStringLanguage code for localized content (e.g., "en", "fa").
discountInt!Discount percentage for 1-month subscriptions.
discount3Int!Discount percentage for 3-month subscriptions.
discount6Int!Discount percentage for 6-month subscriptions.
discount12Int!Discount percentage for 12-month subscriptions.
discount24Int!Discount percentage for 24-month subscriptions.
discount36Int!Discount percentage for 36-month subscriptions.
discountLifetimeInt!Discount percentage for lifetime subscriptions.
Discount Tiers
Monthly
Standard rate, no discount.
Quarterly
3-month discount tier.
Annual
12-month best recurring value.
Lifetime
Maximum one-time discount.
Related Endpoints
Discount Application
Discounts are applied during checkout based on the selected subscription duration. Higher commitment periods receive greater discounts.
View All Service Groups
Browse the complete catalog of available service groups.