POSTFetch All Payment Offers API
Use Case
To fetch merchant's all payment instrument based offers with Paytm ecosystem
Request Attributes
Head
| Attribute | Description |
|---|---|
requestTimeStamp string optional | EPOCH timestamp of the time at which request is being sent. |
channelId string mandatory | The parameter value identifies the Channel for which API call is initiated. Possible values: WEB , WAP |
tokenType string mandatory | This is for the authentication mechanism. |
token string mandatory | For tokenType CHECKSUM, Inputs could be CHECKSUM (signature) value. |
Body
| Attribute | Description |
|---|---|
mid string mandatory | Paytm provides MID as a unique identifier to each merchant. You get the production MID post the account activation. Example: 216820000002516036253 |
requestId string mandatory | Unique reference ID which is given in request payload |
Response Attributes
Head
| Attribute | Description |
|---|---|
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. Eg. 1588402269 |
Body
| Attribute | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultInfo Object | This parameter gives the information about the result of the API response | ||||||||||||||||||||||||||
resultInfo +
| |||||||||||||||||||||||||||
paymentOffers Object | Payment offers contain promo details like promo code, offer, termsUrl, etc. | ||||||||||||||||||||||||||
paymentOffers +
| |||||||||||||||||||||||||||
Response Codes & Messages
| resultCode | resultStatus | resultMsg |
|---|---|---|
| 0000 | S | Success |
| 1001 | F | Request parameters are not valid |
| 9999 | F | Something went wrong |
| 2005 | F | Checksum provided is invalid |
| 1006 | F | Session expired |
| 1007 | F | Missing mandatory element |
| 501 | F | System Error |
| 2013 | F | Mid in the query param doesn't match with the Mid send in the request |
| 6050 | F | requestId in the query param doesn't match with the requestId send in the request |
| 2222 | F | Invalid request body |
| 1011 | F | Parameter illegal Note: If the value is not allowed in request parameters then the result message should be in the format of "Invalid {field name}" For example:Invalid tokenType, etc |
curl --location 'https://stage-router.paytm.in/aoa-pay-option-service/v2/fetchAllPaymentOffers?mid=YOUR_MID_HERE&requestId=purnima02' \
--header 'Content-Type: application/json' \
--header 'Cache-Control: max-age=0' \
--data '{"body": {"mid": "YOUR_MID_HERE","requestId": "purnima02"},"head": { "requestTimeStamp": "{requestTimeStamp}","channelId": "WEB","tokenType": "CHECKSUM","token": "{CHECKSUM}"}}'