Template:AOTGResponseStatus: Difference between revisions

no edit summary
(Created page with "*'''InQueue''' status Indicates that the requests to AOTG Server is waiting to be processed. *Usually this happen when many requests are in a loop. *:Tips: Make sure the reque...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1:
__NOTOC__
 
'''4 possible responses from process status.'''
=====Failed=InQueue status======
*'''InQueue''' status Indicates that the requests to AOTG Server is waiting to be processed.
*Usually this happen when many requests are called to AOTG Web API in within a loopsecond.
*:Tips: Make sure the request in the loop has a pause time, or use 'batch' method to process multiple records in single request.
*:or use 'batch' method to process multiple records in single request if applicable.
<syntaxhighlight lang="json-object">
 
{
<span style="color:#336600;">"RequestId"</span>: <span style="color:#cc0000;">{{{1}}}</span>,
<span style="color:#336600;">"Status"</span>: <span style="color:#cc0000;">"InQueue"</span>
 
}
=====Completed=Processing status======
</syntaxhighlight>
=====*'''Processing''' status===== indicates that the request is not complete.
<span style="color:#336600;">"RequestId"</span>: <span style="color:#cc0000;">{{{1}}}</span>,
*'''Processing''' status indicates that the Create debtor request is not complete.
<span style="color:#336600;">"Status"</span>: <span style="color:#cc0000;">"Processing"</span>
<syntaxhighlight lang="json-object">
 
{
======Completed status======
"RequestId": {{{1}}},
*'''Completed''' status Indicates that the Create debtor request has been performed and succeeded.
"Status": "Processing"
<span style="color:#336600;">"RequestId"</span>: <span style="color:#cc0000;">{{{1}}},
}
<span style="color:#336600;">"Status"</span>: <span style="color:#cc0000;">"Completed"</span>
</syntaxhighlight>
 
=====Completed status=====
======Failed status======
*'''Completed''' status Indicates that the Create debtor request has been performed and succeeded.
*'''ProcessingFailed''' status indicates that the Createrequest debtorhas requestbeen performed isbut nothas completeerror.
<syntaxhighlight lang="json-object">
<span style="color:#336600;">"RequestId"</span>: <span style="color:#cc0000;">{{{1}}},
{
<span style="color:#336600;">"Status"</span>: <span style="color:#cc0000;">"Failed"</span>
"RequestId": {{{1}}},
"Status": "Completed"
}
</syntaxhighlight>
=====Failed status=====
*'''Failed''' status indicates that the Create debtor request has been performed but has error.
<syntaxhighlight lang="json-object">
{
"RequestId": {{{1}}},
"Status": "Failed"
}
</syntaxhighlight>