Overview
The Cloud Blue (CB) SaaS Data collector retrieves SaaS subscription and order data from the CloudBlue Commerce platform using the CloudBlue Commerce API.
This collector provides visibility into completed subscription orders across reseller and customer hierarchies, including order quantities, pricing, and subscription details, enabling service providers to validate SaaS consumption, reconcile order charges, and bill customers within Varibill.
The collector retrieves rated order data, meaning monetary values (cost and total) are included in the data supplied by the source system. Varibill can apply markups to these values without referencing price lists.
This is a historically capable collector, meaning each execution retrieves order data for a configurable date range in the past, rather than a snapshot of the current state.
For general instructions on creating and running Source Collectors, see: Configuring a New Cloud Source Collector
Collector Summary
| Field | Value |
|---|---|
| Source Collector Name | Cloud Blue (CB) SaaS Data - Version 4.0 |
| Collection Behavior | Historically Capable |
| Rating Model | Rated |
| Vendor Name | CloudBlue |
| Product | CloudBlue Commerce |
| Purpose | Retrieves SaaS subscription order data from CloudBlue Commerce for billing and validation within Varibill |
About CloudBlue Commerce
CloudBlue is a cloud commerce platform that enables service providers, distributors, and resellers to automate the delivery and management of cloud services. CloudBlue provides tools for subscription management, order fulfilment, and multi-tier channel distribution.
CloudBlue Commerce is the operational platform that manages subscription lifecycles, order processing, and product catalogues for service providers and their reseller networks. The platform supports multi-tier distribution models where a distributor manages resellers, each of whom manages their own customer subscriptions. Orders within the platform represent subscription activations, renewals, changes, and cancellations, each with associated pricing and quantity details.
For more information, see the CloudBlue Commerce documentation.
Data Collected
The Cloud Blue (CB) SaaS Data - Version 4.0 collector retrieves rated SaaS subscription order data from the CloudBlue Commerce API. Each record represents a completed order line item for a specific customer subscription, including quantity, pricing, and subscription details.
The collector captures the following data for each order record:
- Customer details — seller (reseller) and buyer (customer) internal identifiers and company names
- Subscription details — subscription identifier, subscription name, subscription period, and billing period
- Product details — manufacturer part number (MPN), resource name, and order line item description
- Pricing details — extended price (submitted as both cost and total), and quantity
- Order details — order date, order type, and order identifier
The following filtering is applied during processing:
- Only orders with a status of Completed are included
- Orders are filtered by the configured Order Type codes (for example, sales orders, billing orders, change orders, cancellation/fulfilment orders)
- Orders matching any configured Excluded Template IDs are excluded
- Orders matching any configured Exclude Resource Types are excluded (for example, refund adjustments)
- When Template IDs are configured, only orders matching those templates are included
- When Collect Reseller Level is enabled, reseller-level data is collected for the specified reseller IDs
Records are aggregated by client identifier, date, product code, unique identifier, and record identifier. Where multiple records share the same combination, their quantity, total, and cost values are summed.
The time window covered by each collection run is configurable using the Start Day, End Day, and Month Offset parameters, enabling the collector to target a specific day range within a given month.
The identifiers submitted to Varibill for each record are constructed as follows:
- Client Identifier — constructed as
{currency prefix}{Client Identifier Prefix}{sellerInternalId}#{buyerInternalId}#{subscriptionId}. For non-ZAR currencies, the currency code is prepended as an additional prefix (for example,USD#). For ZAR currency, no currency prefix is added. For example:PREFIX#1008482#1028737#1055159 - Product Identifier — constructed as
{Client Identifier Prefix}{MPN}|{subscriptionPeriod}|{billingPeriod}. The subscription period is formatted asP1Y(yearly) orP1M(monthly), and the billing period asYearlyorMonthly. When Include Users in Product Identifier is enabled, a user tier range is appended as#{min}-{max}. For example:PREFIX#2018|P1Y|Monthly#1-49 - Record Identifier — the order line item description (for example, the product name with term and date range)
- Unique Identifier — constructed as
{subscriptionId}#{internalOrderId}#{CRC32}, where the CRC32 is computed from the order line item type and description - Tag — a multi-line value containing:
Reseller: {reseller name},Customer: {customer name},Product Name: {resource name}, andSubscription Name: {subscription name}
Note: Cost and total values are equal in this collector — no markup is applied during collection. Any markup should be configured within Varibill’s billing rules.
Note: The same customer may appear in multiple records across different dates, subscriptions, and order types within a single collection run. Each record represents an aggregated order line item for that specific combination on that date.
Prerequisites
Before configuring this collector, ensure that:
- You have an active CloudBlue Commerce account with API access
- You have obtained OAuth 2.0 credentials: a Client ID, Client Secret, Username, and Password
- You have noted the CloudBlue Commerce host URL for your environment
(for example,
https://your-instance.platform.cloudblue.io) - You know the Template IDs for the subscription templates you wish to collect
- You have access to the Varibill Source Collector configuration screen
Tip: OAuth 2.0 credentials are configured in the CloudBlue Commerce platform. Contact your CloudBlue administrator if you do not have credentials or are unsure where to find them.
Warning! The Cloud Blue Client Secret and Cloud Blue Password grant API access to your CloudBlue Commerce environment. Store them securely and do not share them. These credentials are masked in the Varibill UI once saved. If either is compromised, revoke and regenerate them immediately in the CloudBlue Commerce platform.
Configuration Parameters
The parameters below are entered when configuring the collector in Varibill. They are grouped by function.
Connection Parameters
These parameters identify and authenticate against your CloudBlue Commerce environment. The collector uses OAuth 2.0 authentication with the Client ID, Client Secret, Username, and Password to obtain an access token.
| Parameter | What it is | Where to find it |
|---|---|---|
| Cloud Blue Host | The base URL of your CloudBlue Commerce environment | Your CloudBlue Commerce environment URL. Format:
https://your-instance.platform.cloudblue.io (include
https://, no trailing slash) |
| Cloud Blue Client ID | The OAuth 2.0 Client ID used for API authentication | CloudBlue Commerce platform → OAuth 2.0 client configuration |
| Cloud Blue Secret | The OAuth 2.0 Client Secret used for API authentication | CloudBlue Commerce platform → OAuth 2.0 client configuration |
| Cloud Blue Username | The username used for API authentication | CloudBlue Commerce platform → API user account |
| Cloud Blue Password | The password used for API authentication | CloudBlue Commerce platform → API user account |
Warning! The Cloud Blue Secret and Cloud Blue Password are sensitive credentials. They are masked in the Varibill UI once saved. If either is compromised, revoke and regenerate them immediately in the CloudBlue Commerce platform.
Collection Filter Parameters
These parameters control which order data is collected. They allow you to narrow the scope of collection to specific templates, order types, resellers, and resource types.
| Parameter | What it is | Example |
|---|---|---|
| Cloud Blue API Limit | The maximum number of records to retrieve per API request. Must be between 1 and 1,000. | 1000 |
| Template IDs | A comma-separated list of subscription template IDs to include. Only
orders associated with these templates are collected. Must be numeric
values separated by commas (for example, 47 or
47,52,68). Leave empty to collect all templates. |
47 |
| Excluded Template IDs | A comma-separated list of subscription template IDs to exclude from collection. Orders matching these templates are skipped. | Leave empty to exclude none |
| Order Type | A comma-separated list of two-character order type codes to collect. Only orders matching these types are included. | SO,BO,CH,CF |
| Include Users in Product Identifier | When enabled, user tier information is included in the Product Identifier. Enable this when different user tiers should be billed as separate products. | false |
| Collect Reseller Level | When enabled, reseller-level data is collected in addition to customer-level data. Use this when resellers should receive separate billing records. | false |
| Reseller IDs | A comma-separated list of reseller GUIDs to collect data for. Only used when Collect Reseller Level is enabled. | Leave empty to collect all resellers |
| Exclude Resource Types | A comma-separated list of resource types to exclude from collection. Orders with these resource types are skipped. | REFUND_ADJ |
Note: Template IDs must be comma-separated numeric
values (for example, 47,52). Order Type
must be comma-separated two-character uppercase codes (for example,
SO,BO,CH,CF). The collector validates these formats at
startup and will not run if the values are incorrectly formatted.
Billing Parameters
| Parameter | What it is | Example |
|---|---|---|
| Client Identifier Prefix | A prefix applied to identifiers submitted to Varibill. | MYPREFIX# |
Date Range Parameters
These parameters define the time window of order data collected on each run. The collector retrieves completed orders within a specific day range of a given month.
| Parameter | What it is | Default |
|---|---|---|
| Start Day | The day of the month on which the collection window begins. Must be between 1 and 31. | 1 |
| End Day | The day of the month on which the collection window ends. Must be between 1 and 31. | 7 |
| Month Offset | The number of months back from the current month to target.
0 collects from the current month; 1 collects
from the previous month. |
0 |
| Date Format | The date format used for date calculations and API requests | yyyy-MM-dd |
Note: For example, with Start Day = 1,
End Day = 7, and Month
Offset = 0, the collector retrieves completed
orders from the 1st to the 7th of the current month. Adjust these values
to match your billing cycle and scheduling frequency.
Operational Parameters
These parameters control file management behavior.
| Parameter | What it is | Default |
|---|---|---|
| Delete data files older than | The number of days after which locally stored collection files are automatically deleted. Must be at least 1. | 62 |
| Maximum number of records per file | The maximum number of records written to a single output file before a new file is started. Must be between 1,000 and 50,000. | 10000 |
CloudBlue References
The following resources may assist with locating values or configuring your CloudBlue Commerce API access.
CloudBlue Documentation (External)
Note: CloudBlue documentation is provided for reference. Steps and interface labels may vary depending on your CloudBlue Commerce environment and account permissions.
Configuration Steps
Step 1: Prepare Your CloudBlue Commerce Environment
- Log in to the CloudBlue Commerce platform.
- Navigate to the OAuth 2.0 client configuration.
- Create or locate your Client ID and Client Secret.
- Locate or create an API user account and note the Username and Password.
- Note the host URL of your CloudBlue Commerce
environment (for example,
https://your-instance.platform.cloudblue.io). - Identify the Template IDs for the subscription templates you wish to collect.
Step 2: Configure the Collector in Varibill
In the Varibill User Interface, open the Source Collector configuration screen.
Enter the required field values under the Details tab:
- Hosting Provider: Select Varibill Cloud
- Source Collector Name: Select Cloud Blue (CB) SaaS Data - Version 4.0
Enter the connection parameters:
- Cloud Blue Host: The base URL of your CloudBlue
Commerce environment (for example,
https://your-instance.platform.cloudblue.io) - Cloud Blue Client ID: The OAuth 2.0 Client ID
- Cloud Blue Secret: The OAuth 2.0 Client Secret
- Cloud Blue Username: The API user username
- Cloud Blue Password: The API user password
- Cloud Blue Host: The base URL of your CloudBlue
Commerce environment (for example,
Configure the collection filter parameters:
- Cloud Blue API Limit: The maximum records per API
request (for example,
1000) - Template IDs: The subscription template IDs to
collect (for example,
47) - Excluded Template IDs: Any template IDs to exclude (leave empty if none)
- Order Type: The order type codes to collect (for
example,
SO,BO,CH,CF) - Include Users in Product Identifier: Set to
trueif different user tiers should produce separate Product Identifiers - Collect Reseller Level: Set to
trueto collect reseller-level data - Reseller IDs: The reseller GUIDs to collect (only required when Collect Reseller Level is enabled)
- Exclude Resource Types: Any resource types to
exclude (for example,
REFUND_ADJ)
- Cloud Blue API Limit: The maximum records per API
request (for example,
Enter the billing parameters:
- Client Identifier Prefix: The prefix to apply to
Client Identifiers and Product Identifiers (for example,
MYPREFIX#)
- Client Identifier Prefix: The prefix to apply to
Client Identifiers and Product Identifiers (for example,
Set the date range parameters:
- Start Day: The first day of the collection window
(for example,
1) - End Day: The last day of the collection window (for
example,
7) - Month Offset: The number of months back to target
(for example,
0for the current month)
- Start Day: The first day of the collection window
(for example,
Save the collector configuration.
Step 3: Run the Collector
Run or schedule the collector according to your standard Source Collector execution process.
For detailed instructions, see: Configuring a New Cloud Source Collector
Troubleshooting
If the collector fails to connect to CloudBlue Commerce, verify that:
- The Cloud Blue Host URL is correct and includes
https://with no trailing slash. - The Cloud Blue Client ID is correct.
- The Cloud Blue Secret is valid and has not been revoked or regenerated.
- The Cloud Blue Username and Cloud Blue Password are correct and the API user account is active.
- No firewall or IP restriction rules are blocking the Varibill collector’s IP address from reaching the CloudBlue Commerce host.
If the collector connects successfully but returns no data, verify that:
- The Start Day, End Day, and Month Offset values cover a period in which completed orders exist.
- The Template IDs match valid subscription templates in your CloudBlue Commerce environment.
- The Order Type codes match order types that exist
in your environment (for example,
SO,BO,CH,CF). - The Exclude Resource Types value is not filtering out all available records.
- Your CloudBlue Commerce environment has active subscriptions with completed orders.
- If Collect Reseller Level is enabled, confirm that the Reseller IDs are correct.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article