AOTG API: Create AR Invoice: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 277: | Line 277: | ||
====Response Successful from HTTP RESULT==== |
====Response Successful from HTTP RESULT==== |
||
200 OK |
200 OK |
||
====Result of Failed reason==== |
====Example Result of Failed reason==== |
||
=====Debtor record not found===== |
=====Debtor record not found===== |
||
<tabber> |
<tabber> |
||
Line 313: | Line 313: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
</tabber> |
</tabber> |
||
=====Transaction date 02/05/2020 is not in the maintained Fiscal Year Range (01/01/2018 to 31/12/2019)===== |
|||
=====Debtor record not found===== |
|||
<tabber> |
<tabber> |
||
Body= |
Body= |
||
<syntaxhighlight lang="json-object"> |
<syntaxhighlight lang="json-object"> |
||
{ |
{ |
||
"RequestId": " |
"RequestId": "e7600918-8d9b-4708-9513-c510601efa14", |
||
"RequestName": "CreateARInvoice", |
"RequestName": "CreateARInvoice", |
||
"HostName": "---", |
"HostName": "---", |
||
"IPAddress": "---", |
"IPAddress": "---", |
||
"RequestTypeName": null, |
"RequestTypeName": null, |
||
"ResultJson": "{\"Message\":\" |
"ResultJson": "{\"Message\":\"Transaction date 02/05/2020 is not in the maintained Fiscal Year Range (01/01/2018 to 31/12/2019), if you want to enter transaction date outside the Fiscal Year Range, please go to Tools | Manage Fiscal Year to add new Fiscal Year.\",\"StackTrace\":\" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\\r\\n at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\\r\\n at PSW.SOTC.Accounting.InProcess.AppServiceDispatcher.<DispatchRequest>d__13.MoveNext()\",\"Source\":\"PSW.SOTC.Accounting.Provider.Autocount\"}", |
||
"RequestParamJson": null, |
"RequestParamJson": null, |
||
"ResultStream": null, |
"ResultStream": null, |
||
Line 331: | Line 331: | ||
"AccountBookInfo": "Plug-In 1.9 Test-1.0.9.77", |
"AccountBookInfo": "Plug-In 1.9 Test-1.0.9.77", |
||
"AccountBookDBInfo": "1.0.9.77", |
"AccountBookDBInfo": "1.0.9.77", |
||
"Timestamp": "2019-03-04T09: |
"Timestamp": "2019-03-04T09:35:04.2202143Z", |
||
"ResultedTimestamp": null, |
"ResultedTimestamp": null, |
||
"ProcessingInterval": 0. |
"ProcessingInterval": 0.76946949999999992, |
||
"InQueueInterval": null, |
"InQueueInterval": null, |
||
"ResultFileURL": null |
"ResultFileURL": null |
||
Line 342: | Line 342: | ||
<syntaxhighlight lang="json-object"> |
<syntaxhighlight lang="json-object"> |
||
{ |
{ |
||
"Message": "Transaction date 02/05/2020 is not in the maintained Fiscal Year Range (01/01/2018 to 31/12/2019), if you want to enter transaction date outside the Fiscal Year Range, please go to Tools | Manage Fiscal Year to add new Fiscal Year.", |
|||
"Message": "Debtor record not found (AccNo=300-T001).", |
|||
"StackTrace": " at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)rn at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)rn at PSW.SOTC.Accounting.InProcess.AppServiceDispatcher.<DispatchRequest>d__13.MoveNext()", |
"StackTrace": " at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)rn at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)rn at PSW.SOTC.Accounting.InProcess.AppServiceDispatcher.<DispatchRequest>d__13.MoveNext()", |
||
"Source": "PSW.SOTC.Accounting.Provider.Autocount" |
"Source": "PSW.SOTC.Accounting.Provider.Autocount" |
||
Line 348: | Line 348: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
</tabber> |
</tabber> |
||
=====Unknown Sql Exception...===== |
|||
<tabber> |
|||
Body= |
|||
<syntaxhighlight lang="json-object"> |
|||
{ |
{ |
||
"RequestId": " |
"RequestId": "fff14c1a-cdb5-4aa4-834d-0b9c0fea1e50", |
||
"RequestName": "CreateARInvoice", |
"RequestName": "CreateARInvoice", |
||
"HostName": "---", |
"HostName": "---", |
||
"IPAddress": "---", |
"IPAddress": "---", |
||
"RequestTypeName": null, |
"RequestTypeName": null, |
||
"ResultJson": "{\"Message\":\" |
"ResultJson": "{\"Message\":\"Unknown Sql Exception (Number=8178, Message=The parameterized query '(@p1 nvarchar(4000),@transDate datetime)SELECT A.BankBuyRate, A.' expects the parameter '@p1', which was not supplied.)\",\"StackTrace\":\" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\\r\\n at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\\r\\n at PSW.SOTC.Accounting.InProcess.AppServiceDispatcher.<DispatchRequest>d__13.MoveNext()\",\"Source\":\"BCE.Utils\"}", |
||
"RequestParamJson": null, |
"RequestParamJson": null, |
||
"ResultStream": null, |
"ResultStream": null, |
||
Line 364: | Line 367: | ||
"AccountBookInfo": "Plug-In 1.9 Test-1.0.9.77", |
"AccountBookInfo": "Plug-In 1.9 Test-1.0.9.77", |
||
"AccountBookDBInfo": "1.0.9.77", |
"AccountBookDBInfo": "1.0.9.77", |
||
"Timestamp": "2019-03- |
"Timestamp": "2019-03-04T07:38:47.2231847Z", |
||
"ResultedTimestamp": null, |
"ResultedTimestamp": null, |
||
"ProcessingInterval": |
"ProcessingInterval": 3.1802414, |
||
"InQueueInterval": null, |
"InQueueInterval": null, |
||
"ResultFileURL": null |
"ResultFileURL": null |
||
} |
} |
||
</syntaxhighlight> |
|||
|-| |
|||
Readable of ResultJson= |
|||
<syntaxhighlight lang="json-object"> |
|||
{ |
|||
"Message": "Unknown Sql Exception (Number=8178, Message=The parameterized query '(@p1 nvarchar(4000),@transDate datetime)SELECT A.BankBuyRate, A.' expects the parameter '@p1', which was not supplied.)", |
|||
"StackTrace": " at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)rn at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)rn at PSW.SOTC.Accounting.InProcess.AppServiceDispatcher.<DispatchRequest>d__13.MoveNext()", |
|||
"Source": "BCE.Utils" |
|||
} |
|||
</syntaxhighlight> |
|||
</tabber> |
|||
<br/> |
<br/> |