NetCard Server Web API

<back to all web services

GetActivityByActivityId

The following routes are available for this service:
GET/Activities/GetActivityByActivityId/{ActivityId}

To override the Content-type in your clients 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 /xml/reply/GetActivityByActivityId HTTP/1.1 
Host: ncapi.net.au 
Content-Type: application/xml
Content-Length: length

<GetActivityByActivityId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.Activity">
  <ActivityId>0</ActivityId>
</GetActivityByActivityId>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetActivityByActivityIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.Activity">
  <Activity xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetCard.Server.API.DTO">
    <d2p1:ActivityId>0</d2p1:ActivityId>
    <d2p1:CurrentMember>0</d2p1:CurrentMember>
    <d2p1:CustomerId>0</d2p1:CustomerId>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:EndBookDate>0001-01-01T00:00:00</d2p1:EndBookDate>
    <d2p1:EndDate>0001-01-01T00:00:00</d2p1:EndDate>
    <d2p1:EventArea>String</d2p1:EventArea>
    <d2p1:Location>String</d2p1:Location>
    <d2p1:MaxMember>0</d2p1:MaxMember>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:NeedApprove>false</d2p1:NeedApprove>
    <d2p1:StartBookDate>0001-01-01T00:00:00</d2p1:StartBookDate>
    <d2p1:StartDate>0001-01-01T00:00:00</d2p1:StartDate>
    <d2p1:Status>String</d2p1:Status>
    <d2p1:Type>String</d2p1:Type>
  </Activity>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
</GetActivityByActivityIdResponse>