Skip to main content

Bank transfer

Send payouts

Send funds directly to a recipient's bank.

Integration

Available through H2H integrations.

TypeBank payouts
CountryPakistan
CurrencyPKR
RefundNo
Changed amountNo
OperationsPayout
Payment types-
Purchase integrations-

Pakistan Bank Payouts allow merchants to send funds directly to bank accounts in Pakistan. The payout is processed through the selected banking channel using the recipient's bank account details.

This payment method supports Payout operations and is available through H2H integration.

The merchant must provide the recipient's bank account information, including the bank code, account number, account holder name, and other required beneficiary details. Once the payout is initiated, its status can be tracked using the payout status endpoint.


Payout​

To initiate a payout with the Bank transfer payment method, add the following parameters to your request.

ParameterValue
URLhttps://gateway.amanpay.io
API endpoint/payments/payouts/initiate
HTTP request methodPOST
Request body formatJSON
Request parameters​
HeaderValueRequiredDescription
Content-Typeapplication/jsonRequiredHTTP header indicating the media type of the resource sent in the request body.
AuthorizationcalculatedRequiredFor more details about request signature generation, see the About the signature section.
ParameterTypeRequiredDescription
merchantIdintegerRequiredYour unique merchant ID that you got from Amanpay when integrating.
paymentIdstringRequiredPayment ID unique within your system.
amountnumberRequiredThe amount is specified in major units and may include decimal places, for example, 500.50.
currencystringRequiredCode of the payout currency in the ISO-4217 alpha-3 format.
customerIdstringOptionalCustomer's ID unique within your system. If not passed in the request, the value from the customerEmail parameter is used.
customerEmailstringRequiredCustomer's email.
customerNamestringRequiredCustomer's full name.
paymentMethodstringRequiredPayment method's code. Pass banktransfer in this parameter.
recipientTypestringRequiredCustomer's account type. Pass bank_account in this parameter.
bankCodestringRequiredRecipient bank code. See the Bank codes.
recipientBankAccNumberstringRequiredRecipient's bank account number.
notifyUrlstringOptionalURL for receiving callbacks for a specific payment.
Request
{
"merchantId": 123,
"paymentId": "ORDER_100001_123",
"amount": 100.00,
"currency": "PKR",
"customerId": "customer174",
"customerEmail": "mark_cooper@example.com",
"customerName": "Mark Cooper",
"paymentMethod": "banktransfer",
"recipientType": "bank_account",
"bankCode": "MEEZAN",
"recipientBankAccNumber": "PXXXXXXXXXXXXXXXXXXXX"
}
Success response
{
"transactionId": "1003685",
"paymentID": "payment_812",
"status": "PENDING",
"amount": 100,
"currency": "PKR",
"paymentType": "payout"
}
Error response
{
"result_code": "DUPLICATE_PAYMENT_ID",
"result_message": "Payment ID already exists"
}

For the full list of possible responses, see Responses & Callbacks.