post
https://unpay.in/tech/api/dmt/fund/transfer
Header
| Name | Type | Value |
|---|---|---|
| api-key | string | (get it from api credentials in api panel) |
| content-type | string | application/json |
| accept | string | application/json |
$header = [
'accept: application/json',
'api-key: XdWCmd0NF1ZVklnVPegOdL59WkFM7o4h91UYPAt1',
'content-type: application/json',
];
Request Body Parameters
| Name | Type | Value |
|---|---|---|
| partner_id | integer | (Get in from api panel you api parner id) |
| mobile | String | Remitter Mobile |
| beneficiary_id | integer | Beneficiary id received in get beneficiay api |
| payment_mode | String | IMPS/NEFT |
| amount | Double | Transfer amount |
| apitxnid | String | Unique merchant id for every transaction |
$parameter = [
"partner_id" => "2",
"mobile" => "7307048402",
"beneficiary_id" => 8,
"payment_mode" => "IMPS",
"amount" => 100,
"apitxnid" => "TXN12345678",
"latitude" => "11.11",
"longitude"=> "12.12"
]
$body_json_string = json_encode($parameter);
Request Body to be sent in Json
| Name | type | Value |
|---|---|---|
| body | String | Aes Encypted of Json Encoded Body Parameters String |
$request_body = [
"body" => "93A5D34BEED49E72621EAF6327DE9760D76BACB79B4879B578AB4C52F238BEFFCA619103BB9569D80FA87668B5B978F5158FF42736420863870C38F5B44D67C2153BDBF483FF3B5D336AD060677C139ED877A9565D62621CE2E5B03C4BB4A4DAB72939A441342512169A0946D7A8F24E895226C7CCF2968A4D1AC46E855F91C11B6E918A868AA394F86B5A20D938FCFCD04D98C4F28116C785C5B7AAAA0512DC"
];
$final_body = json_encode($request_body);
Response Body Parameters
| Name | type | Condition | Possible Value |
|---|---|---|---|
| statuscode | String | All Time | TXN / ERR |
| message | String | All Time | Transaction Response Message |
| apitxnid | String | In Case TXN | Merchant Unique Transaction Id |
| txnid | String | In Case TXN | Ebanker Transaction Id |
| refno | String | In Case TXN | Billpayment Reference |
| status | String | In Case TXN | success/pending/accept/failed |
| amount | String | In Case TXN | Transaction Amount |
Note:
- Any other error codes except given above are to be confirmed before taking any action and should be treated as pending.
- There is one case of Timeout if you received timeout please treat that Transaction in Pending and Check the Status of the Transaction from Transaction Status API and take action accordingly to that status.
