# Request a number port

`POST https://api.morevoice.ai/v1/ports`

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.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `ports_create`.

## Parameters

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |
| `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. |

## Request body

Required, `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `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. |
| `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. |
| `account_holder` | `object` | yes | Who holds the account at the current provider: the name, and the ID or company number it is registered to. |
| `account_holder.name` | `string` | yes | The account holder's name exactly as the current provider has it. |
| `account_holder.company_id` | `string` | no | A company's registration number (ח.פ.). Send this or `id_number`. |
| `account_holder.id_number` | `string` | no | A person's ID number (teudat zehut). Send this or `company_id`. |
| `loa_file_id` | `string` | yes | The signed letter of authorization (LOA): a file uploaded with POST /v1/files, purpose `port_document`. |
| `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`. |
| `account_number` | `string` | no | The account or customer number at the current provider (helps the carrier match the request). |
| `billing_address` | `object` | no | The account's billing address at the current provider, as on the invoice. |
| `billing_address.line1` | `string` | yes | — |
| `billing_address.city` | `string` | yes | — |
| `billing_address.line2` | `string` | no | — |
| `billing_address.postal_code` | `string` | no | — |
| `requested_date` | `string` | no | The date you would like the numbers to move (from today on). The carrier sets the real date. |

Example:

```json
{
  "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"
}
```

## Responses

### 201 Created

Created: the port, sent (`submitted`). Returns `PortingOrder`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"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` | — |
| `documents.loa` | `boolean` | The signed letter of authorization is on file. |
| `documents.invoice` | `boolean` | The latest invoice from the current provider is on file. |
| `estimate_business_days` | `object \| null` | How long such a port usually takes, in business days (an estimate, not a promise). |
| `estimate_business_days.min` | `integer` | — |
| `estimate_business_days.max` | `integer` | — |
| `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:

```json
{
  "cancellable": true,
  "completed_at": null,
  "created": "2026-11-23T09:00:00.000Z",
  "current_carrier": "Bezeq",
  "documents": {
    "invoice": true,
    "loa": true
  },
  "estimate_business_days": {
    "max": 10,
    "min": 7
  },
  "id": "port_4KqLm8XzT2vR9bYc1NdWe",
  "livemode": true,
  "numbers": [
    "+97235550100",
    "+972775556789"
  ],
  "object": "porting_order",
  "port_date": null,
  "rejection_reason": null,
  "requested_date": "2026-12-01",
  "source": "api",
  "status": "in_review",
  "submitted_at": "2026-11-23T09:00:00.000Z",
  "timeline": [
    {
      "at": "2026-11-23T09:00:00.000Z",
      "note": null,
      "status": "submitted"
    },
    {
      "at": "2026-11-23T11:20:00.000Z",
      "note": null,
      "status": "in_review"
    }
  ],
  "updated": "2026-11-23T11:20:00.000Z"
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 409 Conflict

The request conflicts with the object's state, or the Idempotency-Key was reused with other parameters. Returns `ErrorEnvelope`.

### 413 Payload Too Large

The request body is larger than the endpoint accepts, or has more parts or files than it takes. Returns `ErrorEnvelope`.

### 415 Unsupported Media Type

The request body's Content-Type is not one the endpoint takes. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
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);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

porting_order = client.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",
})
print(porting_order)
```

**cURL**

```sh
curl -X POST https://api.morevoice.ai/v1/ports \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "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"
}'
```
