Check port-in eligibility
curl --request POST \
--url https://api.spenza.com/api/v1.1/port-in/eligibility \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"portInNumber": "+15555551234",
"plan": "BIB009A",
"Operator": "SpenzaJ",
"network": "T-Mobile"
}
'import requests
url = "https://api.spenza.com/api/v1.1/port-in/eligibility"
payload = {
"portInNumber": "+15555551234",
"plan": "BIB009A",
"Operator": "SpenzaJ",
"network": "T-Mobile"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
portInNumber: '+15555551234',
plan: 'BIB009A',
Operator: 'SpenzaJ',
network: 'T-Mobile'
})
};
fetch('https://api.spenza.com/api/v1.1/port-in/eligibility', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spenza.com/api/v1.1/port-in/eligibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'portInNumber' => '+15555551234',
'plan' => 'BIB009A',
'Operator' => 'SpenzaJ',
'network' => 'T-Mobile'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spenza.com/api/v1.1/port-in/eligibility"
payload := strings.NewReader("{\n \"portInNumber\": \"+15555551234\",\n \"plan\": \"BIB009A\",\n \"Operator\": \"SpenzaJ\",\n \"network\": \"T-Mobile\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.spenza.com/api/v1.1/port-in/eligibility")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"portInNumber\": \"+15555551234\",\n \"plan\": \"BIB009A\",\n \"Operator\": \"SpenzaJ\",\n \"network\": \"T-Mobile\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/port-in/eligibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"portInNumber\": \"+15555551234\",\n \"plan\": \"BIB009A\",\n \"Operator\": \"SpenzaJ\",\n \"network\": \"T-Mobile\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"eligible": true,
"currentCarrier": "T-Mobile",
"numberType": "Mobile",
"message": "Number is eligible for port-in"
}
}Numbers & Port-in
Check port-in eligibility
Check whether a number is eligible for port-in without submitting one —
read-only, no order created. An ineligible number is a 200 with
eligible: false, not an HTTP error. Only the SpenzaJ carrier
actually implements this check today; every other carrier (Simetry,
Soracom, EsimGo, CiscoJasper, Granite, Webbing, Boom) returns 501.
POST
/
api
/
v1.1
/
port-in
/
eligibility
Check port-in eligibility
curl --request POST \
--url https://api.spenza.com/api/v1.1/port-in/eligibility \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"portInNumber": "+15555551234",
"plan": "BIB009A",
"Operator": "SpenzaJ",
"network": "T-Mobile"
}
'import requests
url = "https://api.spenza.com/api/v1.1/port-in/eligibility"
payload = {
"portInNumber": "+15555551234",
"plan": "BIB009A",
"Operator": "SpenzaJ",
"network": "T-Mobile"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
portInNumber: '+15555551234',
plan: 'BIB009A',
Operator: 'SpenzaJ',
network: 'T-Mobile'
})
};
fetch('https://api.spenza.com/api/v1.1/port-in/eligibility', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spenza.com/api/v1.1/port-in/eligibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'portInNumber' => '+15555551234',
'plan' => 'BIB009A',
'Operator' => 'SpenzaJ',
'network' => 'T-Mobile'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spenza.com/api/v1.1/port-in/eligibility"
payload := strings.NewReader("{\n \"portInNumber\": \"+15555551234\",\n \"plan\": \"BIB009A\",\n \"Operator\": \"SpenzaJ\",\n \"network\": \"T-Mobile\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.spenza.com/api/v1.1/port-in/eligibility")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"portInNumber\": \"+15555551234\",\n \"plan\": \"BIB009A\",\n \"Operator\": \"SpenzaJ\",\n \"network\": \"T-Mobile\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/port-in/eligibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"portInNumber\": \"+15555551234\",\n \"plan\": \"BIB009A\",\n \"Operator\": \"SpenzaJ\",\n \"network\": \"T-Mobile\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"eligible": true,
"currentCarrier": "T-Mobile",
"numberType": "Mobile",
"message": "Number is eligible for port-in"
}
}Authorizations
Bearer token obtained from POST /api/v1.1/auth/token.
Body
application/json
E.164 format.
Example:
"+15555551234"
Plan/product name — operator+network derived from it. Takes precedence over Operator/network if both are sent.
Example:
"BIB009A"
Required when plan is absent.
Example:
"SpenzaJ"
Required when plan is absent.
Example:
"T-Mobile"
Response
Eligibility result.
⌘I

