mv.ports
Requests to move phone numbers you hold at another provider to this platform. These methods are on mv.ports, where mv is your client (see the Node.js SDK). Each one returns the response object and throws when the API answers with an error.
cancel()
Section titled “cancel()”Cancel a port request. Withdraws a port that has not completed (cancellable; a rejected port can be closed this way too). A completed or already cancelled port answers 409. Cancel well before the port_date: once the carrier moved the numbers it can’t be undone here.
mv.ports.cancel(id: PortsCancelData["path"]["id"], options?: RequestOptions): Promise<PortsCancelResponse>POST /ports/{id}/cancel · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A porting order ID (port_…). |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options.headers["Idempotency-Key"] |
string |
no | A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”PortingOrder:
| Field | Type | Description |
|---|---|---|
object |
"porting_order" |
Always porting_order. |
id |
string |
A porting order ID (prefix port_). |
livemode |
boolean |
true in live mode, false in test mode. |
status |
"draft" | "submitted" | "in_review" | "submitted_to_carrier" | "docs_required" | "scheduled" | "completed" | "rejected" | … |
submitted (sent, waiting for our review) → in_review (our staff check the request and its documents) → submitted_to_carrier (waiting for the carrier’s date) → scheduled (port_date is set) → completed (the numbers are your phone numbers). Or docs_required (another document is needed: fix it in the app), rejected (rejection_reason) or cancelled. draft: created in the app and not sent yet. |
numbers |
string[] |
The numbers to move (E.164). |
current_carrier |
string | null |
The provider the numbers are with today. |
requested_date |
string | null |
The date you asked for (YYYY-MM-DD); the real date is the carrier’s (port_date). |
port_date |
string | null |
When the numbers move: set once the carrier scheduled it (scheduled). |
rejection_reason |
string | null |
Why the port was rejected (rejected only). |
documents |
object |
— |
estimate_business_days |
object | null |
How long such a port usually takes, in business days (an estimate, not a promise). |
cancellable |
boolean |
POST /v1/ports/{id}/cancel is still possible. |
source |
"app" | "api" |
Where it was filed: in the app (Phone numbers → Port your numbers) or through this API. |
timeline |
object[] |
Each change of status, oldest first. |
submitted_at |
string | null |
— |
completed_at |
string | null |
— |
created |
string |
An ISO-8601 timestamp in UTC. |
updated |
string |
An ISO-8601 timestamp in UTC. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const portingOrder = await mv.ports.cancel("port_7Hk2Lm9Qp");console.log(portingOrder);create()
Section titled “create()”Request a number port. Files a request to move phone numbers you hold at another Israeli provider to this platform, and sends it. Upload the signed letter of authorization (LOA) and the latest invoice first (POST /v1/files, purpose port_document) and pass their ids. Checked: Israeli fixed-line, 07x or mobile numbers (at most 50), none already on the platform or in another open port, the holder’s ID or company number, both documents, and at most 20 ports in progress per organization. Our staff review it, send it to the carrier and confirm the date; follow it with GET /v1/ports/{id} or the number.port_updated event. Once completed the numbers are your phone numbers (number.port_completed per number) and their monthly fee starts. Needs a live key.
mv.ports.create(body: PortsCreateData["body"], options?: RequestOptions): Promise<PortsCreateResponse>POST /ports · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
body.numbers |
string[] |
yes | The Israeli numbers to move, E.164 (+9723…) or national (03…): fixed-line, 07x VoIP or mobile, at most 50. Toll-free, shared-cost and premium (1-800, 1-700 …) and foreign numbers can’t be ported. |
body.current_carrier |
string |
yes | The provider the numbers are with today: one of bezeq, partner, cellcom, pelephone, hot, golan, 019, rami_levy, bezeq_international, xphone, voicenter, or its name. |
body.account_holder |
object |
yes | Who holds the account at the current provider: the name, and the ID or company number it is registered to. |
body.loa_file_id |
string |
yes | The signed letter of authorization (LOA): a file uploaded with POST /v1/files, purpose port_document. |
body.invoice_file_id |
string |
yes | The latest invoice from the current provider (at most 30 days old): a file uploaded with POST /v1/files, purpose port_document. |
body.account_number |
string |
no | The account or customer number at the current provider (helps the carrier match the request). |
body.billing_address |
object |
no | The account’s billing address at the current provider, as on the invoice. |
body.requested_date |
string |
no | The date you would like the numbers to move (from today on). The carrier sets the real date. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options.headers["Idempotency-Key"] |
string |
no | A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”PortingOrder:
| Field | Type | Description |
|---|---|---|
object |
"porting_order" |
Always porting_order. |
id |
string |
A porting order ID (prefix port_). |
livemode |
boolean |
true in live mode, false in test mode. |
status |
"draft" | "submitted" | "in_review" | "submitted_to_carrier" | "docs_required" | "scheduled" | "completed" | "rejected" | … |
submitted (sent, waiting for our review) → in_review (our staff check the request and its documents) → submitted_to_carrier (waiting for the carrier’s date) → scheduled (port_date is set) → completed (the numbers are your phone numbers). Or docs_required (another document is needed: fix it in the app), rejected (rejection_reason) or cancelled. draft: created in the app and not sent yet. |
numbers |
string[] |
The numbers to move (E.164). |
current_carrier |
string | null |
The provider the numbers are with today. |
requested_date |
string | null |
The date you asked for (YYYY-MM-DD); the real date is the carrier’s (port_date). |
port_date |
string | null |
When the numbers move: set once the carrier scheduled it (scheduled). |
rejection_reason |
string | null |
Why the port was rejected (rejected only). |
documents |
object |
— |
estimate_business_days |
object | null |
How long such a port usually takes, in business days (an estimate, not a promise). |
cancellable |
boolean |
POST /v1/ports/{id}/cancel is still possible. |
source |
"app" | "api" |
Where it was filed: in the app (Phone numbers → Port your numbers) or through this API. |
timeline |
object[] |
Each change of status, oldest first. |
submitted_at |
string | null |
— |
completed_at |
string | null |
— |
created |
string |
An ISO-8601 timestamp in UTC. |
updated |
string |
An ISO-8601 timestamp in UTC. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const portingOrder = await mv.ports.create({ account_holder: { company_id: "514000013", name: "Acme Ltd", }, account_number: "ACC-778899", billing_address: { city: "Tel Aviv", line1: "12 Herzl St", postal_code: "6100001", }, current_carrier: "bezeq", invoice_file_id: "file_8YhD1fK6pQr3VbNx2SmTa", loa_file_id: "file_3NcP7sQ2wLm9TzXb4RkVu", numbers: [ "+97235550100", "0775556789", ], requested_date: "2026-12-01",});console.log(portingOrder);list()
Section titled “list()”List port requests. Your requests to move phone numbers to this platform, newest first, whether filed in the app or through this API. Filter by status. Needs a live key.
mv.ports.list(query?: NonNullable<PortsListData["query"]>, options?: RequestOptions): PagedList<PortsListResponse["data"][number], NonNullable<PortsListData["query"]>>GET /ports · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
query.limit |
integer |
no | How many objects to return, 1–100 (default 20). |
query.starting_after |
string |
no | A cursor (next_cursor) or object ID: return the objects after it (older). |
query.ending_before |
string |
no | A cursor or object ID: return the objects before it (newer). |
query.status |
string |
no | Only ports in this status. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”A PagedList: await it for the first page, for await it for every item.
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
for await (const port of mv.ports.list()) { console.log(port);}retrieve()
Section titled “retrieve()”Retrieve a port request. One port request, with its status, the date once scheduled and its timeline.
mv.ports.retrieve(id: PortsRetrieveData["path"]["id"], options?: RequestOptions): Promise<PortsRetrieveResponse>GET /ports/{id} · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A porting order ID (port_…). |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”PortingOrder:
| Field | Type | Description |
|---|---|---|
object |
"porting_order" |
Always porting_order. |
id |
string |
A porting order ID (prefix port_). |
livemode |
boolean |
true in live mode, false in test mode. |
status |
"draft" | "submitted" | "in_review" | "submitted_to_carrier" | "docs_required" | "scheduled" | "completed" | "rejected" | … |
submitted (sent, waiting for our review) → in_review (our staff check the request and its documents) → submitted_to_carrier (waiting for the carrier’s date) → scheduled (port_date is set) → completed (the numbers are your phone numbers). Or docs_required (another document is needed: fix it in the app), rejected (rejection_reason) or cancelled. draft: created in the app and not sent yet. |
numbers |
string[] |
The numbers to move (E.164). |
current_carrier |
string | null |
The provider the numbers are with today. |
requested_date |
string | null |
The date you asked for (YYYY-MM-DD); the real date is the carrier’s (port_date). |
port_date |
string | null |
When the numbers move: set once the carrier scheduled it (scheduled). |
rejection_reason |
string | null |
Why the port was rejected (rejected only). |
documents |
object |
— |
estimate_business_days |
object | null |
How long such a port usually takes, in business days (an estimate, not a promise). |
cancellable |
boolean |
POST /v1/ports/{id}/cancel is still possible. |
source |
"app" | "api" |
Where it was filed: in the app (Phone numbers → Port your numbers) or through this API. |
timeline |
object[] |
Each change of status, oldest first. |
submitted_at |
string | null |
— |
completed_at |
string | null |
— |
created |
string |
An ISO-8601 timestamp in UTC. |
updated |
string |
An ISO-8601 timestamp in UTC. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const portingOrder = await mv.ports.retrieve("port_7Hk2Lm9Qp");console.log(portingOrder);