GET api/v1/admin/accounts

This method retrieves the account details for the logged in user.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Account details for the logged in account id.

TwoSms.CustomerPortalRole.API.Misc.ResponseOfTwoSms.CustomerPortalRole.API.Admin.Accounts.AccountV2
NameDescriptionTypeAdditional information
Error

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfTwoSms.CustomerPortalRole.API.Admin.Accounts.AccountV2

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "CountryCode": "sample string 1",
      "NDD": "sample string 2",
      "IDD": "sample string 3",
      "Timeout": 4,
      "ID": "8c440a07-7983-4c68-bc1c-fd80c40ad91c",
      "AccountID": "f264f92e-c4ae-4f5f-9e11-8e25c8b579ad",
      "Address": "sample string 6",
      "AnyTimeBalance": 1.1,
      "ContactNumber": "sample string 7",
      "PhoneNumber": "sample string 8",
      "DateCreated": "2018-10-23T02:53:59.394342+01:00",
      "DateModified": "2018-10-23T02:53:59.394342+01:00",
      "Disclaimer": "sample string 10",
      "EmailAddress": "sample string 11",
      "FirstName": "sample string 13",
      "LanguageID": "ff813aea-42d6-440d-9f2e-68b47c773b63",
      "LanguageName": "sample string 15",
      "LastName": "sample string 16",
      "Location": "sample string 17",
      "Logo": "sample string 18",
      "LogoName": "sample string 19",
      "Name": "sample string 20",
      "OffPeakBalance": 1.1,
      "Preferences": [
        0,
        0
      ],
      "SMSPassword": "sample string 21",
      "SMSUsername": "sample string 22",
      "TimeZone": "sample string 23",
      "TwoFactorEnabled": true,
      "URL": "sample string 24",
      "Website": "sample string 26"
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfAccountV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <ID>8c440a07-7983-4c68-bc1c-fd80c40ad91c</ID>
      <AccountID>f264f92e-c4ae-4f5f-9e11-8e25c8b579ad</AccountID>
      <Address>sample string 6</Address>
      <AnyTimeBalance>1.1</AnyTimeBalance>
      <ContactNumber>sample string 7</ContactNumber>
      <PhoneNumber>sample string 8</PhoneNumber>
      <DateCreated>2018-10-23T02:53:59.394342+01:00</DateCreated>
      <DateModified>2018-10-23T02:53:59.394342+01:00</DateModified>
      <Disclaimer>sample string 10</Disclaimer>
      <EmailAddress>sample string 11</EmailAddress>
      <Enabled>true</Enabled>
      <FirstName>sample string 13</FirstName>
      <LanguageID>ff813aea-42d6-440d-9f2e-68b47c773b63</LanguageID>
      <LanguageName>sample string 15</LanguageName>
      <LastName>sample string 16</LastName>
      <Location>sample string 17</Location>
      <Logo>sample string 18</Logo>
      <LogoName>sample string 19</LogoName>
      <Name>sample string 20</Name>
      <OffPeakBalance>1.1</OffPeakBalance>
      <Preferences>
        <AccountPreferences>ALL</AccountPreferences>
        <AccountPreferences>ALL</AccountPreferences>
      </Preferences>
      <SMSPassword>sample string 21</SMSPassword>
      <SMSUsername>sample string 22</SMSUsername>
      <TimeZone>sample string 23</TimeZone>
      <TwoFactorEnabled>true</TwoFactorEnabled>
      <URL>sample string 24</URL>
      <Users>
        <AccountUserInfo>
          <UserID>c23c312a-edb0-457a-b11f-fd8b71bb6215</UserID>
          <Name>sample string 2</Name>
          <PermissionLevel>STANDARD_USER</PermissionLevel>
        </AccountUserInfo>
        <AccountUserInfo>
          <UserID>c23c312a-edb0-457a-b11f-fd8b71bb6215</UserID>
          <Name>sample string 2</Name>
          <PermissionLevel>STANDARD_USER</PermissionLevel>
        </AccountUserInfo>
      </Users>
      <Validated>true</Validated>
      <Website>sample string 26</Website>
      <CountryCode>sample string 1</CountryCode>
      <NDD>sample string 2</NDD>
      <IDD>sample string 3</IDD>
      <Timeout>4</Timeout>
    </Detail>
  </ResponseData>
</ResponseOfAccountV2>