API Queries - Delete Account
The delete_account function removes a parking service account from your Monetization account. Additional parameters are required for this function.
Additional Parameters
- account_id - The ID of the parking service account to delete. A list of parking service accounts and their IDs can be retrieved using the List Accounts API function. (Required)
Note: Make sure to URL encode all values.
Example query and response:
In this example, we will delete the parking service account with the ID 123 (account_id=123).
Example query:
https://www.above.com/api.php?username=user&api_key=key&mode=delete_account&account_id=123
Note: All data needs to be in POST and sending data in GET will result in error
Response for GET:
<error code="405" status="The requested resource does not support te HTTP method 'GET', Please use the 'POST' method for this operation due to security
considerations. Sending sensitive data via GET requests can expose it in URLs, serve logs and browser history, making it vulnerable to interception and unauthorized access. " />
Response for POST:
<results> <result account_id="123" status="Deleted" /> </results>
Error Responses:
Possible error responses for this function are:
- 405 - Requested resource does not support the HTTP method 'GET'
- 416 - Account id xx could not be found
- General errors, such as 200 - Internal Error or 300 - Username invalid.