Collect a payment by bank transfer. The customer pays in their local currency with a reference, and you receive a stablecoin.
3 min read
This page shows how to collect a payment by bank transfer. The customer pays from their own bank account. The API returns a payment instruction, including a reference number that the customer uses when they pay.
Customers pay in their local currency, and Gravv stores the funds as a stablecoin in your receiving account.
To create a bank transfer collection, send an Initiate a collection request call with bank_transfer in source.methods. You can collect funds to an internal account, an internal crypto wallet or an external crypto wallet. For an internal destination, send the account or wallet ID. For an external crypto wallet, send the wallet address and network.
The request has no country field. Gravv uses the country of the customer's address, which must be one of the bank transfer countries. In the request:
•
Set currency to that country's local currency.
•
Send amount as a string with at most 2 decimal places.
•
Set asset to the stablecoin you want to receive.
•
Put the payer's bank account number in metadata.bank_account_number.
The customer record must have a phone number and a date of birth.
Use the optional metadata field to attach custom JSON data to collection requests. Gravv returns this data in webhook notifications, so you can track extra details for each transaction: