When a Phone Number Changes Hands

Mobile carriers give old phone numbers to new customers. When a new person registers with a number that used to belong to someone else on INVO, INVO keeps the two people apart: the new holder gets their own wallet, and the previous owner keeps theirs and the money that was sent to them. This page explains what your integration may see and what to show the player.

Do I need to change anything?

No. The status codes and error codes are the ones you already handle. Three responses gain additive fields that let you show a clearer message. An integration that ignores them keeps working, and INVO's own messages in those responses already explain the situation to the player.

What INVO does

  • • Notices a number that has probably changed hands. When a new email registers with a phone number already on INVO, INVO normally asks the number's owner to approve sharing it (409 PHONE_SHARE_APPROVAL_REQUIRED). When everyone the number belongs to on INVO has stopped using it, the confirmation goes to the phone itself instead, as a text that asks only the person who just registered to confirm. Anyone else holding the phone is told to ignore it.
  • • Gives the new holder their own wallet. That confirmation moves the number to a new wallet for the new email. The new holder never joins the previous owner's wallet and never sees its balance or history.
  • • Falls back to a text when an email goes unanswered. If INVO emailed the number's owner for approval and nobody answered, the ordinary share request goes to the phone by text. That text only ever shares the number; it never moves it to a new wallet.
  • • Keeps the previous owner's money with them. Money sent to the number before it changed hands can be collected only by the previous owner. If they never collect it, it goes back to the sender when it expires, as any uncollected transfer does.
  • • Protects the previous owner in the INVO app. If someone signs in to the INVO app with the number and lands on an inactive wallet, the wallet stays closed until its owner confirms with a code sent to the wallet's email. The previous owner is told by email.

1. Registering a player: the phone-share 409

Where you already get 409 PHONE_SHARE_APPROVAL_REQUIRED (registering or minting a token for a player, changing a player's phone, initiating a send or transfer to a new email), the body may carry these new fields:

FieldMeaning
number_possibly_reassignedPresent and true when INVO thinks the number has a new owner. Absent otherwise.
takeover_reasonPresent with it: "holder_inactive" (the people the number belongs to on INVO have not used it for a long time). Treat any other value the same way.
consent_email_unansweredPresent and true when an approval request INVO emailed to the number's owner went unanswered, so the ordinary share request went to the phone by text instead. This is not a change of owner: approving it shares the number, as any phone-share approval does.
409 PHONE_SHARE_APPROVAL_REQUIRED (excerpt)
{
  "status": "error",
  "error_code": "PHONE_SHARE_APPROVAL_REQUIRED",
  "phone_last4": "4567",
  "approval_id": "a1b2c3...",
  "consent_channel": "sms",
  "number_possibly_reassigned": true,
  "takeover_reason": "holder_inactive"
}

What to show the player when number_possibly_reassigned is true: the confirmation goes to the phone itself, by text message (consent_channel: "sms"), and asks the person who just registered to confirm. For example:

"We sent a text to your phone ending in 4567. If this is your number now, reply YES from that phone, then come back here."

When consent_email_unanswered is true, show what you show today for a phone-share request sent by text: the number's owner has been asked by text to approve sharing it.

What to do: the same as for any phone-share 409. Keep the request, and retry the same call once the phone has confirmed (poll the approval status as you do today). The retry then succeeds for the new email, with a wallet of its own.

2. Collecting money: number_reassigned

When the new holder of a number tries to collect money that was sent to that number before it changed hands, the collect answers 409 with the usual PHONE_SHARE_APPROVAL_REQUIRED body shape and number_reassigned: true. Nothing was moved, and no approval was requested.

409 on a claim or collect
{
  "status": "error",
  "error_code": "PHONE_SHARE_APPROVAL_REQUIRED",
  "message": "This transfer was sent to this phone number before the number moved to a new account, so it can't be collected here. If the person it was meant for doesn't collect it, it returns to the sender when it expires.",
  "phone_last4": "4567",
  "approval_id": null,
  "code_sent": false,
  "retry_after_approval": false,
  "number_reassigned": true
}

What to show the player: message as it is. It explains that the money was meant for the number's previous owner.

What to do: stop. Do not retry and do not wait for an approval: none was asked for, and retrying will not change the answer. Remove the item from the player's list of things to collect. Money sent to the number after it changed hands is collected normally by its new holder.

3. INVO app sessions: DEVICE_REQUIRES_ELEVATION

This applies only to calls made with an INVO wallet session (the INVO app). Player tokens your server mints for your game are not affected. When the phone used to sign in may belong to a new owner, wallet routes answer the existing 403 DEVICE_REQUIRES_ELEVATION with number_possibly_reassigned: true:

403
{
  "error": "device_requires_elevation",
  "code": "DEVICE_REQUIRES_ELEVATION",
  "message": "Confirm it is you with the code we email to the address on this wallet before it can be opened on this phone.",
  "number_possibly_reassigned": true
}

What to do: what you already do for this code. Show message; the wallet's owner confirms with the emailed code and the device is cleared. Someone who cannot receive that email is not the wallet's owner: they should register their own account with the number in a game or platform, which takes them through step 1.

Checklist

You seeShowThen
409 PHONE_SHARE_APPROVAL_REQUIRED with number_possibly_reassigned: true"Confirm from your phone"Retry the same call after the phone confirms.
409 PHONE_SHARE_APPROVAL_REQUIRED with consent_email_unanswered: trueYour usual phone-share messageRetry the same call after the owner approves.
409 PHONE_SHARE_APPROVAL_REQUIRED with number_reassigned: truemessageStop. Never retry.
403 DEVICE_REQUIRES_ELEVATION with number_possibly_reassigned: truemessageEmail code confirmation, as for any elevation.

Related