Refund Money
POST : http://<base_url>/digipay/v3/transaction/wallet_refund_money
This API is used to refund money to customer or merchant
BODY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
charges_info | Array | it combines total_charges amount with the arrayList of charges | b9a4cbeeedd340509cb1ac628cae2973 |
initial_txn_id | String | it is unique initial_transaction_id for which refund is going to be generated | bcdc063cf4844eea82e1c0e68a2360e8 |
txn_amount | Double | txn_amount used to perform wallet_topup of user | 100 |
txn_code | string | unique txn_code for which wallet_topup has been done | CIB |
debit_user_info | Json | it combines debit user currency_id,wallet_id,user_id of company admin ,user_type of company admin, payment_type of company admin and username | |
credit_user_info | Json | it combines credit user currency_id,wallet_id,user_id of company user ,user_type of company user, payment_type of company user and username | |
company_admin_user_info | Array | it combines company admin currency_id,wallet_id,user_id of company admin ,user_type of company admin, payment_type of company admin and username | |
payment_mode | Int | which mode of payment used to perform wallet_topup | |
txn_device_info | Array | it combines device_id | |
note | string | a small note written at the time of wallet topup | Refund |
payment_response | Array | payment of data | |
card_info | Array | ||
meta_data | Array | meta_data |
HEADERS:-
Parameter | Type | description | value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/transaction/wallet_refund_money \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"initial_txn_id": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_amount": 100,
"txn_code": "MR / CR",
"payment_mode": 2,
"note": "Refund Money"
}
'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"message": "Money successfully refunded",
"transaction": {
"txn_id": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_number": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_status": 1
}
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |