AOTG API: Update Debtor: Difference between revisions

No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2:
==Update Debtor==
Update a specific Debtor.
{{AOTGApiMethodsSpec|PUT|/api/public/v1/Debtor|Params=None}}
==API Request Flow==
 
[[File:AOTGApiCompleteOrFailFlow.png|link=]]
#Submit Update Debtor request
#Check the successful request status, if the action is '''Completed''' or '''Failed'''.
#To get the failed reason, use RESULT method to retrieve the message of completed or failed.
 
==Code Snippets==
*Add header of '''"SOTC_AUTH"''', and assign value of '''AccessToken'''.
*The value "{[!MzAwLUEwMDI!]}" of '''Id''' in the body is a unique identifier of a specific debtor that is generated by AOTG.
*:See:See [[AOTG API: Get List of Debtor#Response_From_Result|Get List of Debtor]] on how to obtain '''Id''' (that is created in AOTG).
*Description is actually "Desc2" in AutoCount Accounting. It is the 2nd line of the Company Name in AutoCount Accounting.
*:Example: