post https://api.cashfree.com/pg/easy-split/orders//split
Split After Payment API splits the payments to vendors after successful payment from the customers.
Important
To use this API, write to [email protected] or your Account Manager. This API has to be enabled for the test and production environment.
After the customer payment is successful, add 120 seconds delay before you use this API to split payments to vendors, to accommodate any delays in payment response from customers.
For Auto Collect pass the Authorization token. Use the Authorize API to generate the token for Auto Collect APIs.
Response Codes
Status Code | Status | Message | Solution |
---|---|---|---|
200 | SUCCESS | Order split created | |
404 | ERROR | Order not found | Specify an order ID that exists |
400 | ERROR | Order not paid | Ensure the order is paid |
400 | ERROR | Settlement not found | Specify a settlement ID that is present |
400 | ERROR | Settlement not applicable for payment code | Specify a valid Settlement ID |
400 | ERROR | Split Vendor doesn't exist | Specify a split vendor that exist |
400 | ERROR | Total split amount is greater than transaction amount | Specify a split amount that is less than the transaction amount |
400 | ERROR | Transaction not captured | Retry again after some time |
400 | ERROR | Split already exists | Create a new split |
400 | ERROR | Settlement already processed | Wait for sometime |
400 | ERROR | Settlement eligibility time passed | Specify a valid settlement eligibility time |
400 | ERROR | Merchant not enabled for split after payments | Enable the merchants |
400 | ERROR | Either amount or percentage has to be present for each vendor and not both | Specify either amount or percentage, do not provide both |
400 | ERROR | Invalid vendor split amount | Specify a valid vendor split amount |
400 | ERROR | Refund already exists, cannot create split | Create a split where refund is not initiated |
Watch this video to learn how to initiate an order with split API