| GET | /TFM/Documents/Statements/{DebtorID} | One debtor's printed statement as at a date (the fields the statement prints, from usp_JIWA_Debtors_StatementsAsAt; AsAt=yyyy-MM-dd is required). |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DebtorID | path | string | No | |
| AsAt | query | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DebtorID | form | string | No | |
| DebtorAccountNo | form | string | No | |
| DebtorName | form | string | No | |
| Address1 | form | string | No | |
| Address2 | form | string | No | |
| Address3 | form | string | No | |
| Address4 | form | string | No | |
| PostCode | form | string | No | |
| PeriodType | form | int? | No | |
| CurrentBalance | form | decimal? | No | |
| Period1Balance | form | decimal? | No | |
| Period2Balance | form | decimal? | No | |
| Period3Balance | form | decimal? | No | |
| TotalBalance | form | decimal? | No | |
| AsAt | form | string | No | |
| OurCompanyName | form | string | No | |
| OurCompanyABN | form | string | No | |
| OurCompanyAddress1 | form | string | No | |
| OurCompanyAddress2 | form | string | No | |
| OurCompanyPhone | form | string | No | |
| OurCompanyFax | form | string | No | |
| OurCompanyEmail | form | string | No | |
| CompanyLegalName | form | string | No | |
| CompanyTradingName | form | string | No | |
| Bank | form | TFMDocumentBank | No | |
| Transactions | form | List<TFMStatementDocumentTransaction> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountName | form | string | No | |
| BSB | form | string | No | |
| AccountNumber | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TransID | form | string | No | |
| InvRemitNo | form | string | No | |
| TransactionDate | form | DateTime? | No | |
| Reference | form | string | No | |
| Remark | form | string | No | |
| TransactionType | form | string | No | |
| DebitAmount | form | decimal? | No | |
| CreditAmount | form | decimal? | No | |
| TransactionBalance | form | decimal? | No | |
| DebitCredit | form | bool? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /TFM/Documents/Statements/{DebtorID} HTTP/1.1
Host: api.redpoint.com.au
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"DebtorID":"String","DebtorAccountNo":"String","DebtorName":"String","Address1":"String","Address2":"String","Address3":"String","Address4":"String","PostCode":"String","PeriodType":0,"CurrentBalance":0,"Period1Balance":0,"Period2Balance":0,"Period3Balance":0,"TotalBalance":0,"AsAt":"String","OurCompanyName":"String","OurCompanyABN":"String","OurCompanyAddress1":"String","OurCompanyAddress2":"String","OurCompanyPhone":"String","OurCompanyFax":"String","OurCompanyEmail":"String","CompanyLegalName":"String","CompanyTradingName":"String","Bank":{"AccountName":"String","BSB":"String","AccountNumber":"String"},"Transactions":[{"TransID":"String","InvRemitNo":"String","TransactionDate":"0001-01-01T00:00:00.0000000","Reference":"String","Remark":"String","TransactionType":"String","DebitAmount":0,"CreditAmount":0,"TransactionBalance":0,"DebitCredit":false}]}