Product Catalogue
You can access your product catalogue via a single request. This endpoint will show you the complete list of products and their respective Ids, which can be used in an order to activate/topup eSIM profiles or physical SIMs. Each plan also contains the type of SIM it can be used with which can be: ESIM, PSIM, or both. Make sure to use the right type of plan for your use-case. Connect supports both daily and monthly plans. For monthly plans the expiry date will be on the same day of the following month, regardless of the number of days in that month.
Example Request
curl -X GET \
https://services.truphone.com/connect-api/v2/products \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'X-Correlation-ID: unique-id-from-requester-123'
Example Response
{
"data": [
{
"id": "wp-_bXkuC26SFDSRMHyiAQK7LJ6MtiWyr3zLfwB7FM=",
"name": "Plan name",
"sim_type": [
"ESIM"
],
"duration": 90,
"duration_unit": "DAYS",
"data": 50,
"data_unit": "MB",
"price": 20,
"price_currency": "EUR",
"footprint_code": "GLOBAL",
"_metadata": {
"links": {
"_self": "{BASE_URL}/v2/products/wp-_bXkuC26SFDSRMHyiAQK7LJ6MtiWyr3zLfwB7FM="
}
}
},
...
],
"_metadata": {
"links": {
"_self": "{BASE_URL}/v2/products?page=1&page_size=10"
},
"page": 1,
"page_size": 10,
"page_count": 1
}
}