POST api/TrailUserAccount?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

UserInfo
NameDescriptionTypeAdditional information
AspNetUserId

string

None.

Email

string

None.

Name

string

None.

UserType

UserType

None.

PhoneNumber

string

None.

Hometown

string

None.

Branch

Branch

None.

UserRole

UserRole

None.

CompanySetting

CompanySetting

None.

StaffStatus

StaffStatus

None.

ClientID

globally unique identifier

None.

UserExpiryOn

date

None.

PasswordHash

string

None.

Password

string

None.

UsedPassword

Collection of UserUsedPassword

None.

BookingSetting

BookingSetting

None.

SelectedBranchID

globally unique identifier

None.

SelectedBranchName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AspNetUserId": "sample string 1",
  "Email": "sample string 2",
  "Name": "sample string 3",
  "UserType": 0,
  "PhoneNumber": "sample string 4",
  "Hometown": "sample string 5",
  "Branch": {
    "Identity": {
      "Id": "2e50350b-8b41-4cb7-964f-1984007ee75e",
      "Code": "sample string 2"
    },
    "CountryState": {
      "StateCode": "sample string 2",
      "StateName": "sample string 3",
      "CountryCode": "sample string 4",
      "CountryName": "sample string 5",
      "NationalityCode": "sample string 6",
      "NationalityName": "sample string 7"
    },
    "Name": "sample string 4",
    "Address": "sample string 5",
    "ContactNo": "sample string 6",
    "TelephoneNo": "sample string 7",
    "EmailID": "sample string 8",
    "Attachment": {
      "AttachmentID": "4fc57139-c79e-4708-a0e1-afda19a69226",
      "ImageString": "sample string 6",
      "AttachmentDataBase64": "sample string 7"
    },
    "Longitude": 11.1,
    "Latitude": 12.1,
    "BranchType": {
      "BranchTypeID": "628520d6-80c8-465f-8989-0184742e05cc",
      "Name": "sample string 2",
      "Attachment": {
        "AttachmentID": "4fc57139-c79e-4708-a0e1-afda19a69226",
        "ImageString": "sample string 6",
        "AttachmentDataBase64": "sample string 7"
      }
    },
    "HoursToGetReady": 15,
    "Description": "sample string 18",
    "Message": "sample string 19",
    "BranchOfficeTiming": {
      "BranchTimings": [
        {
          "DayString": "sample string 1",
          "Shifts": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "DayString": "sample string 1",
          "Shifts": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ]
    },
    "GoogleLocationURL": "sample string 20"
  },
  "UserRole": {
    "UserRoleID": "c9fdbc9b-1a91-466d-945d-a2b31170860e",
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Features": [
      1,
      2
    ],
    "UserRoleUpgardeAccessList": [
      {
        "UserRoleID": "7efaed6e-6a3b-4e72-bbe6-a2c857b1f0c7",
        "FromTariffGroupId": "dd3cfc74-e2f8-4f89-b112-f2d94ce9daca",
        "FromTariffGroup": "sample string 2",
        "ToTariffGroupId": "bc90e232-3976-44c8-a264-7bd4bab3763e",
        "ToTariffGroup": "sample string 3",
        "IsDeleted": true
      },
      {
        "UserRoleID": "7efaed6e-6a3b-4e72-bbe6-a2c857b1f0c7",
        "FromTariffGroupId": "dd3cfc74-e2f8-4f89-b112-f2d94ce9daca",
        "FromTariffGroup": "sample string 2",
        "ToTariffGroupId": "bc90e232-3976-44c8-a264-7bd4bab3763e",
        "ToTariffGroup": "sample string 3",
        "IsDeleted": true
      }
    ],
    "RentalAllowedDisc": 4,
    "IRRMargin": 5,
    "AdditionalAllowedKm": 6,
    "IsAllowUpgrade": true,
    "IsAllowDebtorDiscount": true,
    "IsAllowBackDatedEntries": true,
    "BackdaysAllowed": 10,
    "CreatedBy": "2a54395b-1f5b-42ea-a2d0-0ad543ff30ae",
    "CreatedOn": "2024-06-14T07:30:01.0751616+04:00",
    "ModifiedBy": "a7d4bccf-3666-471e-b75e-51c4f5ab51fa",
    "ModifiedOn": "2024-06-14T07:30:01.0751616+04:00",
    "IsDeleted": true
  },
  "CompanySetting": {
    "Name": "sample string 2",
    "TimeZoneID": "sample string 3",
    "DateFormat": "sample string 4",
    "TimeFormat": "sample string 5",
    "Attachment": {
      "AttachmentID": "4fc57139-c79e-4708-a0e1-afda19a69226",
      "ImageString": "sample string 6",
      "AttachmentDataBase64": "sample string 7"
    },
    "CurrencyCode": "sample string 10",
    "IsAllowOverlappingTransaction": true
  },
  "StaffStatus": 1,
  "ClientID": "a4c96e94-0196-4f80-8201-70be1873169f",
  "UserExpiryOn": "2024-06-14T07:30:01.0751616+04:00",
  "PasswordHash": "sample string 8",
  "Password": "sample string 9",
  "UsedPassword": [
    {
      "PasswordHash": "sample string 1",
      "UpdatedDate": "2024-06-14T07:30:01.0751616+04:00"
    },
    {
      "PasswordHash": "sample string 1",
      "UpdatedDate": "2024-06-14T07:30:01.0751616+04:00"
    }
  ],
  "BookingSetting": {
    "TimeSplitInMinutes": 6,
    "BookingPortalInformation": {
      "PortalURL": "sample string 1",
      "CustomerCareNumber": "sample string 2",
      "CustomerCareEmailID": "sample string 3",
      "WhatsAppContactNo": "sample string 4",
      "CallContactNo": "sample string 5"
    }
  },
  "SelectedBranchID": "784f4961-4c79-4742-9fe1-c2f5a6a3f01d",
  "SelectedBranchName": "sample string 11"
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultWithDataOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

None.

Status

ErrorCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": true,
  "Status": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ApiResultWithDataOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Service.Models">
  <Message>sample string 2</Message>
  <Status>Success</Status>
  <Data>true</Data>
</ApiResultWithDataOfboolean>