POST api/partner/accountData
Request Information
URI Parameters
None.
Body Parameters
PartnerAccountSaveRequestName | Description | Type | Additional information |
---|---|---|---|
SupplierCode | string |
None. |
|
AccountItems | Collection of WebAgencyAccountData |
None. |
Request Formats
application/json, text/json
Sample:
{ "SupplierCode": "sample string 1", "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 } ] }
application/xml, text/xml
Sample:
<PartnerAccountSaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Areas.MasterAgentCatalogs.Models"> <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> <SupplierCode>sample string 1</SupplierCode> </PartnerAccountSaveRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
WebAgencySaveResponseName | Description | Type | Additional information |
---|---|---|---|
Success |
Результат ответа |
boolean |
None. |
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "RedirectUrl": "sample string 2", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:28:54.9377311+03:00", "UserMessages": "", "UserMessagesHtml": "" } }
application/xml, text/xml
Sample:
<WebAgencySaveResponse 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 2</RedirectUrl> <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:28:54.9377311+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField> <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField> <info /> </ResultQueryInfo> <Success>true</Success> </WebAgencySaveResponse>