Skip to main content

Transaction Detail

GET : http://<base_url>/digipay/v3/transaction/detail

This API is used to get one transaction history by txn id

QUERY PARAMS:-

ParameterTypeDescriptionValue
txn_idLongunique id of transaction to retrive transaction detail of userb9a4cbeeedd340509cb1ac628cae2973

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request GET \
--url 'http://192.168.1.102:8014/digipay/v3/transaction/detail?txn_id=b9a4cbeeedd340509cb1ac628cae2973' \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"transaction_detail": {
"id": "b9a4cbeeedd340509cb1ac628cae2973",
"txn_number": "123",
"credit_user_info": {
"credit_account_type": 1,
"credit_account_type_id": "123",
"credit_type": 1,
"credit_type_id": "123",
"credit_amount": 10,
"credit_currency_id": "123456"
},
"debit_user_info": {
"debit_account_type": 1,
"debit_account_type_id": "123",
"debit_type": 1,
"debit_type_id": "123",
"debit_amount": 10,
"debit_currency_id": "123456"
},
"txn_code": "CIB",
"txn_type": 1,
"txn_date": 1658220055,
"txn_status": 1,
"note": "Test Add Money",
"display_text": {
"sender_text": "Test",
"receiver_text ": "Test",
"admin_text ": "Test"
},
"payment_mode": 1,
"txn_charges": [
{
"id": "123",
"txn_id": "1",
"charge_id": "2",
"charge_name": "Test Charge",
"charge_type": 1,
"charge_value": 2,
"charge_value_type": 1,
"final_charge": 20.2,
"user_type": 2,
"user_id": "123"
}
],
"txn_commission": {
"id": "123",
"txn_id": "1",
"commission_config_id": "2",
"commission_name": "Test Commission",
"commission_value": 11.3,
"commission_value_type": 2,
"final_commission": 10.2,
"user_type": 2,
"user_id": "123"
},
"payment_response": {},
"card_info": {},
"payout_master": {
"user_bank_info": {
"bank_name": "SBI",
"bank_image": "http://sbi.jpeg",
"account_number": "1234567890",
"account_name": "Sachin Tendulkar",
"bank_code": "SBIN0025255"
},
"currency_id": "12",
"status": 1
},
"topup_wallet_master": {
"currency_id": "12",
"status": 1
},
"transfer_master": {
"exchange_rate": 12.2,
"source_currency_id": "123",
"source_amount": 30.25,
"destination_currency_id": "123",
"destination_amount": 50.23,
"status": 1
}
}
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR