API Migration Guide - January 2027 Release

Modified on Tue, 1 Dec at 10:07 PM

Overview

Varibill’s major release on 18 January 2027 includes changes to API authentication, permissions, endpoint names and data formats.

Use this guide to identify the changes affecting your integrations, prepare your updates and test them in staging. It covers the OData API, Report API and Source Collector API.

For a shorter overview of what’s changing, see API Migration Summary - January 2027 Release.

Warning! Prepare and test your changes before the release. Keep your current production configuration in place until the confirmed cutover. Apply production changes according to the cutover timing and instructions provided by Varibill.

Deployment and cutover: Deployment is scheduled to begin at 17:00 SAST on Friday, 15 January 2027. The system is expected to be offline during the deployment weekend, with completion planned for Sunday, 17 January, and the release live by Monday, 18 January. Varibill will provide the final cutover sequence and any timing updates before deployment.

Use this migration guide to prepare the new authentication format. Keep your current production credential configuration in place until cutover.

Check Which APIs Your Integration Uses

API or operation What to review
OData API at api.varibill.com/odata/v1/ Authentication, permissions, endpoint names, request fields, response fields and query handling
OData API at api.varibill.com/odata/v2/ Migration to the new /odata/v1/ contract, including renamed endpoints and changed fields
Report API at api.varibill.com/report/v1/ Authentication, permissions, renamed and removed reports, response fields and query handling
Source Collector GET /api/v1/SourceCollectors at sc.varibill.com Collector-list response fields and your response handling
Source Collector rated and unrated POST operations at sc.varibill.com Test existing submissions in staging. The OData/Report authentication change does not apply to these calls.

Give this guide to the developer, integration partner or technical team responsible for the affected calls.

Start by listing each endpoint your integration uses, including its API version, HTTP method, request fields, response fields and query parameters. Include scheduled jobs, reports and data-import processes.

Prepare and Test Before the Release

  1. Confirm that your Tenant and integration access are available in staging.
  2. Use credentials created in the staging environment.
  3. Prepare the authentication and permission changes for OData and Report calls.
  4. Update affected URLs, field mappings and response handling.
  5. Test each affected operation and compare the results with your expected output.
  6. Keep the tested production update ready for the confirmed cutover.

Note: Staging is for preparation and testing. Do not replace your production credentials or switch production integrations to staging as part of this exercise.

Resource Destination
Staging API base URL https://stagingapi.varibill.com
Staging OData and Report API reference Open the staging API reference
Staging Source Collector API reference Open the staging Source Collector API reference

Staging OData and Report calls use stagingapi.varibill.com; production calls use api.varibill.com. Staging Source Collector calls use stagingsc.varibill.com; production calls use sc.varibill.com. Keep the new endpoint path and use credentials and Tenant identification for the correct environment.

If you need staging access, contact Varibill Support.

Update OData and Report Authentication

The OData API and Report API continue to use Basic Authentication, but the username format changes. The Tenant Key moves out of the username and into a separate request header.

Setting Current production format Format for the new release
Username TenantKey#AuthKey AuthKey only: the Key value
Password Secret Secret, unchanged
Tenant identification Included in the username TenantKey request header

For each OData and Report connection:

  1. Use the Key value as the Basic Authentication username.
  2. Keep the Secret as the password.
  3. Add the TenantKey header with the Tenant Key for that environment.
  4. Test using your staging credentials.

The new request format is:

Authorization: Basic base64(<Key>:<Secret>)
TenantKey: <Tenant Key>

In this example, base64(...) describes how the Authorization value is constructed; it is not literal header text.

Example staging request:

curl --user '<Key>:<Secret>' \
  --header 'TenantKey: <Tenant Key>' \
  'https://stagingapi.varibill.com/odata/v1/Clients?$top=10'

Replace the credential placeholders with values from staging.

Warning! Source Collector authentication is separate. Keep its existing TenantKey#SourceCollectorKey username and Source Collector Secret. Do not apply the OData/Report username change to Source Collector submissions.

Set Up Authentication Roles and Permissions

OData and Report API keys need authentication roles that grant the permissions required by their operations. A request without the required permission receives 403 Forbidden.

Review the operations your integration performs. Reading, creating, updating, deleting and running actions can require different permissions. The API reference identifies the permission required for each protected operation.

In staging:

  1. Open Authentication Roles in the Varibill User Interface.
  2. Create a role for your integration, or use an appropriate existing role.
  3. Add the permissions required by the integration’s calls.
  4. Assign the role to the relevant API authentication record.
  5. Save the configuration and test the calls.

Use the permissions the integration needs. Do not grant unrelated access.

Production role setup: Production setup timing and the sequence for creating or assigning authentication roles will be shared before cutover. Prepare and test the required permissions in staging now.

Do not assume that staging role assignments will be copied to production. Follow the confirmed production provisioning instructions.

Update OData Endpoint URLs

The new release uses /odata/v1/. Existing /odata/v2/ integrations need to move to the new v1 contract.

Existing v1 integrations also need review. Keeping the same version number or endpoint name does not establish that the request and response formats are unchanged.

Renamed or Moved Endpoints

The paths below follow /odata/.

Existing path New path Related changes
v1/ClientIdentifications or v2/ClientIdentifications v1/ClientIdentifiers Review the client and subgroup fields returned in responses.
v1/InvoiceSubGroups or v2/InvoiceSubGroups v1/SubGroups InvoiceSubGroupCode becomes SubGroupCode; InvoiceSubGroupName becomes SubGroupName; key PKSubGroup. FKInvoiceGroup and InvoiceSubGroupUniqueKey are removed.
v2/Forex v1/CurrencyPairs Responses add CurrencyFromCode and CurrencyToCode.
v2/ForexRates v1/ExchangeRates ForexRateEffectiveDate changes from a date to a date-time. Responses add ForexCode.
v2/BaseDataSources v1/SourceCollectors Review collector-list response fields, including BaseDataSourceSourceType, BaseDataSourceAtomic and BaseDataSourceSourceKey.
v2/BaseDataBatches v1/SourceCollectorBatches FKBaseDataSession is removed. Batch deletion is processed in the background; confirm the outcome after submitting the request.
v1/BaseDataSourceIPAddresses v1/SourceCollectorIPAddresses Address becomes BaseDataSourceIPAddressAddress; Code becomes BaseDataSourceIPAddressCode. Reference the collector using FKBaseDataSource, a GUID, instead of BaseDataSourceKey.
v1/BaseDataSourceNotificationRecipients v1/SourceCollectorNotificationRecipients Fields use the BaseDataSourceNotificationRecipient prefix. Reference the collector using FKBaseDataSource.
v1/ContractServiceItems v1/ContractServices Fields use the ContractService prefix. References use FKContract and FKProduct. BillOverUsage, CreditUnderUsage, InAdvanced, InArrears and ReportUsage are removed.

Check the supported HTTP methods and request schemas for each new endpoint. Updating only the URL is not sufficient.

Endpoints That Keep Their Names

Endpoint What to review
Clients Client names, accounting codes, addresses, invoice grouping and required fields
Contacts, Contracts, ConversionRules, CostPrices, PriceLists, ProductMasters, Products, SellingRates, TaxGroups, TaxPercentages and Terms Entity-specific fields, references and validation rules
Currencies and ProductGroups The new contract does not declare FKTenant; tenant identification comes from the request header.
ContractPrices and SalesPersons Older v1 short names change to entity-prefixed names and key references. Examples include UnitRate becoming ContractPriceUnitRate, ContractCode becoming FKContract and Email becoming SalesPersonEmail.
BillingDocuments Once-off document creation, update operations and line-item formats
Progress The response is a page object containing Count and Value. Use skip, top and searchText rather than standard OData paging options.

Review existing v1 request bodies as well as v2 requests. Older short field names can change to names such as ClientCode or SellingRateUnitRate, and references previously supplied as codes can change to GUID fields such as FKPriceList, FKProduct and FKTerm.

For OData and Report requests, use the TenantKey header for tenant identification and build request bodies to the new endpoint schema. Do not rely on undeclared fields such as FKTenant being accepted or used.

For record lookups, the new reference documents filtered list requests, for example:

GET /odata/v1/Clients?$filter=PKClient eq <Client Key>

Use the endpoint’s actual key field and replace <Client Key> with the record GUID. If your integration uses key-based routes such as Clients(<key>), include those routes in your staging tests and confirm support before changing them.

Update OData Field Mappings

The following tables identify the main field changes. They do not replace the request and response schemas for each operation.

Required fields can differ between create, update and other operations. Check the relevant request schema and validation rules, including requirements highlighted below.

Use the date and time format specified by the operation. Date-only values use yyyy-MM-dd; timestamps use ISO 8601, for example 2026-01-31T08:30:00Z for a UTC timestamp.

Clients

These mappings are for integrations using the previous v2 client format.

Previous field New field or action
ClientRegisteredName ClientName, the registered business name; required in the new contract
ClientTradingName Removed
ClientAccountNumber Removed; review use of the new ClientAccountingCode
No previous equivalent ClientAccountingCode, the customer code used for accounting integration; required in the new contract
ClientPhysicalAddressUnitNumber ClientAddress1
ClientPhysicalAddressComplexName ClientAddress2
ClientPhysicalAddressStreetNumber ClientAddress3
ClientPhysicalAddressStreetName ClientAddress4; required in the new contract
ClientPhysicalAddressSuburb ClientAddress5
ClientPhysicalAddressCity ClientAddress6; required in the new contract
ClientPhysicalAddressPostalCode ClientAddressCode
ClientPostalAddressLine1 through ClientPostalAddressLine4 and ClientPostalAddressPostalCode Removed; the new contract uses one client address
FKInvoiceGroup ClientInvoiceGroup; required in the new contract
InvoiceSubGroup SubGroup list
ClientType, ClientIdentificationNumber, ClientDocumentId and ClientAccountingSystemClientId Removed
ClientRegistrationNumber, ClientTaxNumber and ClientTaxExempt Required in the new contract

The documented ClientInvoiceGroup values are:

  • GenerateInvoicePerContract
  • GenerateInvoicePerDefinedGroup
  • GenerateInvoiceWithDefinedGroups
  • GenerateInvoiceWithoutDefinedGroup

Products

Previous field or setting New field or action
ProductAccountCode ProductAccountingCode
ProductInventoryUpdate, ProductInventoryCode, ProductInArrears and ProductDisplayUnitRate Removed
No previous equivalent ProductIsInventory; required in the new contract
No previous equivalent FKTenantRounding, the GUID of a rule from Rounding; required in the new contract
Response field BaseDataConversionRuleBaseDataType BaseDataConversionRuleDataType
No previous response field TenantRoundingName

Product Masters

  • FKCurrency, ProductMasterProductGrouping and ProductMasterProductGroupingDisplayOnly are removed.
  • ProductMasterAllowProductMove is added.
  • Responses no longer include CurrencyCode or CurrencyName.

Conversion Rules

Previous field New field or action
BaseDataConversionRuleConversionFactor BaseDataConversionRuleNumerator and BaseDataConversionRuleDenominator; required in the new contract
BaseDataConversionRuleBaseDataType, BaseDataConversionRuleReportDataType and BaseDataConversionRuleSystem Removed from requests
No previous equivalent BaseDataConversionRuleBaseDisplayUnit; required in the new contract
BaseDataConversionRuleDisplayUnit Maximum length changes from 50 to 20 characters

Tax Groups

TaxGroupRoundingOption and TaxGroupRoundingDecimal are removed. Product rounding is configured through FKTenantRounding.

Contracts

Previous field New field or action
FKInvoiceSubGroup FKSubGroup
No previous equivalent Optional MinimumCommitItem list
Response field ClientAccountNumber ClientAccountingCode
Response field ClientRegisteredName ClientName
Response field InvoiceSubGroupName SubGroupName
Response fields PriceListRated and PriceListUnrated Separate PriceListRatedCode, PriceListRatedName, PriceListUnratedCode and PriceListUnratedName fields
No previous response fields BillingCycleCode, ClientCode, TermCode and ContractEndDateExcluding

Contacts

  • ContactUnique is removed.
  • ContactContactNumber and ContactSurname are required in the new contract.

Cost Prices and Selling Rates

Endpoint Response changes
CostPrices FKCurrency and CurrencyName are removed; ProductCode is added.
SellingRates PriceListCode, ProductCode and TermCode are added.

Client Identifiers

The endpoint previously named ClientIdentifications becomes ClientIdentifiers.

Previous response field New response field
ClientAccountNumber ClientAccountingCode
ClientRegisteredName ClientName
FKInvoiceGroup and InvoiceGroupType ClientInvoiceGroup
FKInvoiceSubGroup FKSubGroup
InvoiceSubGroupCode SubGroupCode
InvoiceSubGroupName SubGroupName

Once-Off Billing Documents

For integrations creating once-off documents through the previous v1 BillingDocuments format:

Change Fields or action
Removed FKClient, FKBillingHeader, BillingHeaderDueDate, BillingMasterInvoiceTemplate and BillingMasterInvoiceSummaryTemplate
New client reference BillingHeaderClientCode replaces FKClient and is required in the new contract
Other new required fields BillingHeaderSalesPersonName, BillingHeaderSalesPersonSurname and BillingHeaderUtcoffsetMinutes
Existing fields becoming required Billing address lines 1, 2, 3 and 5; BillingHeaderBillingAddressCode; company and tax registration numbers; currency code and symbol; document number; process method; purchase order; and sales person code
Shorter text field BillingHeaderBillingAccountNumber changes from 200 to 100 characters
Line-item format Review CreateBillingLineItemItem in the API reference.

Use the exact property names shown in the operation’s request schema for the grouped fields above.

Update Report API Calls

Report API changes include renamed routes, removed routes, response-field changes and query restrictions.

Renamed Report Endpoints

Previous route New route
GET /report/v1/BillingHeaders GET /report/v1/BillingDocuments
GET /report/v1/BillingHeaderLineItems GET /report/v1/BillingDocumentLineItems
GET /report/v1/BillingHeaderLineItemTransactions GET /report/v1/BillingDocumentLineItemTransactions

Update the URLs and review the response-field and query changes below.

Removed Report Endpoints

These older Report routes are retired and are not available in the new Report API. Review any integration that uses them.

Existing Report route Migration instructions
/report/v1/BilledCycles Use the OData BilledCycles endpoint (GET /odata/v1/BilledCycles) for this data. Review its schema, query parameters and permissions; the old Report response is not a drop-in contract.
/report/v1/BillingCycles Use the OData BillingCycles endpoint (GET /odata/v1/BillingCycles) for this data. Review its schema, query parameters and permissions; the old Report response is not a drop-in contract.
/report/v1/BillingHeaderBaseDataSources Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.
/report/v1/ComprehensiveCostPrices Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.
/report/v1/ComprehensiveProductSellingPriceList Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.
/report/v1/LatestCostPrices Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.
/report/v1/LatestProductSellingPriceList Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.
/report/v1/LinkedPendingLastSeenProductsNoSellingRates Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.
/report/v1/ProductsNoSellingRates Retired. No direct replacement is specified. Review the current API reference for your reporting requirement and contact Support if you need help.

Do not substitute an endpoint based only on a similar name. Confirm that it supplies the fields, relationships and effective-date behavior your integration needs.

Report Endpoints Keeping Their Names

The following route names remain:

  • BillingLineItems
  • BillingLineItemTransactions
  • BillingTransactions
  • EffectiveSellingRates
  • NoSellingRates
  • RatedDataWithMarkupSellingRates

Review their request parameters, response fields and query restrictions even where the URL is unchanged.

New Source Data Report

GET /report/v1/SourceData provides a paged source data report using startDate, endDate, skip and top parameters. Follow the operation’s documented date and paging requirements.

Sorting Restrictions

Remove $orderby from requests to:

  • /report/v1/BillingDocumentLineItemTransactions
  • /report/v1/BillingLineItemTransactions

The new contract disallows server-side sorting on these two transaction reports.

Effective Date

For EffectiveSellingRates and RatedDataWithMarkupSellingRates, supply effectiveDate in yyyy-MM-dd format for the date your integration intends to query.

This makes the reporting date explicit rather than allowing it to vary with the date the request runs.

Billing-Document Report Field Changes

In this table, the ellipsis represents the relevant entity prefix. Check the full property name in the endpoint’s response schema.

Area Change
Client reference FKClient is removed from billing documents. Use BillingHeaderClientCode.
Billing cycle FKBillingCycle, FKBilledCycle and the BillingCycleDay fields are removed. Use BilledCycleCode or BillingLineItemBilledCycleCode, as applicable.
Subgroups InvoicedSubGroupCode / InvoicedSubGroupName and InvoiceSubGroupCode / InvoiceSubGroupName become the corresponding SubGroupCode / SubGroupName fields. FKInvoiceSubGroup / FKInvoicedSubGroup become FKSubGroup where documented.
Accounting code AccountCode fields become AccountingCode on line items and transactions
Sales person BillingLineItemSalesPerson and FKSalesPerson are replaced by the relevant SalesPersonCode, SalesPersonName and SalesPersonSurname fields.
Exchange rate ForexRate fields become ForexRateNumerator and ForexRateDenominator
Unit conversion ConversionFactor / ConversionRule fields become ConversionNumerator and ConversionDenominator; BaseDataType becomes DataType
Tax TaxTypeCode, TaxRoundingOption and TaxRoundingDecimal are removed; TaxGroupCode is added.
Removed transaction fields BillingTransactionDescription, ContractNumber, ProductIdentifier, ProductName, ProductMasterName, FKBillingHeader and FKBillingTransaction
Added transaction fields OrderDate, BillingPrinciple, RateSource, ProrateNumerator / ProrateDenominator, BaseQuantity and DecimalPlaces
Other removed fields TotalCostFullPeriod, UnitRateFullPeriod, QuantityLinkedToPriorInAdvance, DisplayUnitRate, MinimumCommitData and RatedData
New line-item fields ClientIdentifier, ProductCode, ProductGroupCode, ProductMasterCode, IsInventory and UtcoffsetMinutes

Text limits also change:

Field category Previous maximum New maximum
Display unit 200 characters 20 characters
Contract number 80 characters 40 characters
Product name 400 characters 200 characters
Product group name 400 characters 100 characters
Product master name 400 characters 100 characters

Review Source Collector API Calls

The Source Collector API at sc.varibill.com has its own authentication and submission operations. Keep these separate from the OData endpoints used to manage collectors.

Authentication and Submission URLs

The existing authentication format remains:

  • Username: TenantKey#SourceCollectorKey
  • Password: Source Collector Secret

The rated and unrated submission routes remain:

  • POST /api/v1/SourceCollectors/Rated
  • POST /api/v1/SourceCollectors/Unrated

Test representative existing payloads in staging, including the quantities, identifiers, totals and costs your integration submits. Compare accepted records and batch results with your expected output.

Keep each rated or unrated submission within the documented limit of 50,000 records per request.

Some existing payloads include FKTenant, FKBaseDataBatch or IgnoreRecordIdentifier. Do not remove these fields simply because they no longer appear in the API reference. Keep them in your test cases and follow any confirmed field-specific migration instructions from Varibill.

Optional Interim Data Header

The new submission endpoints support an optional interimData header, which defaults to false when omitted. Adding this header is not required as part of the existing-submission migration.

Collector-List Response

For integrations calling GET /api/v1/SourceCollectors:

Field What to review
BaseDataSourceSourceType Removed from the new response model. Update any logic that depends on this field.
BaseDataSourceAtomic Removed from the new response model. Update any logic that depends on this field.
BaseDataSourceSourceKey The new schema defines this field as a GUID rather than an unrestricted string. Review generated client models and response parsing. This does not mean removing quotation marks from JSON values.

Handle Pagination and Rate Limits

Pagination

Operation Paging approach
OData and Report list operations using OData paging Follow the operation’s documented page size and the nextLink where returned. The reference describes a default of 1,000 rows and 10,000 for designated large-page operations; check the specific operation.
OData Progress, RatedSourceData and UnratedSourceData Use the operation’s plain skip and top parameters rather than assuming nextLink paging. Progress also supports searchText and returns Count and Value.
Report SourceData Use startDate, endDate, skip and top according to the endpoint’s contract.

Follow each endpoint’s documented paging mechanism. Do not assume that one request returns every matching record, or that increasing $top removes the server’s page limit.

Rate Limits

API Limit per key Window
OData and Report APIs 900 requests Five-minute fixed window
Source Collector API 900 requests Five-minute fixed window

These are the currently configured limits confirmed on 1 December 2026. Limits are configurable and may be updated; check the API reference for the environment you use. Requests exceeding the limit receive 429 Too Many Requests immediately rather than being queued.

Handle throttling in your integration. Pause before retrying and avoid immediate repeated requests that continue to exceed the limit. Do not assume a Retry-After header will be supplied.

Check Responses and Errors

Check the HTTP status and the response body for each operation. Where an operation returns fields such as Successful, Message, ValidationResults or TotalRecords, use them to determine the outcome and identify records requiring attention.

Do not assume that an accepted background operation has finished. For operations processed asynchronously, check their documented status or result before proceeding.

Response What to check
2xx Read the operation’s documented result. Check any returned success, validation or record-count information.
400 Bad Request Inspect the returned error details and any validation results. Correct the request before retrying. Response body formats can vary by endpoint.
401 Unauthorized Check the credentials and Tenant identification for the API you are calling.
403 Forbidden For OData and Report calls, check the API key’s role and operation permissions.
429 Too Many Requests Pause and retry according to your throttling-handling strategy.
503 Service Unavailable The service may be temporarily unavailable. Follow the operation’s retry guidance.

For requests that create, update or process data, confirm the outcome of an uncertain request before submitting it again.

Additional OData Operations

The release expands the operations available through OData, including endpoints for billing cycles, billed-cycle actions, accounting integrations, source collection management, authentication and role management, email operations, document and report generation, and Tenant configuration.

New action operations include creating the next billing or billed cycle, validating, processing and reopening billed cycles, resending email activity logs and posting billing documents to accounting. Check each action’s purpose and required permissions in the API reference before using it.

Consult the API reference for the full list of new endpoints, their methods, permissions and request schemas.

Final Preparation Checklist

Before cutover:

  • Inventory every endpoint, HTTP method and API version your integration uses.
  • Prepare the new OData/Report username and TenantKey header handling.
  • Identify the operation permissions required and test the staging role assignments.
  • Review use of the nine retired Report routes, migrate billing-cycle queries to OData where applicable, and contact Support if a required reporting capability is unavailable.
  • Update renamed routes, changed fields, references and required values.
  • Test response parsing, date handling, sorting, pagination and error handling.
  • Test existing Source Collector submissions and collector-list reads where used.
  • Compare test results with expected records, quantities and values.
  • Confirm staging and production configurations are kept separate.
  • Have the tested production update ready and confirm who will apply it.
  • Obtain the final cutover timing and production role-provisioning instructions.

At the confirmed production cutover:

  1. Apply the role-provisioning and integration changes in the sequence confirmed by Varibill.
  2. Check authentication and permissions.
  3. Verify the affected read, write, reporting and submission operations.
  4. Monitor scheduled integrations and investigate failures.

Do not switch production integrations before the confirmed cutover.

Get Help

Contact Varibill Support if you need staging access or help identifying an affected integration.

When reporting a migration issue, include the environment, endpoint, HTTP method, response status, error details and the time of the request. Do not include API secrets or Authorization headers.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article