Service Groups API

Retrieve all service groups with their discount configurations and localization settings

Groups

Service Groups API

Access the complete list of service groups available on your platform. View all service offerings with their discount configurations.

All Services

Complete service catalog.

Discount Matrix

All duration discounts.

Multi-Language

Localized content support.


Endpoint Overview

QUERY/graphql

Retrieve all service groups with their complete discount configurations for every subscription duration.

Authentication:Bearer Token
Required scopes:adminreseller

GraphQL Query

query serviceGroups {
  serviceGroups {
    id
    name
    description
    language
    discount
    discount3
    discount6
    discount12
    discount24
    discount36
    discountLifetime
  }
}

HTTP Request:

curl -X POST https://api.orbnet.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "query": "query serviceGroups { serviceGroups { id name description discount discount12 discount24 discountLifetime } }"
  }'

Response

200Service Groups Retrieved Successfully
{
  "data": {
    "serviceGroups": [
      {
        "id": "1",
        "name": "Premium VPN",
        "description": "High-speed premium VPN service",
        "language": "en",
        "discount": 0,
        "discount3": 10,
        "discount6": 20,
        "discount12": 33,
        "discount24": 42,
        "discount36": 50,
        "discountLifetime": 60
      },
      {
        "id": "2",
        "name": "Basic VPN",
        "description": "Essential VPN protection",
        "language": "en",
        "discount": 0,
        "discount3": 5,
        "discount6": 10,
        "discount12": 20,
        "discount24": 30,
        "discount36": 40,
        "discountLifetime": 50
      },
      {
        "id": "3",
        "name": "Business VPN",
        "description": "Enterprise-grade VPN solution",
        "language": "en",
        "discount": 0,
        "discount3": 15,
        "discount6": 25,
        "discount12": 35,
        "discount24": 45,
        "discount36": 55,
        "discountLifetime": 65
      }
    ]
  }
}

Response Fields

idID!

Unique identifier for the service group.

nameString!

Display name of the service group.

descriptionString

Description of the service offering.

languageString

Language code for localized content.

discountInt!

Discount percentage for monthly subscriptions.

discount3Int!

Discount percentage for 3-month subscriptions.

discount6Int!

Discount percentage for 6-month subscriptions.

discount12Int!

Discount percentage for annual subscriptions.

discount24Int!

Discount percentage for 2-year subscriptions.

discount36Int!

Discount percentage for 3-year subscriptions.

discountLifetimeInt!

Discount percentage for lifetime subscriptions.


Use Cases

Pricing Pages

Build dynamic pricing displays.

Admin Dashboard

Manage service offerings.

Reseller Portal

Show available services.

Checkout Flow

Display discount options.



Service Group Structure

Service groups are top-level containers that hold multiple subscription plans (groups). Each service group defines the discount structure applied to all its child groups.

View Subscription Plans

See the individual subscription plans within each service group.

View Groups