POST api/CUSTOMERS?foreigns={foreigns}
Insert a single record into CUSTOMERS
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| 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
Obligatory. The new CUSTOMERS object that need to be added
CUSTOMERS| Name | Description | Type | Additional information |
|---|---|---|---|
| CUSTOMER_ID | integer |
None. |
|
| CUSTOMER_ID_IMAGE | globally unique identifier |
None. |
|
| CUSTOMER_NAME_AR | string |
None. |
|
| CUSTOMER_NAME_EN | string |
Required String length: inclusive between 0 and 400 |
|
| FK_EMIRATE | integer |
None. |
|
| string |
Required String length: inclusive between 0 and 100 |
||
| MOBILE_NO | string |
Required String length: inclusive between 0 and 50 |
|
| LOGIN_PASSWORD | string |
Required String length: inclusive between 0 and 100 |
|
| FK_MOBILE_COUNTRY | integer |
None. |
|
| ACTIVE | boolean |
None. |
|
| NOTES | string |
String length: inclusive between 0 and 500 |
|
| LAST_NOTIFY_DELETE | date |
None. |
|
| FK_USER | integer |
None. |
|
| FK_GROUP | integer |
None. |
|
| COUNTRIES | COUNTRIES |
None. |
|
| EMIRATES | EMIRATES |
None. |
Request Formats
application/json, text/json
{
"CUSTOMER_ID": 1,
"CUSTOMER_ID_IMAGE": "648289dd-dcf0-46b9-825e-d319bf1de782",
"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:32:49.638Z",
"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"
}
}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
CUSTOMERS_SMS_RESPONSE| Name | Description | Type | Additional 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
{
"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": "cbb01e3f-dad2-4de7-8660-ef579813da22",
"DATA": [
{
"CUSTOMER_ID": 1,
"CUSTOMER_ID_IMAGE": "43d86b6f-fea7-4834-b2c4-0eacdf7af5c8",
"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:32:49.638Z",
"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": "43d86b6f-fea7-4834-b2c4-0eacdf7af5c8",
"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:32:49.638Z",
"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"
}
}
]
}
