Transfer
https://sandbox-open.legionpays.com/v1/generate/transfer/paymentThe amount of the transaction, following min and max as specified in the Bank Channel API.
A unique reference ID for the transfer.
A unique Reference ID, referred to as the "Inquiry Ref," can be obtained from the inquiry response. This REF is located in the field labeled "inquiryRef."
The Type for the transfer channel, as specified in the Transfer Channel API.
The code for the transfer channel, as specified in the Transfer Channel API.
The bank account number to which the transfer will be made.
Notes or remarks to be included with the transfer.
Get from hashed signature from the Signature API, along with the client ID, Inquiry Signature and Signature Key generated from the dashboard.
The timestamp indicating when you make this API call must be the same as the timestamp when you call the Signature API.
Credentials
npx api install "@legionpay/v1.0#1k7d63fkmfdu9rlh"import legionpay from '@api/legionpay';
legionpay.transferPayment({
amount: 10000,
transferRef: 'test123456789',
inquiryRef: 'test123456789',
type: 'Bank Transfer',
channelCode: '002',
accountNumber: '01234568211'
}, {
'X-SIGNATURE': 'test',
'X-TIMESTAMP': '1672506000000'
})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));{
"status": 200,
"success": true,
"data": {
"amount": 10000,
"fee": 5000,
"channel": "014",
"channelName": "BANK BCA",
"accountNumber": "1234567890",
"name": "test_transfer_name",
"refId": "1689562129004",
"partnerRefId": "Dac1772c68ca693c287ab0565f1a327f2db5be8a816c83b22c686c8fc762504c8",
"process": "process",
"status": "success",
"desc": "Success Transfer Payment",
"inquiryRef": "inquiry-ref"
}
}Request Session
Recent request history resets when this page is refreshed. Current session: 0