GET api/Gadget/GetAccount?code={code}

Gets an object that contains the information account by code.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

Body Parameters

None.

Response Information

Resource Description

Account
NameDescriptionTypeAdditional information
AccountId

globally unique identifier

None.

Name

string

None.

Code

string

None.

Address

string

None.

City

string

None.

Province

string

None.

Phone

string

None.

Fax

string

None.

ContactEmail

string

None.

ImageUrl

string

None.

GroupName

string

None.

BanckAccountNumber

string

None.

BankName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountId": "c79ee4ed-ffe5-44e5-8eac-2ae0b637b5be",
  "Name": "sample string 2",
  "Code": "sample string 3",
  "Address": "sample string 4",
  "City": "sample string 5",
  "Province": "sample string 6",
  "Phone": "sample string 7",
  "Fax": "sample string 8",
  "ContactEmail": "sample string 9",
  "ImageUrl": "sample string 10",
  "GroupName": "sample string 11",
  "BanckAccountNumber": "sample string 12",
  "BankName": "sample string 13"
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gosocket.SDK.Domain">
  <_x003C_AccountId_x003E_k__BackingField>c79ee4ed-ffe5-44e5-8eac-2ae0b637b5be</_x003C_AccountId_x003E_k__BackingField>
  <_x003C_Address_x003E_k__BackingField>sample string 4</_x003C_Address_x003E_k__BackingField>
  <_x003C_BanckAccountNumber_x003E_k__BackingField>sample string 12</_x003C_BanckAccountNumber_x003E_k__BackingField>
  <_x003C_BankName_x003E_k__BackingField>sample string 13</_x003C_BankName_x003E_k__BackingField>
  <_x003C_City_x003E_k__BackingField>sample string 5</_x003C_City_x003E_k__BackingField>
  <_x003C_Code_x003E_k__BackingField>sample string 3</_x003C_Code_x003E_k__BackingField>
  <_x003C_ContactEmail_x003E_k__BackingField>sample string 9</_x003C_ContactEmail_x003E_k__BackingField>
  <_x003C_Fax_x003E_k__BackingField>sample string 8</_x003C_Fax_x003E_k__BackingField>
  <_x003C_GroupName_x003E_k__BackingField>sample string 11</_x003C_GroupName_x003E_k__BackingField>
  <_x003C_ImageUrl_x003E_k__BackingField>sample string 10</_x003C_ImageUrl_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField>
  <_x003C_Phone_x003E_k__BackingField>sample string 7</_x003C_Phone_x003E_k__BackingField>
  <_x003C_Province_x003E_k__BackingField>sample string 6</_x003C_Province_x003E_k__BackingField>
</Account>