POST api/CUSTOMERS/SEND_OTP?CUSTOMERId={CUSTOMERId}&foreigns={foreigns}

Resend OTP Code as an SMS to CUSTOMER's mobile number and returns the token at the Token Guid object

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CUSTOMERId

The CUSTOMER_ID value

integer

Required

foreigns

Optional. Default value is false. True=> Include nested foreign objects within reply. False=> Do NOT Include nested foreign objects within reply

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

CUSTOMERS_SMS_RESPONSE
NameDescriptionTypeAdditional information
Status

Status

None.

Token

The SMS token that will be used to verify sent OTP SMS code. Its expire period is 10 minutes.

globally unique identifier

None.

DATA

Collection of CUSTOMERS

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": {
    "Success": true,
    "MessageEn": "sample string 2",
    "MessageAr": "sample string 3",
    "DetailedMessage": "sample string 4",
    "Code": 0,
    "CartErrors": [
      {
        "ResultStatusCode": 0,
        "CartId": 1,
        "CorrectValue": {},
        "MessageEn": "sample string 2",
        "MessageAr": "sample string 3",
        "CartCorrectAction": 0
      },
      {
        "ResultStatusCode": 0,
        "CartId": 1,
        "CorrectValue": {},
        "MessageEn": "sample string 2",
        "MessageAr": "sample string 3",
        "CartCorrectAction": 0
      }
    ]
  },
  "Token": "f4db0e40-cd38-4081-9686-5b95e947a5c4",
  "DATA": [
    {
      "CUSTOMER_ID": 1,
      "CUSTOMER_ID_IMAGE": "166c47ad-1e33-42d5-a3b8-103f5245d9d5",
      "CUSTOMER_NAME_AR": "sample string 2",
      "CUSTOMER_NAME_EN": "sample string 3",
      "FK_EMIRATE": 1,
      "EMAIL": "sample string 4",
      "MOBILE_NO": "sample string 5",
      "LOGIN_PASSWORD": "sample string 6",
      "FK_MOBILE_COUNTRY": 7,
      "ACTIVE": true,
      "NOTES": "sample string 9",
      "LAST_NOTIFY_DELETE": "2025-12-08T00:38:22.691Z",
      "FK_USER": 1,
      "FK_GROUP": 1,
      "COUNTRIES": {
        "COUNTRY_ID": 1,
        "COUNTRY_NO": 2,
        "CALLING_CODE": "sample string 3",
        "COUNTRY_NAME_AR": "sample string 4",
        "COUNTRY_NAME_EN": "sample string 5",
        "COUNTRY_CODE2": "sample string 6",
        "COUNTRY_CODE3": "sample string 7"
      },
      "EMIRATES": {
        "EMIRATE_ID": 1,
        "EMIRATE_NAME_AR": "sample string 2",
        "EMIRATE_NAME_EN": "sample string 3"
      }
    },
    {
      "CUSTOMER_ID": 1,
      "CUSTOMER_ID_IMAGE": "166c47ad-1e33-42d5-a3b8-103f5245d9d5",
      "CUSTOMER_NAME_AR": "sample string 2",
      "CUSTOMER_NAME_EN": "sample string 3",
      "FK_EMIRATE": 1,
      "EMAIL": "sample string 4",
      "MOBILE_NO": "sample string 5",
      "LOGIN_PASSWORD": "sample string 6",
      "FK_MOBILE_COUNTRY": 7,
      "ACTIVE": true,
      "NOTES": "sample string 9",
      "LAST_NOTIFY_DELETE": "2025-12-08T00:38:22.691Z",
      "FK_USER": 1,
      "FK_GROUP": 1,
      "COUNTRIES": {
        "COUNTRY_ID": 1,
        "COUNTRY_NO": 2,
        "CALLING_CODE": "sample string 3",
        "COUNTRY_NAME_AR": "sample string 4",
        "COUNTRY_NAME_EN": "sample string 5",
        "COUNTRY_CODE2": "sample string 6",
        "COUNTRY_CODE3": "sample string 7"
      },
      "EMIRATES": {
        "EMIRATE_ID": 1,
        "EMIRATE_NAME_AR": "sample string 2",
        "EMIRATE_NAME_EN": "sample string 3"
      }
    }
  ]
}