Skip to content
Sandbox open · production by approval

Build with VivaPe APIs

One REST/JSON API for mobile top-ups, data bundles, eSIMs and physical SIM operations. Token authentication, a sandbox with mock operators, and webhooks for every asynchronous result.

Base URL · illustrative
https://connect.vivape.eu
curl -X POST "https://connect.vivape.eu/api/login" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"email":"dev@yourcompany.com","password":"…"}'

# → {"status":"Success","token":"1|aBcD…"}

01 Getting started

From sandbox to live in 4 steps

Female software engineer writing code at a computer in an office
  1. Step 1

    Request access

    Tell us about your business and what you want to build. We review every request, usually within two business days.

  2. Step 2

    Build in the sandbox

    Use your sandbox credentials and mock operators to test every flow, including Success, Failed and Pending results.

  3. Step 3

    Verify the essentials

    Handle webhooks, check your balance before sending, and map error responses to clear messages for your users.

  4. Step 4

    Go live

    Register your server IP addresses, receive production API keys and start transacting with real operators.

02 API explorer

Endpoints at a glance

Examples are illustrative: they show the shape of each request and response. Approved partners receive the full reference with every field, error code and status.

Full reference

Authentication & account

Login & generate token

POST /api/login

Exchange your account email and password for a Bearer token (Laravel Sanctum). Send the token with every other request.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/login" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "dev@yourcompany.com",
    "password": "your-password"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->post('https://connect.vivape.eu/api/login', [
        'email' => 'dev@yourcompany.com',
        'password' => 'your-password',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/login', {
  method: 'POST',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "email": "dev@yourcompany.com",
      "password": "your-password"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/login",
    headers={
        "Accept": "application/json",
    },
    json={
        "email": "dev@yourcompany.com",
        "password": "your-password"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "token": "1|aBcDeFgHiJkLmNoPqRsTuVwXyZ",
    "token_type": "Bearer"
}

Authentication & account

User profile & reconciliation

GET /api/user Bearer token

Your account profile, wallet balance and figures for reconciling transactions.

Request · illustrative example

cURL

curl -X GET "https://connect.vivape.eu/api/user" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->get('https://connect.vivape.eu/api/user');

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/user', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "GET",
    "https://connect.vivape.eu/api/user",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "data": {
        "name": "Your Company Ltd",
        "currency": "EUR",
        "balance": 1250.4,
        "transactions_today": 182
    }
}

Catalog & data reference

List countries & currencies

GET /api/countries Bearer token

Every country you can sell in, with its ISO code, dialling code and currency.

Request · illustrative example

cURL

curl -X GET "https://connect.vivape.eu/api/countries" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->get('https://connect.vivape.eu/api/countries');

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/countries', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "GET",
    "https://connect.vivape.eu/api/countries",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "data": [
        {
            "iso": "NG",
            "name": "Nigeria",
            "dial_code": "+234",
            "currency": "NGN"
        }
    ]
}

Catalog & data reference

List mobile operators

GET /api/operators?country=NG Bearer token

Mobile operators available in a country, with their identifiers and logos.

Request · illustrative example

cURL

curl -X GET "https://connect.vivape.eu/api/operators?country=NG" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->get('https://connect.vivape.eu/api/operators?country=NG');

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/operators?country=NG', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "GET",
    "https://connect.vivape.eu/api/operators?country=NG",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "data": [
        {
            "operator_id": 341,
            "name": "MTN Nigeria",
            "country": "NG"
        }
    ]
}

Catalog & data reference

List products & plans

GET /api/products?operator_id=341 Bearer token

Top-up amounts, data bundles and eSIM plans for an operator, with your cost and the retail price.

Request · illustrative example

cURL

curl -X GET "https://connect.vivape.eu/api/products?operator_id=341" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->get('https://connect.vivape.eu/api/products?operator_id=341');

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/products?operator_id=341', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "GET",
    "https://connect.vivape.eu/api/products?operator_id=341",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "data": [
        {
            "product_id": "MTN-NG-1GB-30D",
            "type": "data",
            "description": "1 GB, 30 days",
            "cost": 1.85,
            "retail_price": 2.5,
            "currency": "EUR"
        }
    ]
}

Catalog & data reference

Lookup plans by phone

POST /api/products/lookup Bearer token

Detect the operator behind a phone number and return the plans that can be sent to it.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/products/lookup" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+2348031234567"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/products/lookup', [
        'phone' => '+2348031234567',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/products/lookup', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "phone": "+2348031234567"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/products/lookup",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "phone": "+2348031234567"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "operator": {
        "operator_id": 341,
        "name": "MTN Nigeria"
    },
    "products": [
        {
            "product_id": "MTN-NG-AIRTIME",
            "type": "airtime",
            "min": 1,
            "max": 100
        }
    ]
}

Transactions & orders

Create transaction

POST /api/transactions Bearer token

Send a top-up, bundle or eSIM order. Use your own reference to make retries safe.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/transactions" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": "MTN-NG-1GB-30D",
    "phone": "+2348031234567",
    "reference": "ORDER-10045"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/transactions', [
        'product_id' => 'MTN-NG-1GB-30D',
        'phone' => '+2348031234567',
        'reference' => 'ORDER-10045',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/transactions', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "product_id": "MTN-NG-1GB-30D",
      "phone": "+2348031234567",
      "reference": "ORDER-10045"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/transactions",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "product_id": "MTN-NG-1GB-30D",
        "phone": "+2348031234567",
        "reference": "ORDER-10045"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "transaction_id": "TX-8F2C91",
    "reference": "ORDER-10045",
    "transaction_status": "Pending"
}

Transactions & orders

Retrieve eSIM by transaction ID

POST /api/esim/retrieve Bearer token

Fetch the activation details (QR code, SM-DP+ address and activation code) of an eSIM order.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/esim/retrieve" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "transaction_id": "TX-8F2C91"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/esim/retrieve', [
        'transaction_id' => 'TX-8F2C91',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/esim/retrieve', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "transaction_id": "TX-8F2C91"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/esim/retrieve",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "transaction_id": "TX-8F2C91"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "iccid": "8944000000000000001",
    "smdp_address": "smdp.example.com",
    "activation_code": "LPA:1$smdp.example.com$ABC-123",
    "qr_code_url": "https://example.com/qr/TX-8F2C91.png"
}

eSIM lifecycle & diagnostics

Unified eSIM tracking

POST /api/esim/status Bearer token

One call for an eSIM’s state: installed, active, data remaining and validity.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/esim/status" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "8944000000000000001"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/esim/status', [
        'iccid' => '8944000000000000001',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/esim/status', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "8944000000000000001"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/esim/status",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "8944000000000000001"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "esim_status": "Active",
    "installed": true,
    "expires_at": "2026-12-31T23:59:59Z"
}

eSIM lifecycle & diagnostics

Live data usage

POST /api/esim/usage Bearer token

Data used and remaining on an eSIM plan, close to real time.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/esim/usage" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "8944000000000000001"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/esim/usage', [
        'iccid' => '8944000000000000001',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/esim/usage', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "8944000000000000001"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/esim/usage",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "8944000000000000001"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "used_mb": 412,
    "remaining_mb": 612,
    "total_mb": 1024
}

eSIM lifecycle & diagnostics

Device & roaming info

POST /api/esim/device Bearer token

The handset an eSIM is installed on and the network it is currently roaming on.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/esim/device" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "8944000000000000001"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/esim/device', [
        'iccid' => '8944000000000000001',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/esim/device', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "8944000000000000001"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/esim/device",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "8944000000000000001"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "device": "iPhone 15",
    "country": "ES",
    "network": "Movistar"
}

eSIM lifecycle & diagnostics

Handset install progress

POST /api/esim/install-progress Bearer token

Follow a customer’s installation: downloaded, installed or enabled.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/esim/install-progress" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "8944000000000000001"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/esim/install-progress', [
        'iccid' => '8944000000000000001',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/esim/install-progress', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "8944000000000000001"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/esim/install-progress",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "8944000000000000001"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "install_state": "Installed",
    "updated_at": "2026-11-20T10:15:00Z"
}

eSIM lifecycle & diagnostics

Query carrier APN details

POST /api/esim/apn Bearer token

The APN settings a customer needs if data does not connect automatically.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/esim/apn" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "8944000000000000001"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/esim/apn', [
        'iccid' => '8944000000000000001',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/esim/apn', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "8944000000000000001"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/esim/apn",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "8944000000000000001"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "apn": "internet",
    "username": null,
    "password": null
}

eSIM lifecycle & diagnostics

Redeem voucher code

POST /api/vouchers/redeem Bearer token

Redeem a VivaPe voucher code for its eSIM plan or credit.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/vouchers/redeem" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "VIVA-7Q2K-91XZ"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/vouchers/redeem', [
        'code' => 'VIVA-7Q2K-91XZ',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/vouchers/redeem', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "code": "VIVA-7Q2K-91XZ"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/vouchers/redeem",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "code": "VIVA-7Q2K-91XZ"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "transaction_id": "TX-91AB30",
    "transaction_status": "Success"
}

Physical SIM operations

Validate 20-digit SIM

POST /api/sim/validate Bearer token

Check a physical SIM’s 20-digit ICCID before you sell or activate it.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/sim/validate" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "89440000000000000012"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/sim/validate', [
        'iccid' => '89440000000000000012',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/sim/validate', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "89440000000000000012"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/sim/validate",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "89440000000000000012"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "valid": true,
    "sim_status": "Inactive"
}

Physical SIM operations

Remote activate SIM

POST /api/sim/activate Bearer token

Activate a physical SIM remotely with the plan the customer bought.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/sim/activate" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "89440000000000000012",
    "product_id": "EU-10GB-30D"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/sim/activate', [
        'iccid' => '89440000000000000012',
        'product_id' => 'EU-10GB-30D',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/sim/activate', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "89440000000000000012",
      "product_id": "EU-10GB-30D"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/sim/activate",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "89440000000000000012",
        "product_id": "EU-10GB-30D"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "transaction_id": "TX-55D7E2",
    "transaction_status": "Pending"
}

Physical SIM operations

Reset SIM traffic counter

POST /api/sim/reset-traffic Bearer token

Reset the data counter on a physical SIM, for example at the start of a new plan.

Request · illustrative example

cURL

curl -X POST "https://connect.vivape.eu/api/sim/reset-traffic" \
  -H "Authorization: Bearer $VIVAPE_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "iccid": "89440000000000000012"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->withToken(getenv('VIVAPE_TOKEN'))
    ->post('https://connect.vivape.eu/api/sim/reset-traffic', [
        'iccid' => '89440000000000000012',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://connect.vivape.eu/api/sim/reset-traffic', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.VIVAPE_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "iccid": "89440000000000000012"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://connect.vivape.eu/api/sim/reset-traffic",
    headers={
        "Authorization": f"Bearer {os.environ['VIVAPE_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "iccid": "89440000000000000012"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "status": "Success",
    "reset_at": "2026-11-20T10:20:00Z"
}

Webhooks & events

Transaction status callback

POST Your webhook URL

We call your webhook when a Pending transaction reaches its final status (Success or Failed). Reply with any 2xx status quickly, then process it.

Request · illustrative example

cURL

curl -X POST "https://your-app.example/webhooks/vivape" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "event": "transaction.updated",
    "transaction_id": "TX-8F2C91",
    "reference": "ORDER-10045",
    "transaction_status": "Success"
}'

PHP

<?php

use Illuminate\Support\Facades\Http;

$response = Http::acceptJson()
    ->post('https://your-app.example/webhooks/vivape', [
        'event' => 'transaction.updated',
        'transaction_id' => 'TX-8F2C91',
        'reference' => 'ORDER-10045',
        'transaction_status' => 'Success',
    ]);

$data = $response->throw()->json();

JavaScript

const response = await fetch('https://your-app.example/webhooks/vivape', {
  method: 'POST',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "event": "transaction.updated",
      "transaction_id": "TX-8F2C91",
      "reference": "ORDER-10045",
      "transaction_status": "Success"
  }),
});

const data = await response.json();

Python

import os
import requests

response = requests.request(
    "POST",
    "https://your-app.example/webhooks/vivape",
    headers={
        "Accept": "application/json",
    },
    json={
        "event": "transaction.updated",
        "transaction_id": "TX-8F2C91",
        "reference": "ORDER-10045",
        "transaction_status": "Success"
    },
    timeout=30,
)
response.raise_for_status()
data = response.json()

Response · 200, illustrative

{
    "received": true
}

03 Authentication & security

Secure by default

  • Bearer tokens. Log in with your account email and password to receive a token (Laravel Sanctum), then send it as Authorization: Bearer ….
  • API keys on approval. Production credentials are issued after we approve your business and your sandbox integration.
  • IP whitelisting. Production calls are only accepted from the server addresses you register with us.
  • Rate limiting. Requests are rate limited to protect the platform. Back off and retry when you receive a 429 response.
  • HTTPS and JSON only. Send Accept: application/json and Content-Type: application/json with every request.

Every authenticated request · illustrative

GET /api/user HTTP/1.1
Host: connect.vivape.eu
Authorization: Bearer 1|aBcDeFgHiJkLmNoPqRsTuVwXyZ
Accept: application/json
Content-Type: application/json

04 Webhooks & events

Know the moment a transaction completes

Most transactions finish instantly. When one returns Pending, we call your webhook with the final result, so you never need to poll.

Success
Delivered to the customer.
Failed
Not delivered; not charged.
Pending
Final status follows by webhook.
  • Reply with any 2xx status quickly, then process the event.
  • Use your own reference to match events to orders, and ignore duplicates.
  • Confirm the status with a lookup before fulfilling high-value orders.

Example callback to your webhook URL · illustrative

POST https://your-app.example/webhooks/vivape
Content-Type: application/json

{
    "event": "transaction.updated",
    "transaction_id": "TX-8F2C91",
    "reference": "ORDER-10045",
    "transaction_status": "Success"
}

06 Sandbox & API access

Request access

Tell us what you are building. Our integration team reviews every request and replies by email, usually within two business days, with sandbox credentials and next steps.

Products you need (required)

Separate with commas. You can add them later too.

? FAQ

Developer questions

Q1How do I get API access?

Request access with the form on this page. Once your business is approved we issue sandbox credentials, then production API keys after a short go-live check.

Q2Is there a sandbox?

Yes. The sandbox uses mock operators, so you can test top-ups, eSIM orders and every transaction status (Success, Failed and Pending) without moving real money.

Q3How does authentication work?

Send your email and password to the login endpoint to receive a token, then add it to every request as an “Authorization: Bearer” header over HTTPS.

Q4Can I restrict which servers can call the API?

Yes. Production access is limited to the IP addresses you register with us (IP whitelisting), and requests are rate limited to protect the platform.

Q5How do I know when a transaction completes?

Most transactions complete instantly. Some return Pending first; we then send the final status to your webhook, and you can also check it with a status lookup.

Q6Are the examples on this page the final API?

They are illustrative and show the shape of requests and responses. Approved partners receive the full reference, the Postman collection and the changelog.

Search VivaPe

Popular: Products · Who we serve · Coverage · Blog