POST api/Admin/Account/CreateCustomerFromSensor

Request Information

URI Parameters

None.

Body Parameters

CustomerDto
NameDescriptionTypeAdditional information
urlfordeshbord

string

None.

SalutationId

integer

None.

OwnerId

integer

None.

FirstName

string

None.

LastName

string

None.

MiddleName

string

None.

GenderId

integer

None.

CustomerTypeId

integer

None.

ProfileImage

string

None.

Name

string

None.

OrganizationId

integer

None.

Salutation

SalutationDto

None.

Gender

GenderDto

None.

CustomerType

CustomerTypeDto

None.

HouseHolder

HouseHolder

None.

ThirdParty

ThirdParty

None.

Addresses

Collection of AddressDto

None.

Contacts

Collection of ContactDto

None.

CompanyId

integer

None.

CompanyName

string

None.

EntryType

string

None.

IPAddress

string

None.

CustomerNumber

string

None.

Id

integer

None.

IsDeleted

boolean

None.

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

ModifiedBy

integer

None.

ModifiedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "urlfordeshbord": "sample string 1",
  "SalutationId": 1,
  "OwnerId": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "MiddleName": "sample string 4",
  "GenderId": 5,
  "CustomerTypeId": 6,
  "ProfileImage": "sample string 7",
  "Name": "sample string 8",
  "OrganizationId": 9,
  "Salutation": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Description": "sample string 3",
    "Order": 4,
    "Id": 5,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 8,
    "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
  },
  "Gender": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Description": "sample string 3",
    "Id": 4,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 7,
    "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
  },
  "CustomerType": {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Description": "sample string 3",
    "Id": 4,
    "IsDeleted": true,
    "IsActive": true,
    "CreatedBy": 7,
    "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
  },
  "HouseHolder": {
    "Id": 1,
    "Name": "sample string 2",
    "ResidentId": 3,
    "ResidentName": "sample string 4",
    "WorkerId": 5,
    "WorkerName": "sample string 6"
  },
  "ThirdParty": {
    "Id": 1,
    "Name": "sample string 2",
    "ResidentId": 3,
    "ResidentName": "sample string 4"
  },
  "Addresses": [
    {
      "AddressLine1": "sample string 1",
      "AddressLine2": "sample string 2",
      "AddressLine3": "sample string 3",
      "Zip": "sample string 4",
      "Lat": "sample string 5",
      "Lng": "sample string 6",
      "Landmark": "sample string 7",
      "IsPrimery": true,
      "Country": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "Id": 3,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 6,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "State": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "StateId": 3,
        "CountryId": 4,
        "Id": 5,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 8,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "City": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "CustomCity": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "Id": 9,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 12,
      "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
    },
    {
      "AddressLine1": "sample string 1",
      "AddressLine2": "sample string 2",
      "AddressLine3": "sample string 3",
      "Zip": "sample string 4",
      "Lat": "sample string 5",
      "Lng": "sample string 6",
      "Landmark": "sample string 7",
      "IsPrimery": true,
      "Country": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "Id": 3,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 6,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "State": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "StateId": 3,
        "CountryId": 4,
        "Id": 5,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 8,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "City": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "CustomCity": {
        "Name": "sample string 1",
        "Code": "sample string 2",
        "IsUserCreated": true,
        "Id": 4,
        "IsDeleted": true,
        "IsActive": true,
        "CreatedBy": 7,
        "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
        "ModifiedBy": 1,
        "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
      },
      "Id": 9,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 12,
      "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
    }
  ],
  "Contacts": [
    {
      "EmailId": "sample string 1",
      "AltEmailId": "sample string 2",
      "MobileNumber": "sample string 3",
      "AltMobileNumber": "sample string 4",
      "PhoneNumber": "sample string 5",
      "AltPhoneNumber": "sample string 6",
      "Fax": "sample string 7",
      "ContactPerson": "sample string 8",
      "PrefContactMediumId": 9,
      "IsPrimery": true,
      "CompanyId": 11,
      "Id": 12,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 15,
      "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
    },
    {
      "EmailId": "sample string 1",
      "AltEmailId": "sample string 2",
      "MobileNumber": "sample string 3",
      "AltMobileNumber": "sample string 4",
      "PhoneNumber": "sample string 5",
      "AltPhoneNumber": "sample string 6",
      "Fax": "sample string 7",
      "ContactPerson": "sample string 8",
      "PrefContactMediumId": 9,
      "IsPrimery": true,
      "CompanyId": 11,
      "Id": 12,
      "IsDeleted": true,
      "IsActive": true,
      "CreatedBy": 15,
      "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
    }
  ],
  "CompanyId": 10,
  "CompanyName": "sample string 11",
  "EntryType": "sample string 12",
  "IPAddress": "sample string 13",
  "CustomerNumber": "sample string 14",
  "Id": 15,
  "IsDeleted": true,
  "IsActive": true,
  "CreatedBy": 18,
  "CreatedOn": "2025-12-08T15:34:35.1313104+00:00",
  "ModifiedBy": 1,
  "ModifiedOn": "2025-12-08T15:34:35.1313104+00:00"
}

application/xml, text/xml

Sample:
check

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CustomerDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.