Update Port-Out PIN
Sets the port-out PIN on one or more DIDs on your account. Your current carrier asks for this PIN before it will release a number to another carrier.
Endpoint:
Request parameters:
key
string
Yes
Your API key.
Must be a valid, active API key.
pin
string
Yes
The new port-out PIN to set on every DID in the request.
Numbers only, 4–6 digits. Keep leading zeros (e.g. 0482).
dids
string
Yes
The DIDs to update, as a comma-separated list of DID IDs.
Each value must be a numeric DID ID owned by your account or one of its sub-accounts. Duplicates and non-numeric values are ignored.
Response fields :
status
string
ok if the request was processed, error if it was rejected.
results
array
One entry per DID, returned when status is ok.
results[].did
string
The phone number, or the DID ID if the number wasn't found.
results[].status
string
ok or error for this DID.
results[].message
string
PIN updated, DID not found, Not owned, or Failed to update.
error
string
Why the request was rejected. Only present when status is error.
curl -X POST https://v1.api19.com/lnp/portability/update-pin \
-d "pin=1234" \
-d "dids=1234,12314" \
-d 'key=your-key'Example response: all updated
{
"status": "ok",
"results": [
{"did": "3055550101", "status": "ok", "message": "PIN updated" },
{ "did": "3055550102", "status": "ok", "message": "PIN updated" },
{ "did": "3055550147", "status": "ok", "message": "PIN updated" }
]
}Example response: partly updated
{
"status": "ok",
"results": [
{ "did": "3055550101", "status": "ok", "message": "PIN updated" },
{ "did": "99999", "status": "error", "message": "DID not found" },
{ "did": "7865550188", "status": "error", "message": "Not owned" }
]
}Error messages:
pin and dids are required
pin or dids is missing or empty.
PIN must be 4 to 6 digits
pin isn't 4–6 digits.
Invalid dids
None of the values in dids is a valid numeric ID.
Missing PIN
The PIN was empty when it reached the routing service.
No numbers selected
No DID IDs reached the routing service.
Unexpected error
The routing service didn't return a valid response.
Last updated