GSD-Dongle Api Agent
API Request
POST https://gsd-dongle.org/api/agent/
Request : Public Parameter
FiledName |
Format |
Descriotion |
request |
string |
method name |
email |
string |
agent email |
password |
string |
agent password |
customer_email |
string |
customer email |
Response
{
status : Boolean
code : int
message : string
data : object
}
Method Name
CheckUser
Request : Public Parameter
{
UserID : int ,
License : {[id , expires_at , status , unlimited ] , ...},
Simcard : {[id , expires_at , status , unlimited] , ...},
}
GetListProduct
Request : Public Parameter
{
[id : int, title : string, validity_period:int ], ...
}
OrderProduct
Request : Public Parameter &
{
product : string
}
Error
Code |
Descriotion |
-1 |
Agent Information not found |
-2 |
Wrong password |
-3 |
The agent is not allowed to operate |
-4 |
Access Denied : Panel |
-5 |
Access Denied : Agent |
-10 |
Not Found Customer |
-11 |
Customer : Access Denied |
-300 |
Wrong product name |
-301 |
Customer not found |
-302 |
Customer blocked |
-303 |
Error Server |
-304 |
Access Denied |
-305 |
Low Inventory |
-306 |
Access Denied |
-307 |
More than 30 days left until the subscription expires |
GSD-Dongle Api Agent
API Request
POST https://gsd-dongle.org/api/agent/
Request : Public Parameter
Response
{ status : Boolean code : int message : string data : object }
Method Name
CheckUser
Request : Public Parameter
{ UserID : int , License : {[id , expires_at , status , unlimited ] , ...}, Simcard : {[id , expires_at , status , unlimited] , ...}, }
GetListProduct
Request : Public Parameter
{ [id : int, title : string, validity_period:int ], ... }
OrderProduct
Request : Public Parameter &
{ product : string }
Error