Seller Reseller Edit

POST
https://authsecure.com/api/seller/

End/Modify user data and sessions directly securely.

Update reseller username and optionally change password.

Endpoint Details

GET /api/seller_reseller_edit.php

Query Parameters

ParameterRequiredDescription
sellerkeyYesSeller API Key
usernameYesCurrent reseller username
new_usernameYesNew reseller username
new_passwordNoNew password (optional)

Success Response

{
  "success": true,
  "msg": "Reseller updated successfully",
  "updated": {
    "old_username": "oldname",
    "new_username": "newname",
    "password_changed": true
  }
}

Failure Response

{
  "success": false,
  "msg": "Reseller not found"
}

Code Examples

fetch("http://localhost/commen/api/seller_reseller_edit.php?sellerkey=KEY&username=OLD&new_username=NEW&new_password=PASS")
 .then(r => r.json())
 .then(console.log);
<?php
echo file_get_contents(
 "http://localhost/commen/api/seller_reseller_edit.php?sellerkey=KEY&username=OLD&new_username=NEW&new_password=PASS"
);
?>
import requests
r = requests.get("http://localhost/commen/api/seller_reseller_edit.php", params={
 "sellerkey":"KEY",
 "username":"OLD",
 "new_username":"NEW",
 "new_password":"PASS"
})
print(r.text)
var client = new RestClient(
 "http://localhost/commen/api/seller_reseller_edit.php?sellerkey=KEY&username=OLD&new_username=NEW&new_password=PASS"
);
var res = client.Execute(new RestRequest(Method.GET));
Console.WriteLine(res.Content);