Skip to main content

Transfer Money

POST : http://<base_url>/digipay/v3/transaction/wallet_transfer

This API is used to transfer money from your wallet to another wallet

BODY PARAMS:-

ParameterTypeDescriptionValue
charges_infoArrayit combines total_charges amount with the arrayList of chargesb9a4cbeeedd340509cb1ac628cae2973
txn_amountDoubletxn_amount used to perform wallet_topup of user100
txn_codeStringunique txn_code for which wallet_topup has been doneCIB
payment_responseJsonif payment gateway is configured it gives payment gateway response
card_infoArray
debit_user_infoJsonit 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_infoJsonit 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_infoArrayit 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_modeIntwhich mode of payment used to perform wallet_topup
txn_device_infoArrayit combines device_id
meta_dataArraymeta_data
noteStringa small note written at the time of wallet topupP2P Transfer Money

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 POST \
--url http://192.168.1.102:8014/digipay/v3/transaction/wallet_transfer \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"txn_amount": 100,
"txn_code": "P2P / P2M / A2A",
"payment_mode": 2,
"note": "P2P Transfer Money"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "Money successfully transfer your wallet.",
"transaction": {
"txn_id": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_number": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_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