WebAPI

<back to all web services

GetInvoices

The following routes are available for this service:
POST/GetInvoicesRESTFUL POST call with Account ID , Start and End Dates, and Page Size in the URI
Parameters:
NameParameterData TypeRequiredDescription
AccountIdpathintegerYes
PageSizepathintegerYes
PageNumberpathintegerYes
SortingpathstringNo
StartDatepathstringNoYYYY-MM-DD
EndDatepathstringNoYYYY-MM-DD

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/GetInvoices HTTP/1.1 
Host: api-preprod.merseyflow.co.uk 
Content-Type: text/csv
Content-Length: length

AccountId,PageSize,PageNumber,Sorting,StartDate,EndDate,SearchAmount,SearchInvoiceNumber
0,0,0,String,0001-01-01,0001-01-01,0,String

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

StatementId,StatementNumber,StatementDate,Month,Year,Day,PreviousBalance,AmountDue,TollFees,OtherCharges,Replenishments,Balance,BillingStartDate,BillingEndDate,DueDate,IsPaid,PaidDate
0,String,0001-01-01,0,0,0,0,0,0,0,0,0,0001-01-01,0001-01-01,0001-01-01,False,0001-01-01