GETGet Token Info API
Use Case
Used to fetch token info along with real-time token status
Request Query/Path Param
ATTRIBUTE | DESCRIPTION |
---|---|
mid 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 |
tokenIndexNumber conditional |
Unique Token Reference ID provided by Paytm Token Service Condition: tokenIndexNumber need to passed if request-id is blank |
request-id conditional |
Unique request-id sent during card provision or Order ID of the 2FA transaction. Condition: request Id need to passed if tokenIndexNumber is blank |
HTTP Headers
ATTRIBUTE | DESCRIPTION |
---|---|
version mandatory |
Version of the API Possible Value: V1 |
requestTimestamp mandatory |
EPOCH timestamp of the time at which request is being sent Possible Value: 1588402269 |
requestId mandatory |
Merchant’s Unique Request ID for card tokenization Possible Value: Any |
signatureType mandatory |
Authorization method for this request Possible Value:CHECKSUM |
signature mandatory |
Paytm validates the request and ensures that parameters are not tempered by verifying the signature in the request. Signature will be created using using path param (mid), mandatory HTTP headers(requestTimeStamp, version) and not empty query params (requestId, tokenIndexNumber). For creating the checksum (signature) refer to the steps given in Form Post Checksum Logic . Possible Value:Any |
Response Attributes
Head
Attribute | Description |
---|---|
Version string | Version of the API |
responseTimestamp string | EPOCH timestamp of the time at which request is being received Possible Value: 1588402269 |
requestId string | Merchant’s Unique Request ID for card tokenization Possible Value: Any |
Body
Attribute | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mid string | 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 string | Token Info object contains the card token information.Some fields will not be available if the token status is INIT. | ||||||||||||||||||||||||||||
TokenInfo +
| |||||||||||||||||||||||||||||
requestId string | Merchant request-id sent during card provisioning/tokenization | ||||||||||||||||||||||||||||
resultInfo string | Status object | ||||||||||||||||||||||||||||
ResultInfo +
|
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
00 | SUCCESS | SUCCESS |
100 | PENDING | PENDING |
150 | PENDING | SYSTEM_ERROR |
400 | FAILED | BAD_REQUEST |
401 | FAILED | FAILURE |
405 | FAILED | Invalid Token Index Number |
406 | FAILED | Invalid request id |
407 | FAILED | Incorrect mid |
408 | FAILED | Incorrect User ID |
409 | FAILED | Incorrect details passed |
410 | FAILED | Mandatory fields missing |
730 | FAILED | Error from card network |
440 | FAILED | Operation not supported by network |
442 | FAILED | Unable to found TRID |
443 | FAILED | TRID is not in Active state |
500 | FAILED | INTERNAL_SYSTEM_ERROR |
502 | FAILED | SYSTEM_ERROR |
1001 | FAILED | Signature Validation Failure |
1002 | FAILED | CheckSum Validation Failure |
1003 | FAILED | Jwt Validation Failure |
1004 | FAILED | Merchant Id is missing |
1005 | FAILED | Signature type is missing |
1006 | FAILED | Head is missing |
1400 | FAILED | Signature Type is invalid |
700 | FAILED | Bad Request from card Network |
701 | FAILED | Failure from card network |
702 | FAILED | Error from Network |
708 | FAILED | Error connecting with card network |
709 | FAILED | Error communicating with card network |
711 | FAILED | Invalid card details |
712 | FAILED | Card not eligible |
713 | FAILED | Card not allowed |
714 | FAILED | Further operations for this card are not allowed |
715 | FAILED | Requested action for the token not allowed or token is invalid |
716 | FAILED | CARD_DECLINED |
721 | FAILED | Error with Network |
723 | FAILED | Error While connecting to card network |
724 | FAILED | TOKEN_NOT_FOUND |
726 | FAILED | TOKEN_INVALID_STATE |
727 | FAILED | INVALID_AUTHREFNO |
728 | FAILED | TOKEN_SUSPENDED |
729 | FAILED | TOKEN_EXPIRED |
750 | FAILED | REQUIRE_ADDITIONAL_AUTHENTICATION |
801 | PENDING | Awaiting response from the network |
curl -X GET 'https://securegw-stage.paytm.in/coft-center/coft/merchant/YOUR_MID/getTokenDetail?requestId=1698842607_001&tokenIndexNumber=654247f1417XXXXccc5161c6' --header 'version: v1' --header 'requestTimestamp: 1637660536' --header 'requestId: 1637660536' --header 'signatureType: CHECKSUM' --header 'signature: voE4cQzEufqbFPVEvPqIzi88NfS5s8I2ALGuIv3BOidfC09lQhsV9F+WEiR2enemZY84w5fYcXRP4KW9N06eBbwcUL0CwMsN9yshuk7Seog='