Transfer

useTransfer

The following environment variables are required:

API_BAAS_INTERNAL_TRANSFER='/baas/transfer-internal'
API_BAAS_TRANSFER_ACH='/baas/transfer-ach'

How to transfer?

  • Use the initiateTransferInternal function, and invoke TransferService from /services/TransferService for internal accounts:

import TransferService from 'LinkerStudio/modules/baas/common/services/TransferService';

const initiateTransferInternal = async (
    transferInternalDetails: PostTransferInternalDetails,
  ) => {
      await TransferService.postTransferInternal(transferInternalDetails);  
    } catch (error) {
      return error
    }
};
  • Use the initiateTransferAch function, and invoke TransferService from /services/TransferService for ACH transfers:

import TransferService from 'LinkerStudio/modules/baas/common/services/TransferService';

const initiateTransferAch = async (
    transferInternalDetails: PostTransferInternalDetails,
  ) => {
      await TransferService.postTransferAch(transferInternalDetails);react  
    } catch (error) {
      return error
    }
};

Last updated