Studebaker Submetering API Services

<back to all web services

GetTenantLastInvoice

The following routes are available for this service:
All Verbs/getTenantLastInvoiceGet the most recent invoice for a tenant. Note - it may be null for a new tenant

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/GetTenantLastInvoice HTTP/1.1 
Host: gallifrey.studebakersubmetering.com 
Content-Type: text/csv
Content-Length: length

TenantId,RequestIpAddress,Token
0,String,String

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

TenantCanPayOnline,PaymentServiceProvider,ServiceAddress,AccountNumber,BillDate,DueDate,InvoicePdfUrl,InvoiceDetails,RecentCredits,InsertUrl,InsertCaption
False,0,String,String,0001-01-01,0001-01-01,String,"[{transactionDate:0001-01-01,description:String,previousReadingDate:0001-01-01,previousReading:0,currentReadingDate:0001-01-01,currentReading:0,multiplier:0,usage:0,unit:String,rate:0,amount:0,formattedTransactionDate:String,formattedCurrentReadingDate:String,formattedPreviousReadingDate:String}]","[{refId:0,transactionDate:0001-01-01,description:String,amount:0,formattedTransactionDate:String,subOrder:0}]",String,String