Generate Access Token

  1. Go to POSTMAN ,
  2. In the “ Enter request URL “ tab, POST request :
  3.     http://dev.deltasalesapp.com/tokenauthfetch
  4. Go to Body , Select raw and Text as JSON.
  5. In the body add the parameters as below
  6. The client id , client secret id and company id can be copied from the API page of DSA web
  7. Now replace the values as per your company’s generated details and Post Request
  8. {
        "clientid": "24",
        "clientsecret": "iYRLFyDgPZNBPerjCWr2doEBa3iYSl5AeEtSw1oP",
        "companyid": "6292338"
    }
  9. This will generate token
  10. In the Response tab, you should be getting Response as such :
  11. 
                                                        
  12. The token generated above is used for authorization while fetching response from various modules with respect to the APIS provided.
  13. The above generated token will expire in two cases : if we Regenerate a new token from the API page and another one id after its validity based on n no of days.