Skip to main content

SIM Swap and Porting Checks Before a Payout or Password Reset

Check the number first: read porting, carrier and virtual flags from the phone check, then gate a payout with a $0.10 selfie login step-up. Didit documents step-ups for payout, bank and contact.

SIM Swap and Porting Checks Before a Payout or Password Reset

Contents

In this guide

Jump to the part you need.

Use this playbook when a phone number sits in front of money or credentials: a payout, a bank or phone change, or a password reset. Read the porting and line-type signals, then gate a payout, bank or contact action with a documented step-up. Password-reset handling is your application policy. Codes start at $0.02 plus the carrier's price, and a selfie login step-up is $0.10. The caveat: Didit returns a ported flag and carrier data, not a SIM swap verdict.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Signals you can read before a high-risk action, and what the docs and the price feed publish for them
QuestionDocumented signalWhere it comes fromWhat it costs
Has the number been ported?ported in the phone metadataCheck Phone Code response, or the no-code route described in the Score Phone Risk referenceAn OTP code from $0.02 plus the carrier price, for example $0.0473 for a US SMS. The docs we cite publish no standalone lookup price.
Is it a mobile, landline or VoIP line?carrier.type with values mobile, landline, voipsamesame
Is the line virtual or throwaway?is_virtual, is_disposablesamesame
Is the number already used on another account?DUPLICATED_PHONE_NUMBERworkflow phone risk actionpart of the check
Is the device new for this person?DUPLICATED_DEVICE, POSSIBLE_DUPLICATED_DEVICEDevice and IP analysis inside a session$0.03 per check
Is this really the account holder?step-up: selfie login, liveness or full IDDidit Authentication$0.10, $0.10, $0.33

Start free in the sandbox at business.didit.me, no sales call, and for developers connect Didit to an AI assistant through the Didit MCP server. The two surfaces this page uses are Phone Verification and Verified identity step-up. Every price is on the pricing page, and the per-country code table is on the phone price list.

The outcome, and the method we recommend

You want two answers in your own system before the money leaves or the password changes. First, what network the number is on and whether it moved. Second, a result from a check that just ran, showing the person in front of you is the account holder. Didit gives you both as separate calls with separate prices. It does not blend them into one risk score for you.

Run the layers in this order.

  • Layer 1, read the number. The standalone reference documents POST /v3/phone/risk/, which scores carrier, line type, porting and fraud risk without sending a code. The docs we cite do not publish a separate price for that call, so confirm it on the pricing page before you put it in a budget, and read the Score Phone Risk reference for its own request and response fields. When your flow already sends a one-time code, the check response returns the same metadata, including ported, at the code price.
  • Layer 2, prove the person. A step-up asks for a selfie login, liveness or a full ID check at the moment of the action, and your backend reads the result. Liveness and selfie login are $0.10 each, full ID $0.33.

Why not rely on the SMS code alone: a code proves control of the number at that second. After a swap, whoever holds the SIM receives the code and the check passes. The ported flag tells you the number carries porting data, and on its own that is weak. It means something next to the timing of the change, the device making the request and the action being attempted.

Treat porting as one input, never as a verdict. People port numbers when they change carrier, when they move country and when they replace a lost SIM. What matters is a port close in time to a payout, a device change or a contact change, and that combination is your policy, not ours.

Prerequisites

  • A Didit account and an API key, sent as the x-api-key header. Keys come from the Didit Business Console.
  • A phone number in E.164 format. /v3/phone/send/ answers HTTP 400 for anything else.
  • For codes: sending verification codes and SMS or WhatsApp messages is unlocked by a paid Growth or Scale plan or by your organization's first top-up. Lookups skip that first top-up requirement but still need enough credit to cover them.
  • For step-ups: Didit Authentication on your application, the person signed in with an access token, and your return_to URL registered as a redirect URL.
  • If you use the workflow route instead of the standalone API, a workflow with the PHONE feature added, and duplicated_phone_number_action, disposable_number_action and voip_number_action configured the way you want them.

Step by step

Phone verification flow diagram: collect the number, send a code, then check the code and read the phone metadata
The documented phone verification flow: collect the number, send a one-time code, then check it and read carrier, line-type and porting metadata.
  1. Normalize the number. Store and send E.164, for example +14155552671. A malformed number fails at the edge, before any risk logic runs.
  2. Choose the route. For a silent pre-check before a payout, the docs describe POST /v3/phone/risk/, which scores carrier, line type, porting and fraud risk without sending a one-time code; read Score Phone Risk for that call and confirm its price on the pricing page, because the docs we cite publish none for it. When the person must also receive something, or when you want the attempt on your verification record, use the send then check pair below.
  3. Send the code. The default code window is 5 minutes from the first send, and a same-window retry keeps that deadline.
curl -X POST 'https://verification.didit.me/v3/phone/send/' \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+14155552671",
"options": {
  "code_size": 6,
  "preferred_channel": "whatsapp",
  "locale": "en-US"
},
"vendor_data": "user-1234"
}'

Channels are whatsapp (the default), sms, telegram, voice and viber. Delivery falls back to SMS when the preferred channel is unavailable. SMS codes carry your app's sender name at no extra cost, set in the console or with options.sms_sender_name, which takes 1 to 30 characters.

  1. Check the code. Pass the verification_id from the send response so the check lands on that verification, and decide what a virtual line does.
curl -X POST 'https://verification.didit.me/v3/phone/check/' \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+14155552671",
"code": "123456",
"verification_id": "",
"voip_number_action": "DECLINE"
}'

Your application's verification.max_attempts setting defaults to 5 wrong code entries per standalone verification.

  1. Read the three values your rule needs. From the check response: ported, carrier.type (mobile, landline or voip), and is_virtual with is_disposable. In workflow mode the same run adds warnings such as DUPLICATED_PHONE_NUMBER, DISPOSABLE_NUMBER and VOIP_NUMBER.
  2. Write the rule down before you ship it. Starting points we would use, and that you should change for your market: ported plus a device the person has never used leads to a full ID step-up; a virtual or disposable line blocks a contact change; a duplicated number goes to review. These are our recommendations, not Didit product behaviour.
  3. Ask for the step-up immediately before the action. One call, with the person's access token.
curl --fail-with-body "${DIDIT_AUTH_ISSUER}/step-up/" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"action": "payout", "amount": "900.00", "currency": "USD", "return_to": "https://app.example.com/payouts/confirm"}'

action takes payout, bank or contact. A payout also applies the device rule. amount is required for a payout, with up to two decimals, and currency is an ISO 4217 code. The answer is 200 with required: false when no rule applies, or 201 with a verification_url that stays open for 30 minutes.

A phone showing a step-up that asks the person to confirm it is them with a selfie
What a person sees when a step-up asks for a selfie.
  1. Read the step-up on the backend. The person returns to return_to with the step-up id and a status in the query, and that query proves nothing. Call GET {issuer}/step-up/{step_up_id}/ with an access token of the same session and act only when status is approved.
  2. Record the decision, and report the outcome if your team wants the record. Store the warnings with the case, and the docs list a feedback call for reporting a fraud or a conversion against a phone verification.

What the response returns

Fields the supplied docs describe for a phone check response, and how to read each one
FieldWhat it tells youHow you use it
statusNot Started, In Progress, Approved, Declined, Failed, Expired or Not Found, Abandoned, Kyc ExpiredWhether the verification finished, and how
portedThe number carries porting dataCombine it with timing, device and the action being attempted. Never a verdict on its own
carrier.typemobile, landline or voipA fixed line that cannot take SMS is a different case from a mobile
is_virtualA VoIP or virtual numberBlock or escalate the action
is_disposableA temporary or throwaway numberBlock or escalate the action
warnings[]Risk codes for the phone featureRouted into your decision and your case

The integration prompt names the metadata as carrier, line type, disposable, voip and ported, and the risk signals table names the same values is_disposable, is_virtual and carrier.type. Read the canonical schema at the data models page for the exact field names in your response, and the full risk code list in the phone warnings catalogue. Treat this table as the check response. The no-code lookup has its own reference page, so read Score Phone Risk before you code against it.

Failure cases and recovery

What goes wrong, what you see, and what to do next
CaseWhat you seeRecovery
Number not in E.164HTTP 400 on /v3/phone/send/Fix the format and send again
Anti-abuse blockSend response status Blocked with reason spam, no code sent, no chargeMove the person to another channel or to review. Do not retry in a loop
Wrong codeCheck response status Failed, with attempts remainingRe-prompt for the code
Attempts exhaustedCheck response status Declined with the attempts warningThe verification ended. Start a new one or move to another factor
Code window closedExpired or Not Found after the 5-minute window, or no pending session for that numberRestart with a new send
Delivery failedOTP_DELIVERY_FAILEDMove to the next channel
Step-up not finishedpendingKeep the action blocked
Step-up out of timeexpired after 30 minutesCreate a new step-up
Step-up replacedsuperseded, another check took overCreate a new step-up
Verification unavailableNo approval comes backA step-up never fails open, so the action stays blocked by design

Inputs

Every field this playbook sends, with its rule
FieldCallRule
phone_numbersend, check, riskE.164, for example +14155552671
options.code_sizesend6 in the documented example
options.preferred_channelsendwhatsapp by default; sms, telegram, voice and viber also documented
options.localesendFor example en-US
options.sms_sender_namesend1 to 30 characters, signs that one code under another name
vendor_datasendYour own reference for the person
verification_idcheckFrom the send response, so the check lands on that verification
codecheckWhat the person typed
voip_number_actioncheckDECLINE in the documented example
actionstep-uppayout, bank or contact
amountstep-upRequired for payout, up to two decimals
currencystep-upISO 4217 code, defaults to the currency of your payout rule
return_tostep-upOne of your registered redirect URLs

A payout and a password reset need different rules

A payout is about money leaving. A password reset or a phone change is about who controls the account next, and the loss can be larger because the attacker keeps access. Same signals, different thresholds.

Starting thresholds we would use, not Didit defaults
ActionCheap check firstStep-upNote
Payout above your thresholdPhone check on the number on file, by code or by the no-code lookupaction: payout, default selfie loginThe device rule adds a check when the session device is new
Phone number changeRead the new number before you save itaction: contactThe documented default check for this rule is liveness
Password reset where SMS is the only factorNumber signals, and treat ported plus a new device as a stopApplication policy: the documented Didit step-up examples are payout, bank and contact, so a reset-specific decision is yoursAn SMS code sent to a swapped number reaches the attacker
Bank account added or changedAn account check against the holder nameaction: bank, default full IDThe account check route is documented separately

Worked cost example

An example on published list prices: 2,000 payouts a month, one US SMS verification code on the number on file before each payout, and 120 of those payouts landing on a selfie login step-up, which is 6%.

  • 2,000 US SMS codes at $0.0473 = $94.60 (carrier price plus Didit's $0.02 fee)
  • 120 selfie logins at $0.10 = $12.00
  • Total at list price = $106.60 a month

On Growth the Didit fee drops to $0.0192, so the same US SMS code is $0.0465: 2,000 x $0.0465 = $93.00, and 120 x $0.096 = $11.52, so $104.52. On Scale at a $0.018 fee the code is $0.0453: 2,000 x $0.0453 = $90.60, and 120 x $0.09 = $10.80, so $101.40. Only the Didit fee takes the plan discount, because the carrier part passes through at cost.

Channel choice moves the number too. A US WhatsApp code lists at $0.0431, so 2,000 of them cost $86.20 before any step-up. A code route does not simply fail on a fixed line: an eligible new SMS send to a number that cannot take SMS may be read out in a voice call instead, priced as a voice code, subject to the documented fixed-line conditions, while a lookup never sends a message; the no-code lookup is priced separately from the code, so check that price on the pricing page before you build a budget on it.

  • Billed on completion: each code at the carrier price plus Didit's $0.02 fee ($0.0192 on Growth and $0.018 on Scale, with the carrier part passed through at cost), and the step-up at the price of the check it runs, liveness $0.10, selfie login $0.10, full ID $0.33. The no-code lookup is a separate line whose price the supplied docs do not publish, so read it on the pricing page.
  • Free: sandbox testing is free and unlimited, and nothing is charged there. Plan credit and top-up rules are on the pricing docs page.
  • Not charged: an anti-abuse block that never sent a code.
  • Where review belongs: Didit returns signals and a step-up status. It does not decide your risk appetite, your thresholds, or whether a ported number is suspicious in your market. When a step-up lands in review, your team decides while the action stays blocked.
  • What Didit does not sell: a field called SIM swap. The documented output is carrier, line type, virtual and disposable flags, porting metadata and warning codes. Budget for writing the rule and owning its false positives.

Device signals are session-only. Device and IP analysis runs inside a verification session at $0.03 per check and lands under ip_analyses[] with warnings such as DUPLICATED_DEVICE and POSSIBLE_DUPLICATED_DEVICE. There is no standalone endpoint for it, so if you need a device signal on a payout, route that payout through a session or a step-up instead of inventing a separate call.

Sources

Next step: open the sandbox at business.didit.me, send one code to a test number and one step-up to a test user, then set the threshold you will actually defend. No sales call is needed to start.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I check a phone number for SIM swap risk before a payout?

Read the porting and line signals, then require a step-up. A phone check returns carrier, line type and porting data, at the code price of $0.02 plus the carrier, and the check response carries ported. Didit does not return a field named SIM swap, so your rule combines the porting flag with device and behaviour signals.

Does Didit have a SIM swap detection API?

Didit documents a phone risk API, POST /v3/phone/risk/, that scores carrier, line type, porting and fraud risk without sending an OTP, and a Phone Verification API whose check response returns ported, virtual and disposable metadata. Neither returns a vendor verdict called SIM swap. Verification codes are priced from $0.02 plus the carrier price, and the docs we cite publish no standalone price for the risk lookup.

Do I need to send an OTP to read the porting signal?

No. The documented risk route returns porting and line data without sending a message. The OTP route is still useful when you want proof that someone can receive a message on the number at that moment, and its check response includes the same metadata.

What does a ported phone number mean for fraud?

A ported number has moved between networks, which happens for ordinary reasons such as changing carrier or replacing a lost SIM. The ported flag indicates porting data on the line and should be combined with timing, device and action context. It matters when it sits next to a payout above your threshold, a new device or a contact change in a short window, and that combination is a rule you write.

Why is an SMS code not enough before a payout?

An SMS code proves that someone can receive a message on that number at that moment. After a swap, the attacker receives the message, so the code passes. A step-up with a selfie login, liveness or full ID proves the person, and those checks cost $0.10, $0.10 and $0.33.

How much does Didit phone verification cost?

Each verification code costs the carrier's price for the country and channel plus Didit's $0.02 fee, so a US SMS code lists at $0.0473 in total. On Growth the fee is $0.0192 and on Scale $0.018, and only the fee takes the plan discount. Step-ups cost $0.10 for liveness or selfie login and $0.33 for a full ID check.

Is there a published price for the phone risk lookup without an OTP?

The docs describe the endpoint, but the materials we cite publish no standalone price for it, so read the current price on the Didit pricing page before you budget. What is published is the code price, carrier plus Didit's $0.02 fee, and the step-up prices of $0.10 and $0.33.

Can a step-up be skipped when Didit is unavailable?

No. The documented behaviour is that a step-up never fails open, so when verification is unavailable the action stays blocked. Treat that as your outage plan and show the person a message instead of releasing the payout.

How do I block a password reset to a new phone number?

Read the new number before you save it. The documented contact step-up rule covers changing an email address or phone number, and its default check is liveness. A reset-specific flow is your application policy, so implement that decision in your own code. Your backend then reads GET {issuer}/step-up/{step_up_id}/ and continues only on approved.

What happens when an OTP expires or the code is wrong?

The default window is 5 minutes from the first send, and a same-window retry keeps that deadline. A wrong code returns status Failed with attempts remaining, up to verification.max_attempts, which defaults to 5. An expired attempt or no pending session returns Expired or Not Found, and you start again with a new send.

Can I test this without paying?

Yes. Sandbox testing is free and unlimited, and nothing is charged there. Sending real codes in production needs a paid plan or your organization's first top-up.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.