Transfer
https://sandbox-open.legionpays.com/v1/generate/transfer/inquiryinquiryRef. This ref is essential and should be saved, as it will be required when making the stringToSign for requests to the Transfer Payment API. Make sure to securely store and utilize the inquiryRef for the subsequent steps in the payment process. The amount of the transaction, following min and max as specified in the Bank Channel API.
A unique reference ID for the transfer.
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 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.transferInquiry({
amount: 10000,
transferRef: '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": "inquiry",
"status": "pending",
"desc": "Success create Transfer inquiry",
"inquiryRef": "inquiry-ref"
}
}Request Session
Recent request history resets when this page is refreshed. Current session: 0