Update Link API

Checksum required: YES

Use Case


  • This API would be used to update the existing links for the merchant
  • Please note that only Link Description and Expiry Date can be modified.

Request Parameters:

API Content format: JSON

Head

PARAMETERDESCRIPTIONMANDATORY
timestamp longUnix Timestamp of the requestYES
clientId stringClientId by which key checksum is created, required to validate the checksumYES
Version stringVersion of the API. Current version is v1YES
channelId stringChannel by which call is initiatedYES
tokenType AESType of tokenYES
Signature StringChecksum string created by using Paytm checksum logicYes

Body

PARAMETERDESCRIPTIONMANDATORY
merchantRequestId StringUnique ID to be generated by merchant.NO
mid StringMerchant unique identifier, Unique Id for merchant provided by PaytmYES
linkId longLink ID for which updation request is madeYES
linkDescription StringDescription of the link that merchant wants to display to customerYES
expiryDate StringExpiry date of the link that needs to be updatedYES
amount DoubleAmount that needs to be updatedNO

Response Parameters

Head

PARAMETERDESCRIPTIONMANDATORY
timestamp longUnix Timestamp of the requestYES
clientId stringClientId by which key checksum is created, required to validate the checksumYES
Version stringVersion of the API. Current version is v1YES
channelId stringChannel by which call is initiatedYES
tokenType AESType of tokenYES
signature StringChecksum string created by using Paytm checksum logicYes

Body

PARAMETERDESCRIPTIONMANDATORY
resultInfo JSON Object jsonResult information, refer the Result JSON Object tableYES

resultInfo JSON Object

PARAMETERDESCRIPTIONMANDATORY
resultStatus StringStatus of API callYES
resultCode intResult code for each resultYES
resultMessage StringMessage contain the information about the resultYES

Endpoints

Staging: https://securegw-stage.paytm.in/link/update

Production: https://securegw.paytm.in/link/update

Request CodeResponse JSON
curl -X POST https://securegw-stage.paytm.in/link/update -H 'Content-Type: application/json' -d '{"body":{"mid":"xxxxxxxxxxxxxxxxxxx","linkId":"83","linkDescription":"this is only testing updated link...","expiryDate":"10/04/2019"},"head":{"timestamp":"1554798051","clientId":"C11","version":"v1","channelId":"WEB","tokenType":"AES","signature":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}}'