Studebaker Submetering API Services

<back to all web services

LoginAsTenant

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

HTTP + CSV

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

POST /csv/reply/LoginAsTenant HTTP/1.1 
Host: gallifrey.studebakersubmetering.com 
Content-Type: text/csv
Content-Length: length

RequestIpAddress,StaffUsername,StaffPassword,TenantId
String,String,String,0

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

LoginToken,LastLogin,LastLoginUtc,FormattedLastLogin,UserType,UserId,Name,NewPasswordRequired,EmailAddress,ResponseStatus
String,0001-01-01,0001-01-01,String,0,String,String,False,String,"{errorCode:String,message:String,stackTrace:String,errors:[{errorCode:String,fieldName:String,message:String}]}"