POST api/GiftCertificate/delete
Request Information
URI Parameters
None.
Body Parameters
DeleteCertificateRequestName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
DeleteWithPayments | boolean |
None. |
|
IsSubsidies |
Признак того, что используется схема дотаций |
boolean |
None. |
DeleteSubsidies |
Флаг удаления дотаций |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "DeleteWithPayments": true, "IsSubsidies": true, "DeleteSubsidies": true }
application/xml, text/xml
Sample:
<DeleteCertificateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Certificates"> <DeleteSubsidies>true</DeleteSubsidies> <DeleteWithPayments>true</DeleteWithPayments> <Id>1</Id> <IsSubsidies>true</IsSubsidies> </DeleteCertificateRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DeleteCertificateResponseName | Description | Type | Additional information |
---|---|---|---|
IsDeleted | boolean |
None. |
|
NeedDeletePayments | boolean |
None. |
|
NeedDeleteSubsidies |
Флаг необходимости удаления дотаций |
boolean |
None. |
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsDeleted": true, "NeedDeletePayments": true, "NeedDeleteSubsidies": true, "RedirectUrl": "sample string 4", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:15:25.6404596+03:00", "UserMessages": "", "UserMessagesHtml": "" } }
application/xml, text/xml
Sample:
<DeleteCertificateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Certificates"> <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 4</RedirectUrl> <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:15:25.6404596+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField> <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField> <info /> </ResultQueryInfo> <IsDeleted>true</IsDeleted> <NeedDeletePayments>true</NeedDeletePayments> <NeedDeleteSubsidies>true</NeedDeleteSubsidies> </DeleteCertificateResponse>