Deleting an agent account

This endpoint is used for deleting a store agent. It can be accessed via both GET and POST requests.

GET / POST https://shopiro.ca/api/v1/agents/delete?aid={agentid}

Request Parameters

  • aid: The agent's user ID. (Required)
Response Structure

Response Structure

The response will be a JSON object indicating the outcome of the deletion process.

  • success: Contains the user ID if the deletion was successful.
  • failed: Indicates an unknown error occurred during the deletion process.

Example Usage

On this page