Carriers API
TPOSS Carriers API allows you to import and manage carriers and carrier groups using the following RPC methods:
- Charging.CarrierGroup.Import - to import carriers and carrier groups into TPOSS database
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:
Example of the successful response:
In the case of an error, the response contains the error object with an error code and message:
The following error codes may be returned:
-30000- Required field is missing.-33333- Not authenticated.-32700- Can't decode JSON request body.