AOTG API: Get List of Debtor: Difference between revisions

No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1:
==Get a list of Debtor==
Get all customers in account book.
{{AOTGApiMethodsSpec|GET|/api/public/v1/Debtor|Params=None}}
==API Request Flow==
[[File:AOTGApiRequestFlow.png|link=]]
Line 165:
}}
 
====Response Status====
"RequestId": {{AOTGResponseStatus|"a8ccd53f-75d8-4c99-262f-6f6201e61b74",}}
=====Response Successful HTTP Request=====
 
200 OK
=====Response Successful Body=====
Status shows the data is ready for retrieve.
<syntaxhighlight lang="json-object" highlight="3">
{
"RequestId": "a8ccd53f-75d8-4c99-262f-6f6201e61b74",
"Status": "Completed"
}
</syntaxhighlight>
<br/>
==Get Data (Result)==
Line 251 ⟶ 243:
200 OK
=====Response Successful Body=====
*The value "{[!MzAwLUEwMDE!]}" ofis the '''Id''' in '''ResultJson''' can be used for Update, DELETE and GET debtor record.
*'''ResultJson''' holds the array of debtor(s).
<tabber>
Line 287 ⟶ 279:
Readable of ResultJson=
Highlighted shows the '''Id''' of the debtor which is the identifier of the debtor that is generated by AOTG.
<syntaxhighlight lang="json-object" highlight="3,51,99" line>
[
{