POSTUpdate Transaction API
Use Case
This API updates txnAmount , goods , shippingInfo , extendInfo in order details in Native flow.
Request Attributes
Head
Attribute | Description |
---|---|
txnToken string mandatory | This is the unique transaction token received in the response of Initiate Transaction API. It is valid for 15 minutes. Example: f0bed899539742309eebd8XXXX7edcf61588842333227 |
version string optional | Version of the API. Example: v1 |
channelId string optional | The parameter value identifies the Channel for which API call is initiated. |
requestTimestamp string optional | EPOCH timestamp of the time at which request is being sent. |
clientId string optional | Paytm use the merchant key on the basis of clientId parameter value. It requires only if the merchant has more than one key. |
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. |
Body
Attribute | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
txnAmount object mandatory | This parameter is an object and should contain the value of transaction i.e. amount and currency type. | ||||||||||||||||||||||||||||||||||||||||||||
TxnAmount +
| |||||||||||||||||||||||||||||||||||||||||||||
goods array of object optional | This contain the goods info for an order | ||||||||||||||||||||||||||||||||||||||||||||
GoodsInfo +
| |||||||||||||||||||||||||||||||||||||||||||||
shippingInfo array of object optional | This contain the shipping info for an order. | ||||||||||||||||||||||||||||||||||||||||||||
ShippingInfo +
| |||||||||||||||||||||||||||||||||||||||||||||
extendInfo object optional | Merchant can pass any order specific information that is required to be passed here. | ||||||||||||||||||||||||||||||||||||||||||||
ExtendedInfo +
|
Response Attributes
Head
Attribute | Description |
---|---|
version string | Version of the API. Example: v1 |
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
clientId string | Paytm use the merchant key on the basis of clientId parameter value. It requires only if the merchant has more than one key. |
signature string | 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. |
Body
Attribute | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of the API response | ||||||||||||||
ResultInfo +
| |||||||||||||||
extraParamsMap object | Map for any extra information (in case of error). |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
1006 | F | txnToken sent in request has expired or is invalid |
1111 | F | transaction already in process |
2005 | F | Checksum provided is invalid |
2013 | F | Different mids sent in initiate transaction request and updateTransactionRequest |
2014 | F | Different orderIds sent in initiate transaction request and updateTransactionRequest |
0000900 | U | System error |
curl -X POST 'https://securegw-stage.paytm.in/theia/api/v1/updateTransactionDetail?mid={mid}&orderId=ORDERID_98765' \
--header 'Content-Type: application/json' \
--data '{"body":{"txnAmount":{"value":"1.00","currency":"INR"},"userInfo":{"custId":"CUST_001"}},"head":{"txnToken":"2f61025f332b444197d8b9d1e509c07e1589794795189","signature":"{signature}"}}' Â