Absolute Split After Transaction

You must specify two decimal places for each split, but ensure the sum split amounts are equal to the transaction amount.

πŸ“˜

Note:

You must specify two decimal places for each split, but ensure the sum of the percentage of all splits is equal to 100.

HTTP Method: POST

Environment

Request parameters

ParameterDescriptionSample Value
keystring This parameter must include the Merchant key that was provided by PayU.vDy3i7
commandstring The parameter must contain the name of the web service.payment_split
hashString The hash string encryption is specified in this parameter. The format of the hash is:
|sha512(key|command|var1|salt)
Where, var1 contains the fields as described in the var1 description.
Β 
var1string (JSON) This parameter is in a JSON format and fields included in the JSON format are explained the JSON request structure table.For an example, refer the Request Structure subsection.

JSON request structure

The var1 parameter is in JSON format. The fields in the JSON format are described in the following table:

FieldDescriptionExample
typeThe type of split is specified in this field. Use absolute in this field. The absolute amount is specified for each part of the split. The absolute amount is specified in the aggregatorSubAmt field of the JSON for each child or aggregator.absolute
payuidThe payment identifier provided by PayU for the transaction.403993715525003544
splitInfoThis parameter must include the list of aggregator sub transaction IDs and sub amounts as specified in the Request Structure for var1 subsection:

- aggregatorSubTxnId: The aggregator sub transaction ID is specified in this field.
- aggregatorSubAmt: The aggregator sub amount is specified in this field.
- aggregatorCharges: The aggregator charges is specified in this field.Note: The aggregatorCharges field can only be used by parent merchant to get the aggregator commission.
Refer to Request Structure for var1 subsection.

Request structure for var1 to be included in payment_splitΒ API

{Β Β "type": "absolute",Β Β 
    "payuId": "xxxxxxxx", # PayuID of parent transaction which needs to be split.Β Β 
   "splitInfo": 
    {Β Β Β Β 
       "merchantKey1": 
       {
       "aggregatorSubTxnId": "30nknyhkhib",
       "aggregatorSubAmt": "8",
       "aggregatorCharges": "2" // parent merchant commission (Optional)Β Β Β Β 
       },
      "merchantKey2":
      {
Β Β Β Β Β Β  "aggregatorSubTxnId": "13u0nknou0",
Β Β Β Β Β Β  "aggregatorSubAmt": "2"
Β Β Β Β   },
   Β Β Β Β "merchantKey3":
       {
  Β Β Β Β Β Β "aggregatorSubTxnId": "13u0nknou02",
  Β Β Β Β Β Β "aggregatorSubAmt": "2",
  Β Β Β Β Β Β "aggregatorCharges": "1" // parent merchant commission (Optional)
       }
   Β Β }
}

Sample response

Sample response for a successful split:

{Β Β 
 "status": 1,Β Β 
 "message": "Splits creation successful.",Β Β 
 "splitStatus": "success",Β Β "splitSegments": 
   [
Β Β Β      Β {
     Β Β Β Β Β Β "merchantKey": "merchantKey1",
     Β Β Β Β Β Β "amount": 8,
     Β Β Β Β Β Β "subvention_amount": 0,
      Β Β Β Β Β Β "txnId": "30nknyhkhib",
     Β Β Β Β Β Β "additional_charges": 0,
     Β Β Β Β Β Β "transaction_fee": 8Β Β Β Β },
       Β Β Β Β {
       Β Β Β Β Β Β "merchantKey": "merchantKey2",
      Β Β Β Β Β Β "amount": 2,