For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Travelping Open Subscriber Server 6.16, an older release. The newest release is 6.20. Go to 6.20

Carriers API

TPOSS Carriers API allows you to import and manage carriers and carrier groups using the following RPC methods:

Data model

A carrier group is represented by an object with the following properties:

A carrier is represented by an object with the following properties:

API methods

Charging.CarrierGroup.Import

This method allows you to import a complete list of carrier groups with the related carriers. The method checks the difference between the carrier groups and carriers data passed in the request with the data from the TPOSS database. The result is applied to the database so that carrier groups and carriers in CCS are the same as in the source JSON data from the original request.

For each carrier from the provided source data within a carrier group, the following checks are performed when importing the data:

  • If a carrier already exists in the database with identical values, the record is skipped.
  • If a carrier already exists in the database with different values, the record for this carrier is updated.
  • If a carrier does not exist, the carrier is inserted into a carrier group.
  • If a carrier exists in the carrier group but not in the provided source data, the carrier is deleted from the carrier group.

You can pass the following parameters in the request:

Example of the request:

bash

Example of the successful response:

json

In the case of an error, the response contains the error object with an error code and message:

json

The following error codes may be returned:

  • -30000 - Required field is missing.
  • -33333 - Not authenticated.
  • -32700 - Can't decode JSON request body.