Get Child/Parent Split Transaction Info API

The Get Child/Parent Split Transactions API is for getting the transaction info of a child or parent split in Aggregator Flow.

πŸ“˜

Note:

You can check the transaction info only for a single child or parent split. You need to submit separate requests for multiple splits to get the corresponding split information.

Environment

Sample request
curl --location --request POST 'https://info.payu.in/merchant/postservice?form=2' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'key=A***J' \
--data-urlencode 'command=get_split_transactions' \
--data-urlencode 'var1=2021-12-30 00:00' \
--data-urlencode 'hash=586e3379b3d9f90682329cf7efd27273aeb290936d9edf98686370bc59fdc67b06c57a5201b9bd193dc0f00fe6ecd821f60d81d5789ca2ee516db309f28025e9' \
--data-urlencode 'var2=2021-12-30 14:00' \
--data-urlencode 'var3=1' \
--data-urlencode 'var4=10' \
--data-urlencode 'var5=A****J'
Response parameters
ParameterDescription
statusThis parameter contains the status of response. It can be any of the following:

- 0: Failed
- 1:Success
msgThis parameter contains the response or error message.
Transaction_detailsThis parameter contains the transaction details in an array format and it is displayed only when the status field returns the value as 1. For more information on each field in the array, refer to the next table.

Fields in the Transaction_details array

FieldDescription
idThis field contains the PayU transaction ID.
statusThis field contains the transaction status.
keyThis field contains the parent merchant key.
merchantnameThis field contains the parent merchant name.
txnidThis field contains the transaction ID.
base_idThis field contains the base PayU Transaction ID. It will be null for a parent transaction.
firstnameThis field contains the first name of the customer who did the transaction.
lastnameThis field contains the last name of the customer who did the transaction.
addedonThis field contains the transaction created date and time. Format: yyyy-mm-dd hh:ii:ss
bank_nameThis field contains the bank name of payment transaction.
payment_gatewayThis field contains the payment gateway used in the transaction.
phoneThis field contains the contact number of the customer who did the transaction.
emailThis field contains the email ID of the customer who did the transaction.
transaction_feeThis field contains the transaction fee without discount and additional charges.
amountThis field contains the total amount paid by customer.
discountThis field contains the discount or Subvention charges on the transaction.
additional_chargesThis field contains the additional charges on transaction.
productinfoThis field contains the product information provided by merchant.
error_codeThis field contains the transaction error code. For more information on errors, refer to Error Handling
bank_ref_noThis field contains the bank reference number.
ibibo_codeThis field contains the IBIBO Code or bank_code that was submitted in transaction by the merchant to PayU.
modeThis field contains the Mode of transaction, such as, CC, DC, NB, EMI.
address2This field contains the address of the customer.
cityThis field contains the city of the customer.
zipcodeThis field contains the PIN code of the customer.
pg_midThis field contains the PG ID.
offer_typeThis field contains the offer type if any offers were used.
splitCreatedThis field contains no value or null.
is_parent_transactionThis field contains any of the the flag to indicate whether it is a Parent Transaction:

- true; When the transaction is a parent transaction
- false ; When the transaction is not a parent transaction
splitInfoThis field contains no value or null for child transactions.
Sample response

Success scenario

{
    "status": 1,
    "msg": "Transaction Fetched Successfully",
    "Transaction_details": [
        {
            "id": "412345678912384187",
            "status": "captured",
            "key": "A****J",
            "merchantname": "Aggregator-OwnChild",
            "txnid": "6de4dc8abc38473122cb",
            "base_id": "412345678912384184",
            "firstname": "Payu-Admin",
            "lastname": "",
            "addedon": "2021-12-30 13:59:01",
            "bank_name": "Credit Cards",
            "payment_gateway": "AxisCYBER",
            "phone": "1234567890",
            "email": "[email protected]",
            "transaction_fee": "2.00",
            "amount": "2.00",
            "discount": "0.00",
            "additional_charges": "0.00",
            "productinfo": "Product Info",
            "error_code": "E000",
            "bank_ref_no": "2516463285587866763243",
            "ibibo_code": "CC",
            "mode": "CC",
            "address2": "",
            "city": "",
            "zipcode": "",
            "pg_mid": null,
            "offer_type": null,
            "splitCreated": null,
            "is_parent_transaction": false,
            "splitInfo": null
        },
        {
            "id": "412345678912384190",
            "status": "captured",
            "key": "A****J",
            "merchantname": "Aggregator-OwnChild",
            "txnid": "6de4dc8abc38473122cb",
            "base_id": "412345678912384184",
            "firstname": "Payu-Admin",
            "lastname": "",
            "addedon": "2021-12-30 13:59:06",
            "bank_name": "Credit Cards",
            "payment_gateway": "AxisCYBER",
            "phone": "1234567890",
            "email": "[email protected]",
            "transaction_fee": "2.00",
            "amount": "2.00",
            "discount": "0.00",
            "additional_charges": "0.00",
            "productinfo": "Product Info",
            "error_code": "E000",
            "bank_ref_no": "2516463285587866763243",
            "ibibo_code": "CC",
            "mode": "CC",
            "address2": "",
            "city": "",
            "zipcode": "",
            "pg_mid": null,
            "offer_type": null,
            "splitCreated": null,
            "is_parent_transaction": false,
            "splitInfo": null
        }
    ]
}

πŸ“˜

Note:

If the response has three pages and you submit 4 in the var3 parameter of the request, you will get the Transaction_Details parameter value in the response as blank.

Failure scenario

{
    "status": 0,
    "msg": "Invalid Hash."
}

Request parameters

Language
Click Try It! to start a request and see the response here!