400 Bad Request
This phone number cannot be used
- Code
phone_number_refused- Status
400Bad Request- Type
https://errors.clavian.io/phone-number-refused
What it means
The phone number is well formed, but it is of a kind the Platform does not send codes to, such as a premium-rate number.
What to do
Ask the person for another number. The same number is refused every time.
Example
The API answers with status 400 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/phone-number-refused",
"title": "This phone number cannot be used",
"status": 400,
"code": "phone_number_refused",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
PATCH /v1/meChange your own profile: marketing, and your email address or phone numberPOST /v1/station/sign-in/phone/codeSend a sign-in code to a phone, from a kiosk