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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetTenantLastInvoice HTTP/1.1 
Host: gallifrey.studebakersubmetering.com 
Content-Type: application/json
Content-Length: length

{"tenantId":0,"requestIpAddress":"String","token":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"tenantCanPayOnline":false,"paymentServiceProvider":0,"serviceAddress":"String","accountNumber":"String","billDate":"\/Date(-62135596800000-0000)\/","dueDate":"\/Date(-62135596800000-0000)\/","invoicePdfUrl":"String","invoiceDetails":[{"transactionDate":"\/Date(-62135596800000-0000)\/","description":"String","previousReadingDate":"\/Date(-62135596800000-0000)\/","previousReading":0,"currentReadingDate":"\/Date(-62135596800000-0000)\/","currentReading":0,"multiplier":0,"usage":0,"unit":"String","rate":0,"amount":0,"formattedTransactionDate":"String","formattedCurrentReadingDate":"String","formattedPreviousReadingDate":"String"}],"recentCredits":[{"refId":0,"transactionDate":"\/Date(-62135596800000-0000)\/","description":"String","amount":0,"formattedTransactionDate":"String","subOrder":0}],"insertUrl":"String","insertCaption":"String"}