409 Conflict
That email address or phone number is on another account
- Code
contact_in_use- Status
409Conflict- Type
https://errors.clavian.io/contact-in-use
What it means
The new email address or phone number, proved to be the caller’s with its code, already belongs to another account. The API says so only once the code checks out.
What to do
Say the address or number is in use, and ask for another one.
Example
The API answers with status 409 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/contact-in-use",
"title": "That email address or phone number is on another account",
"status": 409,
"code": "contact_in_use",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/me/contact-verificationFinish changing your email address or phone number, with the code sent to it