GSD-Dongle Api Agent

  API Request

 POST https://gsd-dongle.org/api/agent/

FiledName Format Descriotion
request string method name
email string agent email
password string agent password
customer_email string customer email

Requests

CheckUser

Request

Response

{
     request : string
     email : string
     password : string
     customer_email : string
}

{
     status : Boolean
     code : int
     message : string
     data :  {

                     UserID : int ,
                     License : {[id , expires_at , status , unlimited , Renew] , …},
                     Dongle : {[id , expires_at , status , unlimited , Renew] , …},
                 }
}


Order

Request

Response

{
     request : string
     email : string
     password : string
     customer_email : string
     product : string,
     inheritor : int //ID to refer to a specific license or dongle
}
{
     status : Boolean
     code : int
     message : string
     data : object
}

List Product

Product Name Descriotion
License New User Or User who does not have License
Dongle All users are allowed to purchase the dongle to any number Disabled
Renew License Product renewal (Expiration date less than 30 days)
Renew Dongle Product renewal (Expiration date less than 30 days)

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