AOTG API: Create AR Invoice: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 277:
====Response Successful from HTTP RESULT====
200 OK
====Example Result of Failed reason====
=====Debtor record not found=====
<tabber>
Line 313:
</syntaxhighlight>
</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>
Body=
<syntaxhighlight lang="json-object">
{
"RequestId": "252daceee7600918-59dd8d9b-4ac14708-85eb9513-450fc71ef78dc510601efa14",
"RequestName": "CreateARInvoice",
"HostName": "---",
"IPAddress": "---",
"RequestTypeName": null,
"ResultJson": "{\"Message\":\"DebtorTransaction recorddate 02/05/2020 is not foundin the maintained Fiscal Year Range (AccNo=300-T00101/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,
"ResultStream": null,
Line 331:
"AccountBookInfo": "Plug-In 1.9 Test-1.0.9.77",
"AccountBookDBInfo": "1.0.9.77",
"Timestamp": "2019-03-04T09:0335:2804.4764315Z2202143Z",
"ResultedTimestamp": null,
"ProcessingInterval": 0.454203276946949999999992,
"InQueueInterval": null,
"ResultFileURL": null
Line 342:
<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()",
"Source": "PSW.SOTC.Accounting.Provider.Autocount"
Line 348:
</syntaxhighlight>
</tabber>
=====Unknown Sql Exception...=====
 
<tabber>
 
Body=
<syntaxhighlight lang="json-object">
{
"RequestId": "e6600918fff14c1a-8d9bcdb5-47084aa4-9513834d-c510601efa140b9c0fea1e50",
"RequestName": "CreateARInvoice",
"HostName": "---",
"IPAddress": "---",
"RequestTypeName": null,
"ResultJson": "{\"Message\":\"TransactionUnknown dateSql 02/05/2020Exception is(Number=8178, notMessage=The inparameterized thequery maintained Fiscal Year Range'(@p1 nvarchar(01/01/2018 to 31/12/20194000),@transDate ifdatetime)SELECT youA.BankBuyRate, wantA.' to enter transaction date outsideexpects the Fiscalparameter Year Range'@p1', pleasewhich gowas tonot Tools | Manage Fiscal Year to add new Fiscal Yearsupplied.)\",\"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.ProviderBCE.AutocountUtils\"}",
"RequestParamJson": null,
"ResultStream": null,
Line 364 ⟶ 367:
"AccountBookInfo": "Plug-In 1.9 Test-1.0.9.77",
"AccountBookDBInfo": "1.0.9.77",
"Timestamp": "2019-03-04T0904T07:3538:0447.2202143Z2231847Z",
"ResultedTimestamp": null,
"ProcessingInterval": 03.769469499999999921802414,
"InQueueInterval": 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/>