HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/GetUserAccountByUserId HTTP/1.1
Host: ncapi.net.au
Content-Type: application/xml
Content-Length: length
<GetUserAccountByUserId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.UserAccount">
<UserId>0</UserId>
</GetUserAccountByUserId>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetUserAccountByUserIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.UserAccount">
<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>
<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>
<UserAccount xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetCard.Server.API.DTO">
<d2p1:AccountCode>String</d2p1:AccountCode>
<d2p1:AccountPin>String</d2p1:AccountPin>
<d2p1:ActivationDate>0001-01-01T00:00:00</d2p1:ActivationDate>
<d2p1:AmountAvailable>0</d2p1:AmountAvailable>
<d2p1:AmountAvailable2>0</d2p1:AmountAvailable2>
<d2p1:AmountDeposited>0</d2p1:AmountDeposited>
<d2p1:Block>String</d2p1:Block>
<d2p1:CardNumber>String</d2p1:CardNumber>
<d2p1:CollectedLunchMoneyDate>0001-01-01T00:00:00</d2p1:CollectedLunchMoneyDate>
<d2p1:DischargeAmount>0</d2p1:DischargeAmount>
<d2p1:IncidentalInStatus>0</d2p1:IncidentalInStatus>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:LastUpdated>0001-01-01T00:00:00</d2p1:LastUpdated>
<d2p1:LunchMoney>0</d2p1:LunchMoney>
<d2p1:LunchMoneyStatus>0</d2p1:LunchMoneyStatus>
<d2p1:Note>String</d2p1:Note>
<d2p1:NumberOfShopsBuy>0</d2p1:NumberOfShopsBuy>
<d2p1:PalmId>String</d2p1:PalmId>
<d2p1:PinLockOutTimeUtc>0001-01-01T00:00:00</d2p1:PinLockOutTimeUtc>
<d2p1:ProfileImagePath>String</d2p1:ProfileImagePath>
<d2p1:RewardPoints>0</d2p1:RewardPoints>
<d2p1:SpendingLimit>0</d2p1:SpendingLimit>
<d2p1:UserAccountTypeId>0</d2p1:UserAccountTypeId>
<d2p1:UserId>0</d2p1:UserId>
</UserAccount>
</GetUserAccountByUserIdResponse>