GET api/partner/accountData/{supplierCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
supplierCode

string

Required

Body Parameters

None.

Response Information

Resource Description

WebAgencyAccountResponse
NameDescriptionTypeAdditional information
AccountItems

Collection of WebAgencyAccountData

None.

IsPrivate

boolean

None.

HasAccount

boolean

None.

CommonAccount

boolean

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountItems": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "IsPassword": true,
      "ShowName": "sample string 4",
      "Required": true,
      "ForReservationCenter": true
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "IsPassword": true,
      "ShowName": "sample string 4",
      "Required": true,
      "ForReservationCenter": true
    }
  ],
  "IsPrivate": true,
  "HasAccount": true,
  "CommonAccount": true,
  "RedirectUrl": "sample string 3",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-11-23T17:23:24.7870068+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<WebAgencyAccountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.MasterAgentDictionary.Contract">
  <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 3</RedirectUrl>
  <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
    <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:23:24.7870068+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <AccountItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.MasterAgentDictionary.Contract.Entities">
    <d2p1:WebAgencyAccountData>
      <d2p1:ForReservationCenter>true</d2p1:ForReservationCenter>
      <d2p1:IsPassword>true</d2p1:IsPassword>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Required>true</d2p1:Required>
      <d2p1:ShowName>sample string 4</d2p1:ShowName>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:WebAgencyAccountData>
    <d2p1:WebAgencyAccountData>
      <d2p1:ForReservationCenter>true</d2p1:ForReservationCenter>
      <d2p1:IsPassword>true</d2p1:IsPassword>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Required>true</d2p1:Required>
      <d2p1:ShowName>sample string 4</d2p1:ShowName>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:WebAgencyAccountData>
  </AccountItems>
  <CommonAccount>true</CommonAccount>
  <IsPrivate>true</IsPrivate>
</WebAgencyAccountResponse>