Set API_ORIGIN, SUBSCRIBER_ACCESS_TOKEN and the path variables listed in each program. Edit illustrative request bodies or use REQUEST_BODY_FILE. Optional QUERY_JSON sets the documented query filters. CSV transfers use RECIPIENT_EMAIL and CSV_FILE.
JavaScript: node FILE.mjs · Python: python3 FILE.py · Ruby: ruby FILE.rb. Rust: place Cargo.toml and Cargo.lock in a project with downloaded Rust files under src/bin, then run cargo run --locked --bin NAME.
Programs make one real request to your chosen host. They do not automatically retry. Read the manual before purchases or carrier actions.
| Endpoint | JavaScript | Python | Rust | Ruby |
|---|---|---|---|---|
List available plansGET /subscriber/plan | JavaScript | Python | Rust | Ruby |
Get a planGET /subscriber/plan/{planId} | JavaScript | Python | Rust | Ruby |
List plan prices and durationsGET /subscriber/plan_pricing | JavaScript | Python | Rust | Ruby |
Get a plan priceGET /subscriber/plan_pricing/{planPricingId} | JavaScript | Python | Rust | Ruby |
List your SIMsGET /subscriber/sim | JavaScript | Python | Rust | Ruby |
Search SIMs using JSON filtersPOST /subscriber/sim | JavaScript | Python | Rust | Ruby |
List recovery recordsGET /subscriber/sim/recovery | JavaScript | Python | Rust | Ruby |
List outgoing transfersGET /subscriber/sim/transfer/out | JavaScript | Python | Rust | Ruby |
List incoming transfersGET /subscriber/sim/transfer/in | JavaScript | Python | Rust | Ruby |
Send SIM transfer requests by CSVPOST /subscriber/sim/bulk/transfer | JavaScript | Python | Rust | Ruby |
Accept, reject or cancel transfersPATCH /subscriber/sim/transfer | JavaScript | Python | Rust | Ruby |
Get your SIM detailsGET /subscriber/sim/{simId} | JavaScript | Python | Rust | Ruby |
List add-on activations on a SIMGET /subscriber/sim/{simId}/add-on_plan_activations | JavaScript | Python | Rust | Ruby |
Purchase SIMs with plansPOST /subscriber/sim/purchase | JavaScript | Python | Rust | Ruby |
Quote SIM and plan purchasePOST /subscriber/sim/purchase/price | JavaScript | Python | Rust | Ruby |
Quote SIM cards without a plan purchasePOST /subscriber/sim/purchase/sim/price | JavaScript | Python | Rust | Ruby |
Assign a SIM by phone numberPOST /subscriber/sim/{mdn}/assign | JavaScript | Python | Rust | Ruby |
Assign a SIM by ESNPOST /subscriber/sim/esn/{esn}/assign | JavaScript | Python | Rust | Ruby |
Assign multiple SIMsPOST /subscriber/sim/assign | JavaScript | Python | Rust | Ruby |
Activate a SIM with a planPOST /subscriber/sim/{simId}/activate | JavaScript | Python | Rust | Ruby |
Retry activation of a paid SIMPOST /subscriber/sim/{simId}/reactivate | JavaScript | Python | Rust | Ruby |
Reconnect a disconnected SIMPOST /subscriber/sim/{simId}/reconnect | JavaScript | Python | Rust | Ruby |
Purchase add-ons directly for a SIMPOST /subscriber/sim/{mdnOrEsn}/addons/purchase | JavaScript | Python | Rust | Ruby |
Quote renewal, plan change or reconnectPOST /subscriber/sim/price | JavaScript | Python | Rust | Ruby |
Submit bulk renewalsPOST /subscriber/sim/bulk/renew | JavaScript | Python | Rust | Ruby |
Quote bulk renewalsPOST /subscriber/sim/bulk/renew/price | JavaScript | Python | Rust | Ruby |
Submit bulk refreshesPOST /subscriber/sim/bulk/refresh | JavaScript | Python | Rust | Ruby |
Quote bulk refreshesPOST /subscriber/sim/bulk/refresh/price | JavaScript | Python | Rust | Ruby |
Refresh a SIM number or cardPOST /subscriber/sim/{simId}/refresh | JavaScript | Python | Rust | Ruby |
Activate a replacement refresh SIMPOST /subscriber/sim/{simId}/refresh/esn/activate | JavaScript | Python | Rust | Ruby |
Quote a SIM refreshPOST /subscriber/sim/{simId}/refresh/price | JavaScript | Python | Rust | Ruby |
Check recovery eligibilityGET /subscriber/sim/check_recoverability/{simId} | JavaScript | Python | Rust | Ruby |
Purchase SIM recoveryPOST /subscriber/sim/{simId}/recovery/purchase | JavaScript | Python | Rust | Ruby |
Quote SIM recoveryPOST /subscriber/sim/{simId}/recovery/purchase/price | JavaScript | Python | Rust | Ruby |
Recover using an existing owned SIMPOST /subscriber/sim/{simId}/recovery/esn | JavaScript | Python | Rust | Ruby |
Activate the replacement recovery SIMPOST /subscriber/sim/{simId}/recovery/esn/activate | JavaScript | Python | Rust | Ruby |
Retry an eligible recovery recordPOST /subscriber/sim/recovery/retry | JavaScript | Python | Rust | Ruby |
Check SIM status with a device IMEIPOST /subscriber/sim/{simId}/check-sim-status | JavaScript | Python | Rust | Ruby |
Check bulk action eligibilityPOST /subscriber/sim/bulk/check/eligibility | JavaScript | Python | Rust | Ruby |
Quote a bulk actionPOST /subscriber/sim/bulk/price | JavaScript | Python | Rust | Ruby |
Purchase a bulk actionPOST /subscriber/sim/bulk/purchase | JavaScript | Python | Rust | Ruby |
Find eligible pricing for bulk actionsPOST /subscriber/sim/bulk/plan_pricings | JavaScript | Python | Rust | Ruby |
Get the SIM current planGET /subscriber/sim/{simId}/plan | JavaScript | Python | Rust | Ruby |
Enable automatic renewalPOST /subscriber/sim/{simId}/plan/auto_renew/enable | JavaScript | Python | Rust | Ruby |
Disable automatic renewalPOST /subscriber/sim/{simId}/plan/auto_renew/disable | JavaScript | Python | Rust | Ruby |
Enable automatic add-on extensionPOST /subscriber/sim/{simId}/plan/auto_extend/enable | JavaScript | Python | Rust | Ruby |
Disable automatic add-on extensionPOST /subscriber/sim/{simId}/plan/auto_extend/disable | JavaScript | Python | Rust | Ruby |
Renew a SIM planPOST /subscriber/sim/{simId}/plan/renew | JavaScript | Python | Rust | Ruby |
Change a SIM planPOST /subscriber/sim/{simId}/plan/change | JavaScript | Python | Rust | Ruby |
List your purchased add-onsGET /subscriber/add-on_plans | JavaScript | Python | Rust | Ruby |
Get a purchased add-onGET /subscriber/add-on_plans/{subscriberAddOnPlanId} | JavaScript | Python | Rust | Ruby |
Purchase add-ons for your accountPOST /subscriber/add-on_plans/purchase | JavaScript | Python | Rust | Ruby |
Quote an add-on purchasePOST /subscriber/add-on_plans/purchase/price | JavaScript | Python | Rust | Ruby |
Quote changing an owned add-onPOST /subscriber/add-on_plans/change/price | JavaScript | Python | Rust | Ruby |
Change an owned add-onPOST /subscriber/add-on_plans/change | JavaScript | Python | Rust | Ruby |
Activate an owned add-on on a SIMPOST /subscriber/add-on_plans/activate | JavaScript | Python | Rust | Ruby |
Purchase a replacement SIMPOST /subscriber/sim/{simId}/reorder/purchase | JavaScript | Python | Rust | Ruby |
Quote a replacement SIMPOST /subscriber/sim/{simId}/reorder/purchase/price | JavaScript | Python | Rust | Ruby |
Purchase a physical SIM or eSIM switchPOST /subscriber/sim/{simId}/sim_source/change/purchase | JavaScript | Python | Rust | Ruby |
Quote a physical SIM or eSIM switchPOST /subscriber/sim/{simId}/sim_source/change/purchase/price | JavaScript | Python | Rust | Ruby |