This API allows merchants to retrieve payment details for a stored card token.
HTTP Method: GET
Environment
- Production Environment:
<info.storecard.service.url>/storecard/card/v1/cryptogram
Request headers
Parameter | Description |
---|---|
mid
| Merchant ID provided by PayU. Use the value provided in your PayU dashboard. |
Request body
Parameter | Description |
---|---|
userCredential
|
|
tokenType
|
|
cardToken
|
|
amount
|
|
currencyType
|
|
Sample request
curl --location '<info.storecard.service.url>/storecard/card/v1/cryptogram' \
--header 'Content-Type: application/json' \
--header 'mid: 2' \
--data '{
"userCredential": "sartaj:info",
"tokenType": "PayUToken",
"cardToken": "1817ca29b7cdd28a0e406",
"amount": "10",
"currencyType": "INR"
}'
Sample response
{
"message": "Instrument details",
"status": 1,
"result": {
"oneClickFlow": "",
"oneClickStatus": "",
"cardType": "AMEX",
"trid": "400000340055",
"networkToken": {
"tokenValue": "3711110000000001",
"tokenExpiryMonth": 10,
"tokenExpiryYear": 2026
},
"cardMode": "",
"par": "LI0K7PL4VJNHJZ6LVQ7LWXHGD3LPS",
"tokenReferenceId": "a98d513e56cbc4ef2fdb603ceb1027b2",
"cardNo": "XXXXXXXXXXXX1114",
"oneClickCardAlias": "",
"cardToken": "1817ca29b7cdd28a0e406",
"cardName": "",
"cryptogram": "AgAAAGQBdCZtW8sAmbHTg0UAAAA="
}
}
Response parameters
Parameter | Description | Example |
---|---|---|
message | Response message indicating the operation result. | Instrument details |
status | Status code for the operation. 1 for success, 0 for failure. | 1 |
result | Result of response in JSON format. For more information, refer to result JSON fields description |
result JSON fields description
Field | Description | Example |
---|---|---|
cardType | Card type. |
|
trid | Transaction ID. |
|
networkToken | The field contains the following fields:
|
|
par | Payment Account Reference. |
|
cardNo | Masked card number. |
|
cardToken | Card token. |
|
cryptogram | Generated encrypted string for payment security. |
|