Seller Reseller Edit
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
| Parameter | Required | Description |
|---|---|---|
| sellerkey | Yes | Seller API Key |
| username | Yes | Current reseller username |
| new_username | Yes | New reseller username |
| new_password | No | New 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);