Firsty

Search...

Search...

Porting

List all port-ins

Returns a paginated list of the port-ins of all your eSIMs, newest first.

get/port-ins

Authorization

Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works

Query parameters

statusarray of PortInStatus

Comma-separated port-in statuses: only port-ins in one of them. Omit for every status.

Examplesrequestedapprovedcancellingcompletedrejectedfailedcancelled
abandonedboolean

false for only the port-ins not abandoned, true for only the abandoned ones. Omit for both.

limitinteger

Maximum number of items to return (1-100)

Default20
cursorstring

Cursor for the next page. Pass the nextCursor value from a previous response.

Responses

200Your port-insapplication/json
Show response body
dataarray of PortIn

Port-ins, newest first

Show properties
portInRequestReferencestring

Port-in request reference

profileReferencestring
esimReferencestring

The eSIM this port-in belongs to

msisdnstring

The number being ported, in international format (E.164 without a leading +)

detailsone of Donor SIM or account | Account or SMS code

Donor details of the number to port. Their shape is the one the selected eSIM's variant takes: proof by the donor SIM, or by the customer's account number with SMS confirmation without one. Unknown fields are rejected.

Show properties
Donor SIM or accountobjectoptional

Donor details proven by the donor SIM or the account. A prepaid contract takes donorIccid and/or donorSimNumber; a postpaid contract any of donorIccid, donorSimNumber and donorAccountNumber; a business contract donorAccountNumber only.

Show properties
donorContractTypestring

Contract type of the number at the donor operator

Optionsprepaidpostpaidbusiness
donorIccidstringoptional

ICCID of the donor SIM card, with a valid check digit. The preferred proof of a donor SIM: most donor operators accept it.

donorSimNumberstringoptional

The number printed on the donor SIM card. Send it only when the donor SIM's ICCID is not available; donorIccid is accepted by more donor operators.

donorAccountNumberstringoptional

Account/customer number at the donor operator

Account or SMS codeobjectoptional

Donor details proven by the account, or by SMS without one. A postpaid contract requires donorAccountNumber and donorContractAction; a prepaid one refuses donorContractAction. Without donorAccountNumber, the customer confirms the port-in with a code sent by SMS to the number being ported. The request stays requested until they do; an unconfirmed code expires after 24 hours and the port-in is rejected.

Show properties
donorContractTypestring

Contract type of the number at the donor operator

Optionsprepaidpostpaid
donorAccountNumberstringoptional

Customer number at the donor operator

donorContractActionstringoptional

Extensible enum. What happens to the customer's contract at the donor operator. Required for a postpaid contract and refused for a prepaid one, which has no contract to end or keep. terminate_at_expiry ends it where it can end; the donor may refuse the port while a commitment period runs. terminate_early ends it even during a commitment period, which may cost the customer an early-termination fee at the donor. keep_with_new_number keeps the contract running at the donor under a new number.

Examplesterminate_at_expiryterminate_earlykeep_with_new_number
statusstring

Extensible enum.

  • requested: Accepted by Firsty; submission to the network in progress
  • approved: The donor accepted the port; scheduledAt is the earliest moment the number can move, once known, which can be days ahead. When that moment has already passed, the number moves right after the approval. The port finishes at completed
  • cancelling: Cancellation requested, awaiting the network's confirmation
  • completed: The donor released the number and it is assigned to this SIM
  • rejected: Donor rejected the request (see reason); submit a corrected request or abandon (see the Porting workflow). A rejection the customer can still correct may keep the request requested until it is final
  • failed: Port failed (see reason); submit a corrected request or abandon (see the Porting workflow)
  • cancelled: Cancellation confirmed; submit a corrected request or abandon (see the Porting workflow)
Examplesrequestedapprovedcancellingcompletedrejectedfailedcancelled
reasonobjectoptional

Why the port-in was rejected or failed. Present when status is rejected or failed, and on a requested port-in the donor has rejected for a reason the customer can still correct

Show properties
codestring

Normalized cause of the rejection or failure, the same in every country. provider_failure covers every cause without a more specific code. The list of values is open-ended; new values may be added

Examplesmsisdn_sim_mismatchmsisdn_account_mismatchdonor_contract_type_mismatchnumber_not_activenumber_not_portablenumber_porting_in_progresscontract_commitmentprovider_failure
messagestring | null

Human-readable detail of the cause for support; free-form, not intended to be parsed. Null when there is none

scheduledAtstring | null · date-time

The moment the number moves to this SIM. At approval it is the earliest moment the donor agreed to, and a reschedule replaces it with the moment you chose; null until known. When it has already passed at the approval, the number moves right after. It may move until the port completes

submittedAtstring | null · date-time

When the port-in was submitted to the network; null while submission is still pending, and for a port-in whose request was not accepted

completedAtstring | null · date-time

When the number moved to this SIM

abandonedboolean

Whether porting was abandoned in favour of the temporary number (irreversible; no corrected request possible)

createdAtstring · date-time
updatedAtstring · date-time
paginationobject
Show properties
limitinteger

Maximum items per page

hasMoreboolean

Whether there are more items after this page

nextCursorstring | null

Cursor for the next page. Null when there are no more results.

400Bad request - invalid parameters