PT.Api

<back to all web services

GetUserInfoWithToken

Requires Authentication
LocaleRequest Parameters:
NameParameterData TypeRequiredDescription
LocaleformstringNoLocale. Ex: vi-VN, en-US
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintNoVersion. Ex: 1,2,3,...
UserInfoWithToken Parameters:
NameParameterData TypeRequiredDescription
DataformUserInfoWithTokenDataNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusformintNoResponse status. Ex: 1 - Success; 0 - Error
MessageformstringNoResponse message
UserInfoWithTokenData Parameters:
NameParameterData TypeRequiredDescription
userinfoformUserInfoDataNo
tokenformList<Tokenization>No
UserInfoData Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
UserNameformstringNo
FullNameformstringNo
EmailformstringNo
PhoneformstringNo
AddressformstringNo
SecurityNumberformstringNo
ProvinceIdformintNo
CityIdformintNo
Tokenization Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
customer_idformintNo
card_typeformstringNo
bank_idformintNo
payment_tokenformstringNo
card_numberformstringNo
expiry_dateformstringNo
valid_dateformstringNo
fullnameformstringNo
surnameformstringNo
emailformstringNo
addressformstringNo
cityformstringNo
postal_codeformstringNo
stateformstringNo
countryformstringNo
update_timesformintNo
create_dateformDateTimeNo
update_dateformDateTimeNo
token_statusformintNo
TypeformintNo
CodeformstringNo
NameformstringNo
StatusformintNo
IsPrgCreatedDateformDateTimeNo
IsPrgUpdatedDateformDateTimeNo
IsPrgCreatedUserIdformintNo
IsPrgUpdatedUserIdformintNo

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: api4.futabus.vn 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: GetUserInfoWithToken

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<GetUserInfoWithToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel">
  <Version xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Version>
  <Locale xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">vi-VN</Locale>
</GetUserInfoWithToken>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<UserInfoWithToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types">
  <Message xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">String</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Status>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Types.Users">
    <d2p1:token>
      <d2p1:Tokenization>
        <d2p1:Code>String</d2p1:Code>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsPrgCreatedDate>0001-01-01T00:00:00</d2p1:IsPrgCreatedDate>
        <d2p1:IsPrgCreatedUserId>0</d2p1:IsPrgCreatedUserId>
        <d2p1:IsPrgUpdatedDate>0001-01-01T00:00:00</d2p1:IsPrgUpdatedDate>
        <d2p1:IsPrgUpdatedUserId>0</d2p1:IsPrgUpdatedUserId>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Status>0</d2p1:Status>
        <d2p1:Type>0</d2p1:Type>
        <d2p1:address>String</d2p1:address>
        <d2p1:bank_id>0</d2p1:bank_id>
        <d2p1:card_number>String</d2p1:card_number>
        <d2p1:card_type>String</d2p1:card_type>
        <d2p1:city>String</d2p1:city>
        <d2p1:country>String</d2p1:country>
        <d2p1:create_date>0001-01-01T00:00:00</d2p1:create_date>
        <d2p1:customer_id>0</d2p1:customer_id>
        <d2p1:email>String</d2p1:email>
        <d2p1:expiry_date>String</d2p1:expiry_date>
        <d2p1:fullname>String</d2p1:fullname>
        <d2p1:payment_token>String</d2p1:payment_token>
        <d2p1:postal_code>String</d2p1:postal_code>
        <d2p1:state>String</d2p1:state>
        <d2p1:surname>String</d2p1:surname>
        <d2p1:token_status>0</d2p1:token_status>
        <d2p1:update_date>0001-01-01T00:00:00</d2p1:update_date>
        <d2p1:update_times>0</d2p1:update_times>
        <d2p1:valid_date>String</d2p1:valid_date>
      </d2p1:Tokenization>
    </d2p1:token>
    <d2p1:userinfo>
      <d2p1:Address>String</d2p1:Address>
      <d2p1:CityId>0</d2p1:CityId>
      <d2p1:Email>String</d2p1:Email>
      <d2p1:FullName>String</d2p1:FullName>
      <d2p1:Phone>String</d2p1:Phone>
      <d2p1:ProvinceId>0</d2p1:ProvinceId>
      <d2p1:SecurityNumber>String</d2p1:SecurityNumber>
      <d2p1:UserId>0</d2p1:UserId>
      <d2p1:UserName>String</d2p1:UserName>
    </d2p1:userinfo>
  </Data>
</UserInfoWithToken>

    </soap:Body>
</soap:Envelope>