POSTFetch PCF Details API
Use Case
This API is used to fetch convenience charges corresponding to the Transaction amount. The merchant will call this API to fetch the different fee amounts/ charge amounts for different payment instruments. Please note that this API can be used by those merchants for whom flag of pcfEnabled is returned true in response of Fetch Payment Option API.
Request Attributes
Head
Attribute | Description |
---|---|
version string optional | Version of the API. Example: v1 |
requestTimestamp string optional | EPOCH timestamp of the time at which request is being sent. |
channelId string optional | The parameter value identifies the Channel for which API call is initiated. Possible values:
WEB
,
For websites, the value to be passed should be "WEB"
WAP
For Mobile websites/App, the value to be passed should be "WAP"
|
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 |
Body
Attribute | Description | ||||||
---|---|---|---|---|---|---|---|
payMethods array of object mandatory | List of payment methods (object) for convenience charges. | ||||||
PayMethods +
|
Response Attributes
Head
Attribute | Description |
---|---|
version string | Version of the API passed in the request. |
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
requestId string | Unique reference ID for a transaction which is generated by merchant and sent in the request |
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). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
consultDetails object | Charges with Tax and Transaction amount. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ConsultDetails +
|
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
1001 | F | Request parameters are not valid |
1006 | F | Session Expired Exception |
2013 | F | Mid in the query param doesn’t match with the Mid send in the request |
2014 | F | OrderId in the query param doesn’t match with the OrderId send in the request |
00000900 | U | System error |
curl -X POST 'https://securegw-stage.paytm.in/theia/api/v1/fetchPcfDetails?mid={mid}&orderId=ORDERID_98765' \
--header 'Content-Type: application/json' \
--data '{"body":{"payMethods":[{"payMethod":"CREDIT_CARD","instId":"VISA"}]},"head":{"txnToken":"f0bed899539742309eebd8XXXX7edcf61588842333227"}}'