From a64bf28328f30ded113bd76bff51b82cf29b088d Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Fri, 26 Jan 2024 03:25:37 +0800 Subject: [PATCH] Add documentation for delete_invoice.py --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 55de948..327b9c7 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,12 @@ to the Banqup API of Unifiedpost. - Fetch the invoice in Banqup to verify its existence in the portal and retrieve its id in Banqup. - Post a request to the Banqup API to mark the invoice as 'Paid'. - Display the response from the Banqup API, confirming the success or failure of the request. +* Run `python3 delete_invoice.py `, where `` is the human readable invoice number in Openbravo, to delete an invoice in Banqup portal via the API. + - The application will do the following: + - Authenticate with Banqup using OAuth2, for which it will launch a webbrowser to complete the authentication. The browser will receive the response from the Banqup server including the authentication token. The user will need to 'Copy' and 'Paste' this response at the corresponding prompt in the terminal. + - Fetch the invoice in Banqup to verify its existence in the portal and retrieve its id in Banqup. + - Post a request to the Banqup API to delete the invoice. + - Display the response from the Banqup API, confirming the success or failure of the request. **Credits**