AOTG API: Get List of AR Invoice: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 237: | Line 237: | ||
200 OK |
200 OK |
||
====Response Successful Body==== |
====Response Successful Body==== |
||
<tabber> |
|||
Body= |
|||
<syntaxhighlight lang="json-object"> |
<syntaxhighlight lang="json-object"> |
||
{ |
|||
"RequestId": "f5175ac-8d11-4593-96ce-ccd36085d0d1", |
|||
"RequestName": "GetARInvoiceList", |
|||
"HostName": "---", |
|||
"IPAddress": "---", |
|||
"RequestTypeName": "ARInvoice", |
|||
"ResultJson": "[{\"DebtorCode\":\"300-D001\",\"CompanyName\":\"DEF CUSTOMER\",\"Description\":\"INVOICE\",\"DocDate\":\"2019-02-11T00:00:00\",\"JournalType\":null,\"DueDate\":\"2019-02-11T00:00:00\",\"DocNo\":\"I-000036\",\"LocalAmount\":300.00,\"TaxableAmount\":0.0,\"OutstandingAmount\":300.00,\"CurrencyCode\":\"MYR\",\"Agent\":\"TOM\",\"SourceType\":\"IV\",\"SourceKey\":\"1213\",\"CurrencyRate\":0.0,\"Id\":\"1219\",\"RefNo2\":null,\"CreditTerm\":null,\"InclusiveTax\":false,\"Note\":null,\"Total\":0.0,\"Amount\":300.00,\"TaxAmount\":0.00,\"DetailsLine\":[]},{\"DebtorCode\":\"300-A001\",\"CompanyName\":\"ABC CUSTOMER\",\"Description\":\"CASH SALE\",\"DocDate\":\"2019-02-11T00:00:00\",\"JournalType\":null,\"DueDate\":\"2019-02-11T00:00:00\",\"DocNo\":\"CS-000002\",\"LocalAmount\":100.00,\"TaxableAmount\":0.0,\"OutstandingAmount\":100.00,\"CurrencyCode\":\"MYR\",\"Agent\":\"\",\"SourceType\":\"CS\",\"SourceKey\":\"1222\",\"CurrencyRate\":0.0,\"Id\":\"1230\",\"RefNo2\":null,\"CreditTerm\":null,\"InclusiveTax\":false,\"Note\":null,\"Total\":0.0,\"Amount\":100.00,\"TaxAmount\":0.00,\"DetailsLine\":[]},{\"DebtorCode\":\"300-C002\",\"CompanyName\":\"CALIFORNIA SB\",\"Description\":\"SALES\",\"DocDate\":\"2019-02-04T00:00:00\",\"JournalType\":null,\"DueDate\":\"2019-02-04T00:00:00\",\"DocNo\":\"I-000042\",\"LocalAmount\":402.00,\"TaxableAmount\":0.0,\"OutstandingAmount\":402.00,\"CurrencyCode\":\"MYR\",\"Agent\":\"\",\"SourceType\":\"\",\"SourceKey\":\"\",\"CurrencyRate\":0.0,\"Id\":\"1299\",\"RefNo2\":null,\"CreditTerm\":null,\"InclusiveTax\":false,\"Note\":null,\"Total\":0.0,\"Amount\":402.00,\"TaxAmount\":0.00,\"DetailsLine\":[]}]", |
|||
"RequestParamJson": null, |
|||
"ResultStream": null, |
|||
"ResultTypeName": "System.Collections.Generic.List`1[PSW.SOTC.Accounting.Provider.Models.ARInvoiceEntity]", |
|||
"Status": "Completed", |
|||
"Version": "1.2.19051.12002", |
|||
"AccountBookInfo": "Plug-In 1.9 Test;1.0.9.77", |
|||
"AccountBookDBInfo": "1.0.9.77", |
|||
"Timestamp": "2019-03-04T04:58:15.0678413Z", |
|||
"ResultedTimestamp": "2019-03-04T04:58:15.1308412Z", |
|||
"ProcessingInterval": 0.26281319999999997, |
|||
"InQueueInterval": -0.0898255, |
|||
"ResultFileURL": null |
|||
} |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
|-| |
|||
Readable of ResultJson= |
|||
<syntaxhighlight lang="json-object"> |
|||
[ |
|||
{ |
|||
"DebtorCode": "300-D001", |
|||
"CompanyName": "DEF CUSTOMER", |
|||
"Description": "INVOICE", |
|||
"DocDate": "2019-02-11T00:00:00", |
|||
"JournalType": null, |
|||
"DueDate": "2019-02-11T00:00:00", |
|||
"DocNo": "I-000036", |
|||
"LocalAmount": 300, |
|||
"TaxableAmount": 0, |
|||
"OutstandingAmount": 300, |
|||
"CurrencyCode": "MYR", |
|||
"Agent": "TOM", |
|||
"SourceType": "IV", |
|||
"SourceKey": "1213", |
|||
"CurrencyRate": 0, |
|||
"Id": "1219", |
|||
"RefNo2": null, |
|||
"CreditTerm": null, |
|||
"InclusiveTax": false, |
|||
"Note": null, |
|||
"Total": 0, |
|||
"Amount": 300, |
|||
"TaxAmount": 0, |
|||
"DetailsLine": [] |
|||
}, |
|||
{ |
|||
"DebtorCode": "300-A001", |
|||
"CompanyName": "ABC CUSTOMER", |
|||
"Description": "CASH SALE", |
|||
"DocDate": "2019-02-11T00:00:00", |
|||
"JournalType": null, |
|||
"DueDate": "2019-02-11T00:00:00", |
|||
"DocNo": "CS-000002", |
|||
"LocalAmount": 100, |
|||
"TaxableAmount": 0, |
|||
"OutstandingAmount": 100, |
|||
"CurrencyCode": "MYR", |
|||
"Agent": "", |
|||
"SourceType": "CS", |
|||
"SourceKey": "1222", |
|||
"CurrencyRate": 0, |
|||
"Id": "1230", |
|||
"RefNo2": null, |
|||
"CreditTerm": null, |
|||
"InclusiveTax": false, |
|||
"Note": null, |
|||
"Total": 0, |
|||
"Amount": 100, |
|||
"TaxAmount": 0, |
|||
"DetailsLine": [] |
|||
}, |
|||
{ |
|||
"DebtorCode": "300-C002", |
|||
"CompanyName": "CALIFORNIA SB", |
|||
"Description": "SALES", |
|||
"DocDate": "2019-02-04T00:00:00", |
|||
"JournalType": null, |
|||
"DueDate": "2019-02-04T00:00:00", |
|||
"DocNo": "I-000042", |
|||
"LocalAmount": 402, |
|||
"TaxableAmount": 0, |
|||
"OutstandingAmount": 402, |
|||
"CurrencyCode": "MYR", |
|||
"Agent": "", |
|||
"SourceType": "", |
|||
"SourceKey": "", |
|||
"CurrencyRate": 0, |
|||
"Id": "1299", |
|||
"RefNo2": null, |
|||
"CreditTerm": null, |
|||
"InclusiveTax": false, |
|||
"Note": null, |
|||
"Total": 0, |
|||
"Amount": 402, |
|||
"TaxAmount": 0, |
|||
"DetailsLine": [] |
|||
} |
|||
] |
|||
</syntaxhighlight> |
|||
</tabber> |
|||
<br/> |
<br/> |