search

POSTToken Notify Webhook

Use Case

Webhook used by TG to notify successful/unsuccessful completion of token provisioning and/or Token Status. This included lifecycle updates triggered by the issuer.

Request Attributes

Content Type : JSON

Head

AttributeDescription
Version
string
mandatory

Version of the API
Possible Value: v1

requestTimestamp
string
mandatory

EPOCH timestamp of the time at which request is being sent

Possible Value: 1588402269

requestId
string
mandatory

Merchant’s Unique Request ID for card tokenization

Possible Value: Any

signature
string
mandatory

Paytm validates the request and ensures that parameters are not tempered by verifying the signature in the request. For creating the checksum (signature) refer to the steps given in Checksum Logic.
Note: Create the signature using the body parameter of the request.

Possible Value: Any

signatureType
string
mandatory

Authorization method for this request.

Possible Value: CHECKSUM

clientId
string
optional

Paytm uses the merchant key on the basis of clientId parameter value. It is required only if the merchant has more than one key.

encryptionKeyVersion
string
optional

Paytm uses the merchant key on the basis of the encryption key version. It is required only if the merchant has more than one key.

Possible Value: v1

Body

AttributeDescription
mid
string
mandatory

Paytm provides MID as a unique identifier to each merchant.For your staging MID, click here. You get the production MID post the account activation.

Example:INTEGR7769XXXXXX9383

tokenInfo
TokenInfo
mandatory

Token Info object contains the card token information

TokenInfo
+
AttributeDescription
tokenIndexNumber
string
mandatory

Unique Token Reference ID provided by Paytm Token Service
Possible Value:Any Alphanumeric

cardScheme
string
mandatory

The network used for card token generated
Possible Values: VISA, MASTER, RUPAY

tokenExpiry
string
mandatory

Expiry  of the card token
Possible Value:MMYYYY format .ie 092021

issuingBankName
string
mandatory

Name of the bank issuing the card
Possible Value:Any

cardSuffix
string
mandatory

Last 4 digits of the actual card
Possible Value:Any

tokenUniqueReference
string
optional

The unique reference allocated to the Primary Account Number by the network Provided if the tokenization was successful.
Possible Value:Any

panUniqueReference
string
conditional

Token reference number provided by card network.
Possible Value:Any

cardType
string
mandatory

Type of the card
Possible Values: CC or DC

displayName
string
mandatory

Display name of the card
Example: HDFC Bank Regalia

tokenSuffix
string
mandatory

Last 4 digits of token

tokenStatus
string
mandatory

The status of the token. Must be one of the four possible values.
INIT: Tokenization is not yet complete
SUSPENDED: Card Token has been temporarily disabled.
ACTIVE: Card token is active and transactions can be processed with the same.
DEAD: Card Token has been deleted permanently.
FAILED: Card Token failed by system or card network error.

Response Attributes

Content Type : JSON

Head

AttributeDescription
Version
string

Version of the API
Possible Value: v1

responseTimestamp
string

EPOCH timestamp of the time at which request is being received

Possible Value: 1588402269

Body

AttributeDescription
resultInfo
string
ResultInfo
+
AttributeDescription
resultCode
string

Response code for different failure reason

Possible Values: Any

resultStatus
string

Response status

Possible Values: S/F/U

resultMsg
string

Response message

Possible Values: Any

Response Codes & Messages

resultCoderesultStatusresultMsg
01SUCCESSSUCCESS
100PENDINGPENDING
150PENDINGSYSTEM_ERROR
400FAILEDBAD_REQUEST
401FAILEDFAILURE
405FAILEDInvalid Token Index Number
406FAILEDInvalid request id
407FAILEDIncorrect mid
408FAILEDIncorrect User ID
409FAILEDIncorrect details passed
410FAILEDMandatory fields missing
730FAILEDError from card network
440FAILEDOperation not supported by network
442FAILEDUnable to found TRID
443FAILEDTRID is not in Active state
500FAILEDINTERNAL_SYSTEM_ERROR
502FAILEDSYSTEM_ERROR
1001FAILEDSignature Validation Failure
1002FAILEDCheckSum Validation Failure
1003FAILEDJwt Validation Failure
1004FAILEDMerchant Id is missing
1005FAILEDSignature type is missing
1006FAILEDHead is missing
1400FAILEDSignature Type is invalid
700FAILEDBad Request from card Network
701FAILEDFailure from card network
702FAILEDError from Network
708FAILEDError connecting with card network
709FAILEDError communicating with card network
714FAILEDFurther operations for this card are not allowed
715FAILEDRequested action for the token not allowed or token is invalid
721FAILEDError with Network
723FAILEDError While connecting to card network
724FAILEDTOKEN_NOT_FOUND
727FAILEDINVALID_AUTHREFNO
728FAILEDTOKEN_SUSPENDED
729FAILEDTOKEN_EXPIRED
750FAILEDREQUIRE_ADDITIONAL_AUTHENTICATION
801PENDINGAwaiting response from the network
Staging
Production
<merchant provided response url at mid configuration time>copy icon
REQUEST
RESPONSE
CURL
curl -X POST '<merchant provided  response url at mid configuration time >' \
--header 'Content-Type: application/json' \
--data '{"mid":"INTEGR776986XXXXXX","tokenInfo":{"tokenIndexNumber":"619cb099c6dc4b25b7b6aa03","cardScheme":"VISA","tokenExpiry":"102022","issuingBankName":"ICICI Bank","cardSuffix":"3216","tokenUniqueReference":"60fafffc4255581da7d6150492140000","panUniqueReference":"V0010013021295362620166880000","displayName":"ICICI Bank","tokenStatus":"ACTIVE","cardType":"CC","tokenSuffix":"0431","tokenBin":"447968238"}}'
copy icon