API - Description - SMS Phone Confirmation - Response

Support DQE
Support DQE
  • Updated

GDPR_MSG request success

The JSON response contains the SMS delivery status and verification metadata.

Key Description Format
status SMS delivery status. STRING
timeout Validity duration of the code in minutes. STRING
companyName Company name used as the sender. STRING
country ISO 3-letter country code. STRING
to Recipient phone number in international format. STRING
channels Selected communication channels. JSON OBJECT
errors Error details. JSON OBJECT
smsToken Unique identifier of the SMS. STRING
dateTime Date and time the SMS was sent. STRING

Status values

Status Description
PENDING The SMS was sent to the operator.
UNDELIVERABLE The SMS could not be delivered.
DELIVERED The SMS was successfully delivered.
EXPIRED The SMS expired before delivery confirmation.
REJECTED The SMS was rejected by the operator.

Main error codes

Code Description
00No errors.
01Missing parameters.
02Service not authorized for this licence.
03Invalid phone number.
04Invalid country code.
05Invalid duration.
06Country not found.
07Invalid company name.
08Internal API error.
09No delivery status received.
10Invalid consent values.
11At least one communication channel must be enabled.

Example:

{
  "channels": {
    "phone": 0,
    "post": 0,
    "sms": 1,
    "email": 1
  },
  "to": "33612345678",
  "errors": {
    "00": "00 - No errors"
  },
  "status": "DELIVERED",
  "smsToken": "C6hfYZIER3CVoGVYwTiZLg",
  "timeout": "3",
  "companyName": "MYCOMPANY",
  "country": "FRA",
  "dateTime": "2019-07-29 11:32:32.876709"
}

GDPR_VERIF request success

The JSON response contains the verification result for the PIN code.

Key Description Format
status OK if the PIN is valid, KO otherwise. STRING
phone Phone number in international format. STRING
dateTime Verification date and time. STRING
errors Error details. JSON OBJECT
channels Selected communication channels. JSON OBJECT

Main verification error codes

Code Description
00No errors.
01Missing parameters.
02PIN must contain 6 digits.
03PIN expired.
04PIN invalid for this token or phone number.
05Invalid token.

Example:

{
  "status": "OK",
  "phone": "33631525429",
  "errors": {
    "00": "00 - No errors"
  },
  "channels": {
    "phone": 0,
    "post": 0,
    "sms": 1,
    "email": 1
  },
  "dateTime": "2019-07-29 11:34:48.998397"
}

Related to

Was this article helpful?

0 out of 0 found this helpful