POSTPost Facto Split Settlement API
Use Case
Post-transaction split settlement for orders that are on hold (based on POST_TXN identifier in Initiate Transaction API). User needs to first identify the historical orders that require split settlement based on their preference (Split-type as POST_TXN) at the time of order creation. Once they have identified these orders, they can use this API to initiate the split settlement requests. This will split the settlement amount between the merchant and the relevant parties involved in the transaction.
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. |
tokenType string mandatory | This parameter identifies whether the API works on checksum authentication. Possible Values: CHECKSUM |
token string mandatory | For tokenType CHECKSUM, It's value to be sent should be the checksum string created by using Paytm checksum library. Authorization string corresponding to the tokenType used. |
requestId string mandatory | Unique reference ID for a transaction which is generated by merchant and sent in the request |
Body
Attribute | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mid string mandatory | Paytm provides MID as a unique identifier to each merchant. For your staging MID, click here. You get the production MID post the account activation. Example: INTEGR7769XXXXXX9383 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
orderId string conditional | Main merchantTransId Note: If acqId is blank then orderId is mandatory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
acqId string conditional | acqId of main order Note: if orderId is blank then acqId is mandatory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
splitSettlementInfo object mandatory | Split payment details. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
splitSettlementInfo +
|
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. |
Body
Attribute | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
mid string | Main merchant mid | ||||||||
orderId string | Main merchantTransId | ||||||||
acqId string | acqId of main order | ||||||||
resultInfo string | result info object | ||||||||
resultInfo +
|
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
0001 | F | FAILED |
0001 | F | Generic msg: parameter illegal (if mandatory params are not sent in request) Specific Use Case:
|
0001 | F | Parent merchant and child merchant relationship illegal |
0001 | F | SplitSettlementInfo list size cannot be greater than 50 |
0001 | F | Split methods are not equal |
309 | F | Invalid Order ID |
0001 | Pending | Order status is not confirmed yet |
501 | U | System error |
1007 | F | Missing mandatory element |
2005 | F | Checksum provided is invalid |
2006 | F | Mid is invalid |
1001 | F | Request parameters are not valid |
0001 | F | Duplicate request exception |
0001 | F | Split already in progress |
curl --location ' https://securegw-stage.paytm.in/theia/postTransactionSplit?mid=YOUR_MID' \
--header 'Content-Type: application/json' \--header 'Cookie: JSESSIONID=51853B7D9DCCADA66A7C3B2913E87A86' \--data '{"body": {"mid": "brZxxxxxxxxxxxxxx616","acqId":"20230406011810000850797261947674580","splitSettlementInfo": {"splitMethod": "PERCENTAGE",
"splitInfo": [{"mid": "RSyxxxxxxxxxxx383","percentage": "100"}]}},"head": {"version": "v1","requestTimestamp": "1680789582827","requestId": "9899odmb437jkhkjhgj35959511","tokenType": "CHECKSUM","token":"rdhghvjbkm"}}'