NetCard Server Web API

<back to all web services

CancelActivity

The following routes are available for this service:
POST/InmateActivities/CancelActivity

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/CancelActivity HTTP/1.1 
Host: ncapi.net.au 
Content-Type: application/xml
Content-Length: length

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

<CancelActivityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.InmateActivity">
  <ErrorCode xmlns="http://schemas.servicestack.net/types">String</ErrorCode>
  <Message xmlns="http://schemas.servicestack.net/types">String</Message>
  <StackTrace xmlns="http://schemas.servicestack.net/types">String</StackTrace>
  <Errors xmlns="http://schemas.servicestack.net/types">
    <ResponseError>
      <ErrorCode>String</ErrorCode>
      <FieldName>String</FieldName>
      <Message>String</Message>
    </ResponseError>
  </Errors>
  <InmateActivity xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetCard.Server.API.DTO">
    <d2p1:Activity>
      <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>
    </d2p1:Activity>
    <d2p1:ActivityId>0</d2p1:ActivityId>
    <d2p1:ApprovedBy>0</d2p1:ApprovedBy>
    <d2p1:ApprovedDate>0001-01-01T00:00:00</d2p1:ApprovedDate>
    <d2p1:DateTimeJoin>0001-01-01T00:00:00</d2p1:DateTimeJoin>
    <d2p1:Inmate>
      <d2p1:AccountStatus>String</d2p1:AccountStatus>
      <d2p1:AvailableDeposit>0</d2p1:AvailableDeposit>
      <d2p1:Block>String</d2p1:Block>
      <d2p1:CashWithdrawalAmount>0</d2p1:CashWithdrawalAmount>
      <d2p1:CommitedOrdersAmount>0</d2p1:CommitedOrdersAmount>
      <d2p1:DischargeAmount>0</d2p1:DischargeAmount>
      <d2p1:DischargeDate>0001-01-01T00:00:00</d2p1:DischargeDate>
      <d2p1:DischargedFromFacility>String</d2p1:DischargedFromFacility>
      <d2p1:ExpectedDischargeDateUtc>0001-01-01T00:00:00</d2p1:ExpectedDischargeDateUtc>
      <d2p1:Facility>String</d2p1:Facility>
      <d2p1:FirstName>String</d2p1:FirstName>
      <d2p1:IJIS>String</d2p1:IJIS>
      <d2p1:InmateId>0</d2p1:InmateId>
      <d2p1:IsDischargeMoneyCollected>false</d2p1:IsDischargeMoneyCollected>
      <d2p1:IsDischarged>false</d2p1:IsDischarged>
      <d2p1:IsNewInmate>false</d2p1:IsNewInmate>
      <d2p1:IsReadyForDischarge>false</d2p1:IsReadyForDischarge>
      <d2p1:IsReadyForNextMoveOutFromFacility>false</d2p1:IsReadyForNextMoveOutFromFacility>
      <d2p1:LastName>String</d2p1:LastName>
      <d2p1:LayBy>0</d2p1:LayBy>
      <d2p1:NextMoveOutFromFacilityDateUtc>0001-01-01T00:00:00</d2p1:NextMoveOutFromFacilityDateUtc>
      <d2p1:PTS>0</d2p1:PTS>
      <d2p1:ReceivedDateTime>0001-01-01T00:00:00</d2p1:ReceivedDateTime>
      <d2p1:ReleaseDate>0001-01-01T00:00:00</d2p1:ReleaseDate>
      <d2p1:ReleaseStatus>String</d2p1:ReleaseStatus>
      <d2p1:Restrictions>String</d2p1:Restrictions>
      <d2p1:SavingsAccountBalance>0</d2p1:SavingsAccountBalance>
      <d2p1:SecurityStatus>String</d2p1:SecurityStatus>
      <d2p1:SpendingAccountBalance>0</d2p1:SpendingAccountBalance>
      <d2p1:UserId>0</d2p1:UserId>
      <d2p1:WTDSpend>0</d2p1:WTDSpend>
      <d2p1:WeeklySpendLimit>0</d2p1:WeeklySpendLimit>
    </d2p1:Inmate>
    <d2p1:InmateId>0</d2p1:InmateId>
    <d2p1:Status>String</d2p1:Status>
  </InmateActivity>
  <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>
</CancelActivityResponse>