POS365.VN APIs

<back to all web services

MobileCurrentSession

Requires Authentication
The following routes are available for this service:
GET/api/mobile/session
POSSession Parameters:
NameParameterData TypeRequiredDescription
CurrentUserformSessionUserNo
CurrentRetailerformSessionRetailerNo
CurrentBranchIdformintNo
PreOrderCodeformstringNo
PreProductCodeformstringNo
PermissionMapformList<PermissionMap>No
PermittedBranchIdsformint[]No
AuthUserSession Parameters:
NameParameterData TypeRequiredDescription
ReferrerUrlformstringNo
IdformstringNo
UserAuthIdformstringNo
UserAuthNameformstringNo
UserNameformstringNo
TwitterUserIdformstringNo
TwitterScreenNameformstringNo
FacebookUserIdformstringNo
FacebookUserNameformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
RequestTokenSecretformstringNo
CreatedAtformDateTimeNo
LastModifiedformDateTimeNo
RolesformList<string>No
PermissionsformList<string>No
IsAuthenticatedformboolNo
FromTokenformboolNo
ProfileUrlformstringNo
SequenceformstringNo
TagformlongNo
AuthProviderformstringNo
ProviderOAuthAccessformList<IAuthTokens>No
MetaformDictionary<string, string>No
AudiencesformList<string>No
ScopesformList<string>No
DnsformstringNo
RsaformstringNo
SidformstringNo
HashformstringNo
HomePhoneformstringNo
MobilePhoneformstringNo
WebpageformstringNo
EmailConfirmedformbool?No
PhoneNumberConfirmedformbool?No
TwoFactorEnabledformbool?No
SecurityStampformstringNo
TypeformstringNo
IAuthTokens Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
UserIdformstringNo
AccessTokenformstringNo
AccessTokenSecretformstringNo
RefreshTokenformstringNo
RefreshTokenExpiryformDateTime?No
RequestTokenformstringNo
RequestTokenSecretformstringNo
ItemsformDictionary<string, string>No
SessionUser Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
RetailerIdformintNo
EmailformstringNo
UserNameformstringNo
NameformstringNo
IsActiveformboolNo
IsAdminformboolNo
AdminGroupformbyteNo
PhoneformstringNo
SessionRetailer Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
CodeformstringNo
ExpiryDateformDateTime?No
CreatedDateformDateTimeNo
MaximumProductsformintNo
MaximumBranchsformintNo
LatestClearDataformDateTime?No
FieldIdformint?No
StatusformbyteNo
MaximumOrdersformintNo
MaximumSmsformintNo
SmsBrandNameformstringNo
MaximumSmsBrandNameformintNo
PermissionMap Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
BranchesformList<int>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/mobile/session HTTP/1.1 
Host: api.pos365.vn 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<POSSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services.Common.Secure">
  <ReferrerUrl xmlns="http://schemas.servicestack.net/types">String</ReferrerUrl>
  <Id xmlns="http://schemas.servicestack.net/types">String</Id>
  <UserAuthId xmlns="http://schemas.servicestack.net/types">String</UserAuthId>
  <UserAuthName xmlns="http://schemas.servicestack.net/types">String</UserAuthName>
  <UserName xmlns="http://schemas.servicestack.net/types">String</UserName>
  <TwitterUserId xmlns="http://schemas.servicestack.net/types">String</TwitterUserId>
  <TwitterScreenName xmlns="http://schemas.servicestack.net/types">String</TwitterScreenName>
  <FacebookUserId xmlns="http://schemas.servicestack.net/types">String</FacebookUserId>
  <FacebookUserName xmlns="http://schemas.servicestack.net/types">String</FacebookUserName>
  <FirstName xmlns="http://schemas.servicestack.net/types">String</FirstName>
  <LastName xmlns="http://schemas.servicestack.net/types">String</LastName>
  <DisplayName xmlns="http://schemas.servicestack.net/types">String</DisplayName>
  <Company xmlns="http://schemas.servicestack.net/types">String</Company>
  <Email xmlns="http://schemas.servicestack.net/types">String</Email>
  <PrimaryEmail xmlns="http://schemas.servicestack.net/types">String</PrimaryEmail>
  <PhoneNumber xmlns="http://schemas.servicestack.net/types">String</PhoneNumber>
  <BirthDate xmlns="http://schemas.servicestack.net/types">0001-01-01T00:00:00</BirthDate>
  <BirthDateRaw xmlns="http://schemas.servicestack.net/types">String</BirthDateRaw>
  <Address xmlns="http://schemas.servicestack.net/types">String</Address>
  <Address2 xmlns="http://schemas.servicestack.net/types">String</Address2>
  <City xmlns="http://schemas.servicestack.net/types">String</City>
  <State xmlns="http://schemas.servicestack.net/types">String</State>
  <Country xmlns="http://schemas.servicestack.net/types">String</Country>
  <Culture xmlns="http://schemas.servicestack.net/types">String</Culture>
  <FullName xmlns="http://schemas.servicestack.net/types">String</FullName>
  <Gender xmlns="http://schemas.servicestack.net/types">String</Gender>
  <Language xmlns="http://schemas.servicestack.net/types">String</Language>
  <MailAddress xmlns="http://schemas.servicestack.net/types">String</MailAddress>
  <Nickname xmlns="http://schemas.servicestack.net/types">String</Nickname>
  <PostalCode xmlns="http://schemas.servicestack.net/types">String</PostalCode>
  <TimeZone xmlns="http://schemas.servicestack.net/types">String</TimeZone>
  <RequestTokenSecret xmlns="http://schemas.servicestack.net/types">String</RequestTokenSecret>
  <CreatedAt xmlns="http://schemas.servicestack.net/types">0001-01-01T00:00:00</CreatedAt>
  <LastModified xmlns="http://schemas.servicestack.net/types">0001-01-01T00:00:00</LastModified>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:string>String</d2p1:string>
  </Roles>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:string>String</d2p1:string>
  </Permissions>
  <IsAuthenticated xmlns="http://schemas.servicestack.net/types">false</IsAuthenticated>
  <FromToken xmlns="http://schemas.servicestack.net/types">false</FromToken>
  <ProfileUrl xmlns="http://schemas.servicestack.net/types">String</ProfileUrl>
  <Sequence xmlns="http://schemas.servicestack.net/types">String</Sequence>
  <Tag xmlns="http://schemas.servicestack.net/types">0</Tag>
  <AuthProvider xmlns="http://schemas.servicestack.net/types">String</AuthProvider>
  <ProviderOAuthAccess xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:anyType i:nil="true" />
  </ProviderOAuthAccess>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <Audiences xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:string>String</d2p1:string>
  </Audiences>
  <Scopes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:string>String</d2p1:string>
  </Scopes>
  <Dns xmlns="http://schemas.servicestack.net/types">String</Dns>
  <Rsa xmlns="http://schemas.servicestack.net/types">String</Rsa>
  <Sid xmlns="http://schemas.servicestack.net/types">String</Sid>
  <Hash xmlns="http://schemas.servicestack.net/types">String</Hash>
  <HomePhone xmlns="http://schemas.servicestack.net/types">String</HomePhone>
  <MobilePhone xmlns="http://schemas.servicestack.net/types">String</MobilePhone>
  <Webpage xmlns="http://schemas.servicestack.net/types">String</Webpage>
  <EmailConfirmed xmlns="http://schemas.servicestack.net/types">false</EmailConfirmed>
  <PhoneNumberConfirmed xmlns="http://schemas.servicestack.net/types">false</PhoneNumberConfirmed>
  <TwoFactorEnabled xmlns="http://schemas.servicestack.net/types">false</TwoFactorEnabled>
  <SecurityStamp xmlns="http://schemas.servicestack.net/types">String</SecurityStamp>
  <Type xmlns="http://schemas.servicestack.net/types">String</Type>
  <CurrentBranchId>0</CurrentBranchId>
  <CurrentRetailer xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data.Partial">
    <d2p1:Code>String</d2p1:Code>
    <d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
    <d2p1:ExpiryDate>0001-01-01T00:00:00</d2p1:ExpiryDate>
    <d2p1:FieldId>0</d2p1:FieldId>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:LatestClearData>0001-01-01T00:00:00</d2p1:LatestClearData>
    <d2p1:MaximumBranchs>0</d2p1:MaximumBranchs>
    <d2p1:MaximumOrders>0</d2p1:MaximumOrders>
    <d2p1:MaximumProducts>0</d2p1:MaximumProducts>
    <d2p1:MaximumSms>0</d2p1:MaximumSms>
    <d2p1:MaximumSmsBrandName>0</d2p1:MaximumSmsBrandName>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:SmsBrandName>String</d2p1:SmsBrandName>
    <d2p1:Status>0</d2p1:Status>
  </CurrentRetailer>
  <CurrentUser xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data.Partial">
    <d2p1:AdminGroup>0</d2p1:AdminGroup>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IsActive>false</d2p1:IsActive>
    <d2p1:IsAdmin>false</d2p1:IsAdmin>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:Phone>String</d2p1:Phone>
    <d2p1:RetailerId>0</d2p1:RetailerId>
    <d2p1:UserName>String</d2p1:UserName>
  </CurrentUser>
  <PermissionMap xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data.Partial">
    <d2p1:PermissionMap>
      <d2p1:Branches xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </d2p1:Branches>
      <d2p1:Key>String</d2p1:Key>
    </d2p1:PermissionMap>
  </PermissionMap>
  <PermittedBranchIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </PermittedBranchIds>
  <PreOrderCode>String</PreOrderCode>
  <PreProductCode>String</PreProductCode>
</POSSession>