Get Transaction AuthToken


There are following Transaction operations using our REST API :

 Merchant/Partner will get unique AuthToken.Using that AuthToken, merchant/partner is able to perform transactions.This Authentication token will be valid for 1 hour.

Get Merchant AuthToken ?

The POST request will be send over HTTPS to the transactionServices/REST/v1/authToken endpoint.

In our API Specifications you can find a full list of parameters that can be sent in the initial request.

  In authentication.sKey, you need to pass Merchant's Secret Key .

Sample Request

Language:
curl https://test.paymentz.com/transactionServices/REST/v1/authToken \
	-d "authentication.partnerId=195" \
	-d "merchant.username=testdoc" \
	-d "authentication.sKey=secureKey"

Sample Response

Language:
{
 "partnerId": "197",
 "memberId": "11359",
 "result": {
  "code": "200",
  "description": "Token generated successfully"
 },
 "timestamp": "2017-10-25 12:47:43",
 "LoginName": "DocAgnipayMerchant",
 "AuthToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjb25tZXJjaGFudDEiLCJyb2xlIjoibWVyY2hhbnQiLCJpc3MiOiJQWiIsImV4cCI6MTUwMTE0NjY0MX0.TFmGGKDUgkktmZQvrUTeox1buH1J6lgBVE3Mcy8OVjA"
}

Get Partner AuthToken ?

The POST request will be send over HTTPS to the transactionServices/REST/v1/partnerAuthToken endpoint.

In our API Specifications you can find a full list of parameters that can be sent in the initial request.

  In authentication.sKey, you need to pass Partner's Secret Key .

Sample Request

Language:
curl https://test.paymentz.com/transactionServices/REST/v1/partnerAuthToken \
	-d "authentication.partnerId=175" \
	-d "partner.userName=testdoc" \
	-d "authentication.sKey=secureKey"

Sample Response

Language:
{
 "partnerId": "175",
 "result": {
  "code": "200",
  "description": "Token generated successfully"
 },
 "timestamp": "2019-05-16 17:53:26",
 "LoginName": "testdoc",
 "AuthToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJQTE1QIiwicm9sZSI6InBhcnRuZXIiLCJpc3MiOiJQWiIsImV4cCI6MTU1ODAxMzAwNn0.eMe3bRjI2bTRoAa9aGLlE-mENoy3O0wLXos9DULYFqM"
}