On this page
Service Provider Connect ADVANCED API Integration
1. Introduction
This article explains how to integrate Transatel APIs to manage the Service Provider Connect (SPC) Advanced offer, where customers buy airtime at pay-per-use rates and have their own dedicated data plan catalogue.
If you are on the “Start” version of the offer, where you have access to the Ubigi catalogue, please refer to this article
In SPC Advanced there is no prepaid credit: bundles are free, and the data your end customers use is charged at pay-per-use (PPU) rates. Bundles are created either by Transatel (TSL) on your request, or by you with the Bundle Factory.
Scope of this article: it covers the end customer lifecycle, meaning everything you do once your bundles exist: listing the catalogue, subscribing a bundle to an eSIM, retrieving the QR code, following the eSIM and the plan. The Bundle Factory (creating and managing your own bundles) will be documented on the Developer Portal: https://developers.transatel.com/
Before you start, read the article “How to integrate our APIs?” first. This page then helps you focus on the APIs required for this specific offer.
2. Authentication API
Transatel APIs use OAuth 2.0 to obtain access tokens.
- The API credentials (Client ID and secret) are different from your SIM Management Portal (Auriga) user credentials.
- Your Account manager provides them when your account is created.
3. OCS APIs (subscription, catalogue, inventory)
OCS Subscription
Use it to add bundles to your SIMs. There are two order types:
- Preload for preactivated SIMs. The SIM stays preactivated until the end user installs it and uses it.
- Subscribe for active SIMs. A plan cannot be preloaded onto an active SIM.
In both cases, the data plan starts only when the SIM is used in a location covered by the plan.
In SPC Advanced, the payment type of the subscription order is none: bundles are free and usage is charged in PPU, so no payment is made at subscription.
OCS Catalog
Lists the products available to your account, meaning the bundles created by Transatel or by you with the Bundle Factory. Locations are in the tags field, in ISO-2 format.
OCS Inventory
Checks a SIM’s inventory and the remaining allowance of its bundles, so you can display it in your own interface.
OCS Events
Webhooks for product lifecycle events (for example, a bundle expired). A threshold event (OCS/PRODUCT/RESOURCE/THRESHOLD) is sent to your webhook endpoint when a bundle’s allowance is nearly consumed. It is set at 80% consumed by default (20% of the allowance remaining), or at another value if you request it when your catalogue is created.
4. SIM management
SPC provides you with your own stock of eSIMs. There is no API to request new profiles on demand, so you need to maintain your own profile database.
Update your stock by:
- importing the SIM delivery file provided with each order;
- importing the daily Subscription report deposited on your SFTP account;
- using the SIM Search API. It may lag behind the real status and group changes: for real-time information, use the service-specific APIs and webhooks.
5. SIM status and eSIM installation status
Two lifecycles run in parallel:
- the SIM status is the state of the telecom line (for example preactivated, active, suspended, terminated);
- the eSIM status is the state of the profile on a device (for example released, downloaded, installed, enabled, deleted).
To work, the SIM must be active and the eSIM enabled on the device. New SIMs are delivered in Preactivated status and their eSIM profile in Released status, ready to be downloaded.
6. eSIM Details API
Use Get eSIM details to retrieve the activation code (QR code) and the installation status of the eSIM.
The Reserve and Release APIs do not apply to SPC: profiles are already reserved and released when delivered.
7. Connectivity Management APIs (optional)
The Subscription Management API is not required for activation, as SIMs activate on their first network attach.
Integrate it if you need to suspend or terminate SIMs, or to set the Reference and Group fields shown in the portal. Access must be requested through your Account manager, as it is not open to SPC customers by default.
8. Unlimited plans integration guide
If your catalogue includes unlimited plans, each of them has two resources:
- the main resource: full-speed data;
- the FUP resource: data after the full-speed quota is used, throttled to 2 Mbps.
Unlimited plans are identified by “FUP” in their name. The number after “FUP” is the full-speed allowance in GB (for example, FUP30 = 30 GB).
Events are resource-based:
- the first
OCS/PRODUCT/RESOURCE/EXHAUSTEDevent (full-speed resource): tell the user that their speed is reduced. Do not send your standard “bundle exhausted” message; - the second event (FUP resource): tell the user that their data access is capped.
9. Service Provider Connect Advanced API glossary
| Field | Value |
|---|---|
| mvnoRef | Your SPC account name, starting with M2MA_WW_TSL_. You can find it in the SIM Management Platform. |
| COS | Provided by your Account manager after your dedicated catalogue is created. |
| RatePlan | Provided by your Account manager after your dedicated catalogue is created. Needed only for the optional Subscription Management API. |
| Payment | none in subscription requests. |