RHP_API

<back to all web services

AddSupportTicket

The following routes are available for this service:
POST/Support/Contact
AddNewSupportTicket Parameters:
NameParameterData TypeRequiredDescription
AttachmentsformList<int>No
CreateNewSupportTicket Parameters:
NameParameterData TypeRequiredDescription
EmailAddressformstringNo
SuppliedUsernameformstringNo
SubjectformstringNo
EnquiryformstringNo
CategoryIDformintNo
SiteCountryIDformintNo
UserAgentformstringNo
IPAddressformstringNo
SupportTicketListItem Parameters:
NameParameterData TypeRequiredDescription
TicketRefformstringNo
StatusformstringNo
CategoryformstringNo
MessageformstringNo
DateformDateTimeNo
NewCountformintNo
IsAdminformboolNo
TitleformstringNo

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

HTTP + XML

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

POST /Support/Contact HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AddSupportTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <CategoryID xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</CategoryID>
  <EmailAddress xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</EmailAddress>
  <Enquiry xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</Enquiry>
  <IPAddress xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</IPAddress>
  <SiteCountryID xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</SiteCountryID>
  <Subject xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</Subject>
  <SuppliedUsername xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</SuppliedUsername>
  <UserAgent xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</UserAgent>
  <Attachments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
    <d2p1:int>0</d2p1:int>
  </Attachments>
</AddSupportTicket>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SupportTicketListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
  <Category>String</Category>
  <Date>0001-01-01T00:00:00</Date>
  <IsAdmin>false</IsAdmin>
  <Message>String</Message>
  <NewCount>0</NewCount>
  <Status>String</Status>
  <TicketRef>String</TicketRef>
  <Title>String</Title>
</SupportTicketListItem>