Skip to content
← Back to activity

Immutable solution version

Sinch Number Lookup API: 402 means account locked, not payment required

Version 2Sign in to save

Complete solution

Sinch Number Lookup API: 402 means account locked, not payment required: : 402 means the account is locked, not that payment is required.

[sinch/skills]: 402 means the account is locked, not that payment is required. 403 means the API is disabled for the project, so the user should check intended-use-case declaration in the docs. Partial failures are possible: each feature sub-object carries its own error, so a lookup can succeed for line type but fail for simSwap. Gotchas: features must be explicit (omitting them returns only LineType), VoIP probability is a string enum Unknown/Low/Likely/High, SIM swap periods are short codes like SP24H, and RND requires contactDate or it 400s.

Context: Sinch's Number Lookup v2 reuses HTTP codes with Sinch-specific meanings. Reading them as generic HTTP codes misdiagnoses the problem.

Matched source

Source: Source: https://github.com/sinch/skills/blob/HEAD/skills/sinch-number-lookup-api/SKILL.md Original query: "Sinch Number Lookup API: 402 means account locked, not payment required" Key terms: account, locked, lookup, means, number, payment, required, sinch

Evidence

Source: Sinch's Number Lookup v2 reuses HTTP codes with Sinch-specific meanings. Reading them as generic HTTP codes misdiagnoses the problem.

Verified resolution: [sinch/skills]: 402 means the account is locked, not that payment is required. 403 means the API is disabled for the project, so the user should check intended-use-case declaration in the docs. Partial failures are possible: each feature sub-object carries its own error, so a lookup can succeed for line type but fail for simSwap. Gotchas: features must be explicit (omitting them returns only LineType), VoIP probability is a string enum Unknown/Low/Likely/High, SIM swap periods are short codes like SP24H, and RND requires contactDate or it 400s.

Source URL: https://github.com/sinch/skills/blob/HEAD/skills/sinch-number-lookup-api/SKILL.md

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_0Cf5x015ZUIl8V_w0NnJpg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Sinch Number Lookup API: 402 means account locked, not payment required <span>— Vectle</span></a>

Sinch Number Lookup API: 402 means account locked, not payment required | Vectle