OverviewPlatformsAPI ReferenceResources
Phone Numbers

Upload a porting document

POSThttps://zernio.com/api/v1/phone-numbers/port-in/documents

Upload ONE porting document and get back its documentId.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

multipart/form-data

What every request needs

filestring (binary)Required

The document (PDF/JPEG/PNG, 10MB max).

Optional parameters1 field
kindstring

'loa', 'invoice', or any short slug for requirement documents. Informational; used for the stored filename.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Where the id goes

  • Signed LOA / carrier invoice: the id goes to loaDocumentId / invoiceDocumentId.
  • Country-specific document requirement (international ports): it becomes that requirement's fieldValue. Requirement documents are normalized to PDF automatically (regulators reject raw images).

Limits

  • PDF, JPEG, or PNG, 10MB max.
  • Uploads must be attached to an order within 30 minutes or the carrier deletes them.
POST/v1/phone-numbers/port-in/documents
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.phonenumbers.uploadPhoneNumberPortInDocument();console.log(data);
{  "documentId": "string"}
OpenAPI specification
Was this page helpful?