POSTSettlement API
Use Case
The Settlement API is used to reconcile the settlement data. This API provides the transaction-level data for all settled transactions. It includes all types of transactions namely, sale (forward) transactions, refunds and chargebacks. This API also gives total bank settled amount and total count of transactions.
Note-
- This API can be used only on production environment.
- Paytm Recon system reconciles the transactions even on weekends or day of public holidays, however the payout cannot be released. The payout will be made on next business day. Hence, this API won’t return any response.
- Date field range can be of maximum 1 day.
- On a regular business day, settlement processing and payout happens on the same day.
Request Attributes
Attribute | Description | |
---|---|---|
MID string |
Unique Merchant ID provided at the time of integration Example: INTEGR7769XXXXXX9383 |
|
utrProcessedStartTime string mandatory |
Date from which merchant wants to check the settlement data. Data will be available for last 6 months of the current date Example: 2020-04-20 |
|
utrProcessedEndTime string optional |
Date to which merchant wants to check the settlement data. Data will be available for last 6 months of the current date. Example: 2020-04-20 Note: If not provided, API will pick this value as utrProcessedStartTime + 1 |
|
checksumHash 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. Note: Create the signature using the body parameter of the request. |
|
pageNum integer mandatory |
Current page number Example: 1 |
|
pageSize integer mandatory |
Max entry count in a page, max value is 20 Example: 20 |
Response Attributes
Attribute | Description |
---|---|
status Enum RestStatus |
This parameter indicates the status of API call. Possible values: SUCCESS, FAILURE, RECORD_NOT_FOUND |
count integer |
Count Example: 2 |
resultCode string |
This is the resultCode corresponding to a particular message and is returned to the merchant. Its maximum length is 64. Example: 00000000 |
errorMessage string |
Error Message Example: CHECKSUM_VALIDATION_FAILED |
totalCount integer |
Count of transactions/refunds included in the settlement on the chosen day Example: 1 |
settlementDetailList list |
The list of detailed settlements. |
paginatorPageNum integer |
Current page no Example: 1 |
paginatorPageSize integer |
No. of transaction records on the current page Example: 20 |
paginatorTotalPage integer |
Total number of pages that contain transaction level data for that date |
paginatorTotalCount integer |
Total count of transactions Example: 4 |
Settled Transaction Detail Response VO parameters:
Attribute | Description |
---|---|
txnId string |
This is a unique Paytm transaction ID that is issued by Paytm for each transaction. Example: 20190604111212800110168516600919244 |
txnType integer |
Transaction type of the payment. Possible values: TRANSACTION, REFUND, ALL, ADDMONEY, M2B, TRANSFER_FOR_SETTLEMENT, ALL_SETTLEMENT, CANCEL, SETTLEMENT, DISPUTE, TOPUP, TOPUP_REFUND, REPAYMENT |
txnDate string |
Transaction Date Example: 2019-06-04 16:52:48 |
txnAmount string |
Payment transaction amount Example: 2.00 |
bankName string |
Issuing bank of the customer Example: WALLET |
custId string |
Customer ID of the person making the transaction Example: Test101 |
paymentMode string |
Payment mode used by the customer Example: PPI |
mid string |
Paytm provides MID as a unique identifier to each merchant. Example: xxxxxxxxxxxxxxxxxxxxx |
merchantName string |
Name of the merchant Example: AutomationMerchant001 |
orderId string |
Unique reference ID for an Order request generated by merchant for payment. Example: PARCEL51103 |
mercUnqRefVal string |
Any unique information that the merchant wants to record. |
utrProcessedTime string |
Example: 2019-06-06 16:00:00 |
utr string |
Unique transaction reference number from bank of the settlement made to merchant’s bank. Example: 1910535110000023 |
settleAmount string |
Total amount settled to the merchant on the chosen day Example: 2.00 |
payoutDate string |
Timestamp when the settlement process starts Example: 2019-06-05 00:00:00 |
gst string |
Tax charged against this transaction Example: 0.37 |
commission string |
Commission charged against this transaction Example: 1.06 |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
00000000 | SUCCESS | SUCCESS |
00000010 | FAILURE | Exception while processing request for query |
00000022 | FAILURE | CHECKSUM_VALIDATION_FAILED |
00000030 | FAILURE | ILLEGAL_PARAM |
00000031 | FAILURE | FACADE_EXCEPTION |
00000074 | FAILURE | Too many requests sent per second. TPS Breached |
curl -X POST 'https://securegw.paytm.in/merchant-settlement-service/settlement/list' \
--header 'Content-Type: application/json' \
--data '{"MID": "xxxxxxxxxxxxxxxxxxxxx", "utrProcessedStartTime": "2019-06-08", "pageNum": 1, "pageSize": 20, " checksumHash ": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}'