Crypto payments
Let’s take an example of a generic crypto wallet and payment provider to see how the Flagright API can be used as the compliance and anti-fincrime infrastructure for the fiat transactions. Flagright also enables crypto businesses to centralize their on-chain alerts onto Flagright case management through the Management API.
1. On Ramp
An on-ramp or deposit is when a User
transfers money from an external fiat source (e.g., bank, credit card) to their crypto wallet.
For deposits, the origin payment method is the external source, for example, a CARD
transfer, and the destination payment method is the wallet type. In this case, the originUserId
would be empty and the destinationUserId
would be the userId
of the user. The originAmountDetails
would have the fiat currency and the destinationAmountDetails
would have the cryptocurrency.
originPaymentMethod
would contain information on the CARD
transaction and the destinationPaymentMethod
would contain the payload for the crypto wallet details of the user where the money is being deposited.
To make the following request, you’ll need an API Key. Please reach out if you don’t have one.
You would make an API call to the POST /transactions
to verify this transaction before processing, with the payload like so:
2. Off Ramp
An off-ramp or withdrawal is when a User
transfers money from the crypto wallet to an external fiat source.
For withdrawals, the destination payment method is the external fiat source, for example, a SWIFT transfer, and the origin payment method is the wallet type. In this case, the originUserId
would be the userId of the user and the destinationUserId
would be empty. The originAmountDetails
would have the cryptocurrency and the destinationAmountDetails
would have the fiat currency.
originPaymentMethod
would contain information on the crypto wallet and the destinationPaymentMethod
would contain the payload for the SWIFT details of the user where the money is being withdrawn.
To make the following request, you’ll need an API Key. Please reach out if you don’t have one.
You would make an API call to the POST /transactions
to verify this transaction before processing, with the payload like:
3. Crypto to Crypto Transfer
For peer-to-peer transfer, the destination payment method and the origin payment method are of wallet type. In this case, the originUserId
would be the userId of the user making the payment and the destinationUserId
would be the userId of the user receiving the payment.
originPaymentMethod
would contain information on the wallet and the destinationPaymentMethod
would contain the payload for the wallet details of the user where the money is being transferred.
You would make an API call to the POST /transactions
to verify this transaction before processing, with the payload like: